Skip to content

Commit 7e92577

Browse files
committed
Revert "Merge branch 'unblock_i2c' into develop"
This reverts commit 275a84b, reversing changes made to 9fb3755.
1 parent f1346f0 commit 7e92577

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/main.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <libraries/gpiote/app_gpiote.h>
66
#include <libraries/timer/app_timer.h>
77
#include <softdevice/common/nrf_sdh.h>
8-
#include <nrf_delay.h>
98

109
// nimble
1110
#define min // workaround: nimble's min/max macros conflict with libstdc++
@@ -306,20 +305,6 @@ int main(void) {
306305

307306
nrf_drv_clock_init();
308307

309-
// Unblock i2c?
310-
nrf_gpio_cfg(pinTwiScl,
311-
NRF_GPIO_PIN_DIR_OUTPUT,
312-
NRF_GPIO_PIN_INPUT_DISCONNECT,
313-
NRF_GPIO_PIN_NOPULL,
314-
NRF_GPIO_PIN_S0D1,
315-
NRF_GPIO_PIN_NOSENSE);
316-
nrf_gpio_pin_set(pinTwiScl);
317-
for (uint8_t i = 0; i < 16; i++) {
318-
nrf_gpio_pin_toggle(pinTwiScl);
319-
nrf_delay_us(5);
320-
}
321-
nrf_gpio_cfg_default(pinTwiScl);
322-
323308
debounceTimer = xTimerCreate("debounceTimer", 200, pdFALSE, (void*) 0, DebounceTimerCallback);
324309
debounceChargeTimer = xTimerCreate("debounceTimerCharge", 200, pdFALSE, (void*) 0, DebounceTimerChargeCallback);
325310

0 commit comments

Comments
 (0)