mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-18 23:21:48 +03:00
Try to fix bootloop
This commit is contained in:
parent
514481ef7f
commit
d35a54c060
@ -5,6 +5,7 @@
|
||||
#include <libraries/gpiote/app_gpiote.h>
|
||||
#include <libraries/timer/app_timer.h>
|
||||
#include <softdevice/common/nrf_sdh.h>
|
||||
#include <nrf_delay.h>
|
||||
|
||||
// nimble
|
||||
#define min // workaround: nimble's min/max macros conflict with libstdc++
|
||||
@ -300,6 +301,14 @@ int main(void) {
|
||||
|
||||
nrf_drv_clock_init();
|
||||
|
||||
// Unblock i2c?
|
||||
nrf_gpio_cfg_output(pinTwiScl);
|
||||
for (uint8_t i = 0; i < 16; i++) {
|
||||
nrf_gpio_pin_toggle(pinTwiScl);
|
||||
nrf_delay_us(5);
|
||||
}
|
||||
nrf_gpio_cfg_default(pinTwiScl);
|
||||
|
||||
debounceTimer = xTimerCreate("debounceTimer", 200, pdFALSE, (void*) 0, DebounceTimerCallback);
|
||||
debounceChargeTimer = xTimerCreate("debounceTimerCharge", 200, pdFALSE, (void*) 0, DebounceTimerChargeCallback);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user