Apply spacing, const to some HAL code

This commit is contained in:
Scott Lahteine
2017-08-24 12:18:54 -05:00
parent fa9ff6be6e
commit 2af62a5d8d
14 changed files with 191 additions and 252 deletions

View File

@ -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