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)
8686 return ret ;
8787}
8888
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+
8996static bool bit_status (uint32_t reg , uint8_t bit_no )
9097{
9198 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)
8383 return ret ;
8484}
8585
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+
8693static bool bit_status (uint32_t reg , uint8_t bit_no )
8794{
8895 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)
8383 return ret ;
8484}
8585
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+
8693static bool bit_status (uint32_t reg , uint8_t bit_no )
8794{
8895 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)
6666 return ret ;
6767}
6868
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+
6975static uint8_t set_bit_count (uint32_t reg )
7076{
7177 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)
8888 return ret ;
8989}
9090
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+
9198static bool bit_status (uint32_t reg , uint8_t bit_no )
9299{
93100 bool status = false;
You can’t perform that action at this time.
0 commit comments