Apply spacing, const to some HAL code
This commit is contained in:
@ -38,8 +38,8 @@ void HAL_clear_reset_source(void) {
|
||||
WDT_ClrTimeOutFlag();
|
||||
}
|
||||
|
||||
uint8_t HAL_get_reset_source (void) {
|
||||
if(WDT_ReadTimeOutFlag() & 1) return RST_WATCHDOG;
|
||||
uint8_t HAL_get_reset_source(void) {
|
||||
if (TEST(WDT_ReadTimeOutFlag(), 0)) return RST_WATCHDOG;
|
||||
return RST_POWER_ON;
|
||||
}
|
||||
|
||||
@ -50,4 +50,4 @@ void watchdog_reset() {
|
||||
|
||||
#endif // USE_WATCHDOG
|
||||
|
||||
#endif
|
||||
#endif // TARGET_LPC1768
|
||||
|
Reference in New Issue
Block a user