[異常解決] Keil安裝好nRF51822開發環境,運行DEMO報錯:Error:「GPIOTE_CONFIG_NUM_OF_LOW_POWER_ENVENTS」 is undefined

 

1.問題描述app

when compiling "ble_app_proximity" exampled by Nordic, it indicates errors:ide

"D:\Program Files\MDK5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.0.0\gpiote\nrf_drv_gpiote.c(30): error: #20: identifier "GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS" is undefined"spa

"nrf_drv_gpiote_evt_handler_t handlers[NUMBER_OF_GPIO_TE+GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS];"code

andblog

"D:\Program Files\MDK5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.0.0\gpiote\nrf_drv_gpiote.c(148): error: #20: identifier "GPIOTE_CONFIG_IRQ_PRIORITY" is undefined"get

"nrf_drv_common_irq_enable(GPIOTE_IRQn, GPIOTE_CONFIG_IRQ_PRIORITY);"it

 

2.解決辦法io

  Find nrf_drv_config.h in your project:class

 Modify following macro will ok:im

#define GPIOTE_ENABLED 1

  將下面宏改成1便可:

 

參考:https://devzone.nordicsemi.com/question/45202/errorgpiote_config_num_of_low_power_envents-is-undefined/

相關文章
相關標籤/搜索