nrf52840-dk: fix config dependency
This commit is contained in:
parent
d785394b0f
commit
61cd792437
|
@ -46,6 +46,5 @@ CONFIG_START_MONTH=3
|
|||
CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_TASK_NAME_SIZE=0
|
||||
CONFIG_TIMER=y
|
||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
|
|
|
@ -76,7 +76,9 @@ CSRCS += nrf52_highpri.c
|
|||
endif
|
||||
|
||||
ifeq ($(CONFIG_TIMER),y)
|
||||
ifeq ($(CONFIG_NRF52_TIMER),y)
|
||||
CSRCS += nrf52_timer.c
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(TOPDIR)/boards/Board.mk
|
||||
|
|
|
@ -180,7 +180,7 @@ int nrf52_bringup(void)
|
|||
}
|
||||
#endif /* CONFIG_LPWAN_SX127X */
|
||||
|
||||
#ifdef CONFIG_TIMER
|
||||
#if defined(CONFIG_TIMER) && defined(CONFIG_NRF52_TIMER)
|
||||
/* Configure TIMER driver */
|
||||
|
||||
ret = nrf52_timer_driver_setup("/dev/timer0", NRF52_TIMER);
|
||||
|
|
Loading…
Reference in New Issue