Skip to content

Commit c7cd4d7

Browse files
committed
fix build
1 parent 7b9f858 commit c7cd4d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

prj.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ CONFIG_MPU_ALLOW_FLASH_WRITE=y
7878
CONFIG_NVS_LOOKUP_CACHE=y
7979

8080
CONFIG_ESB_TX_FIFO_SIZE=1
81-
CONFIG_NRFX_TIMER1=y
81+
# deprecated?
82+
#CONFIG_NRFX_TIMER1=y
8283

8384
#speed up boot? (use internal rc oscillator)
8485
#CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

src/connection/timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ void timer_init(void) {
6262
nrfx_timer_compare(&m_timer, NRF_TIMER_CC_CHANNEL1, ticks * 20 / 21, true); // switch to tx
6363
nrfx_timer_compare(&m_timer, NRF_TIMER_CC_CHANNEL2, ticks * 1 / 21, true); // switch to rx
6464
nrfx_timer_enable(&m_timer);
65-
IRQ_DIRECT_CONNECT(TIMER1_IRQn, 0, nrfx_timer_1_irq_handler, 0);
66-
irq_enable(TIMER1_IRQn);
65+
// IRQ_DIRECT_CONNECT(TIMER1_IRQn, 0, nrfx_timer_1_irq_handler, 0);
66+
// irq_enable(TIMER1_IRQn);
6767
}

0 commit comments

Comments
 (0)