1
0
forked from me/IronOS

Test better reboots

This commit is contained in:
Ben V. Brown
2023-01-03 18:46:26 +11:00
parent 7fd7873b62
commit 706b3246a1
2 changed files with 2 additions and 6 deletions

View File

@@ -72,10 +72,7 @@ void unstick_I2C() {
uint8_t getButtonA() { return (gpio_input_bit_get(KEY_A_GPIO_Port, KEY_A_Pin) == SET) ? 1 : 0; }
uint8_t getButtonB() { return (gpio_input_bit_get(KEY_B_GPIO_Port, KEY_B_Pin) == SET) ? 1 : 0; }
void reboot() {
// Spin for watchdog
for (;;) {}
}
void reboot() { eclic_system_reset(); }
void delay_ms(uint16_t count) { delay_1ms(count); }
uint32_t __get_IPSR(void) {

View File

@@ -126,8 +126,7 @@ uint8_t getButtonB() {
}
void reboot() {
// Spin for watchdog
for (;;) {}
hal_system_reset();
}
void delay_ms(uint16_t count) {