File tree Expand file tree Collapse file tree 5 files changed +34
-0
lines changed Expand file tree Collapse file tree 5 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ reset_reason_t hal_reset_reason_get(void)
86
86
return ret ;
87
87
}
88
88
89
+ void hal_reset_reason_get_capabilities (reset_reason_capabilities_t * cap )
90
+ {
91
+ cap -> reasons = 1 << RESET_REASON_UNKNOWN ;
92
+ cap -> reasons |= 1 << RESET_REASON_POWER_ON ;
93
+ cap -> reasons |= 1 << RESET_REASON_MULTIPLE ;
94
+ }
95
+
89
96
static bool bit_status (uint32_t reg , uint8_t bit_no )
90
97
{
91
98
bool status = false;
Original file line number Diff line number Diff line change @@ -83,6 +83,13 @@ reset_reason_t hal_reset_reason_get(void)
83
83
return ret ;
84
84
}
85
85
86
+ void hal_reset_reason_get_capabilities (reset_reason_capabilities_t * cap )
87
+ {
88
+ cap -> reasons = 1 << RESET_REASON_UNKNOWN ;
89
+ cap -> reasons |= 1 << RESET_REASON_POWER_ON ;
90
+ cap -> reasons |= 1 << RESET_REASON_MULTIPLE ;
91
+ }
92
+
86
93
static bool bit_status (uint32_t reg , uint8_t bit_no )
87
94
{
88
95
bool status = false;
Original file line number Diff line number Diff line change @@ -83,6 +83,13 @@ reset_reason_t hal_reset_reason_get(void)
83
83
return ret ;
84
84
}
85
85
86
+ void hal_reset_reason_get_capabilities (reset_reason_capabilities_t * cap )
87
+ {
88
+ cap -> reasons = 1 << RESET_REASON_UNKNOWN ;
89
+ cap -> reasons |= 1 << RESET_REASON_POWER_ON ;
90
+ cap -> reasons |= 1 << RESET_REASON_MULTIPLE ;
91
+ }
92
+
86
93
static bool bit_status (uint32_t reg , uint8_t bit_no )
87
94
{
88
95
bool status = false;
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ reset_reason_t hal_reset_reason_get(void)
66
66
return ret ;
67
67
}
68
68
69
+ void hal_reset_reason_get_capabilities (reset_reason_capabilities_t * cap )
70
+ {
71
+ cap -> reasons = 1 << RESET_REASON_UNKNOWN ;
72
+ cap -> reasons |= 1 << RESET_REASON_MULTIPLE ;
73
+ }
74
+
69
75
static uint8_t set_bit_count (uint32_t reg )
70
76
{
71
77
uint8_t count = 0 ;
Original file line number Diff line number Diff line change @@ -88,6 +88,13 @@ reset_reason_t hal_reset_reason_get(void)
88
88
return ret ;
89
89
}
90
90
91
+ void hal_reset_reason_get_capabilities (reset_reason_capabilities_t * cap )
92
+ {
93
+ cap -> reasons = 1 << RESET_REASON_UNKNOWN ;
94
+ cap -> reasons |= 1 << RESET_REASON_POWER_ON ;
95
+ cap -> reasons |= 1 << RESET_REASON_MULTIPLE ;
96
+ }
97
+
91
98
static bool bit_status (uint32_t reg , uint8_t bit_no )
92
99
{
93
100
bool status = false;
You can’t perform that action at this time.
0 commit comments