Hello again Nordic Pro's,
I have a mildly modiffied version of ble_app_uart_c that compiles and runs fine on an NRF52-DK board. I am now trying to use the same code on a NRF51-DK board and I get the follwing build error and warnings:
I cannot find the problem. Can someone please help?
Thanks
Robin @ TL
Build target 'nrf51422_xxac'
compiling bsp_nfc.c...
..\..\..\..\..\..\components\boards\boards.h(93): error: #40: expected an identifier
bool bsp_board_led_state_get(uint32_t led_idx);
..\..\..\..\..\..\components\libraries\bsp\bsp_nfc.c: 0 warnings, 1 error
compiling boards.c...
..\..\..\..\..\..\components\boards\boards.h(93): error: #40: expected an identifier
bool bsp_board_led_state_get(uint32_t led_idx);
..\..\..\..\..\..\components\boards\boards.c: 0 warnings, 1 error
compiling bsp_btn_ble.c...
..\..\..\..\..\..\components\boards\boards.h(93): error: #40: expected an identifier
bool bsp_board_led_state_get(uint32_t led_idx);
..\..\..\..\..\..\components\libraries\bsp\bsp_btn_ble.c: 0 warnings, 1 error
compiling bsp.c...
..\..\..\..\..\..\components\boards\boards.h(93): error: #40: expected an identifier
bool bsp_board_led_state_get(uint32_t led_idx);
..\..\..\..\..\..\components\libraries\bsp\bsp.c(206): warning: #223-D: function "bsp_board_led_state_get" declared implicitly
if (bsp_board_led_state_get(BSP_LED_INDICATE_INDICATE_ADVERTISING))
..\..\..\..\..\..\components\libraries\bsp\bsp.c(227): warning: #223-D: function "bsp_board_led_state_get" declared implicitly
if (bsp_board_led_state_get(BSP_LED_INDICATE_ADVERTISING_WHITELIST))
..\..\..\..\..\..\components\libraries\bsp\bsp.c(249): warning: #223-D: function "bsp_board_led_state_get" declared implicitly
if (bsp_board_led_state_get(BSP_LED_INDICATE_ADVERTISING_SLOW))
..\..\..\..\..\..\components\libraries\bsp\bsp.c(269): warning: #223-D: function "bsp_board_led_state_get" declared implicitly
if (bsp_board_led_state_get(BSP_LED_INDICATE_ADVERTISING_DIRECTED))
..\..\..\..\..\..\components\libraries\bsp\bsp.c: 4 warnings, 1 error
compiling main.c...
..\..\..\..\..\..\components\boards\boards.h(93): error: #40: expected an identifier
bool bsp_board_led_state_get(uint32_t led_idx);
..\..\..\main.c: 0 warnings, 1 error
compiling ble_conn_params.c...
compiling ble_nus_c.c...
compiling ble_srv_common.c...
compiling ble_advdata.c...
compiling ble_db_discovery.c...
compiling nrf_drv_clock.c...
compiling nrf_drv_common.c...
compiling app_button.c...
compiling nrf_drv_gpiote.c...
compiling app_fifo.c...
compiling app_error.c...
compiling hardfault_implementation.c...
compiling nrf_drv_uart.c...
compiling app_util_platform.c...
compiling app_error_weak.c...
compiling sdk_errors.c...
compiling app_uart_fifo.c...
compiling app_timer.c...
compiling nrf_assert.c...
compiling retarget.c...
compiling SEGGER_RTT.c...
compiling nrf_log_frontend.c...
compiling nrf_log_backend_serial.c...
compiling softdevice_handler.c...
".\_build\nrf51422_xxac.axf" - 5 Error(s), 4 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03