Build target 'nrf51822_xxaa (256K)' creating preprocessor file for main.c... compiling main.c... C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.1.1\CMSIS\Include\core_cm0.h(699): error: #169: expected a declaration } ..\..\..\..\Include\nrf_delay.h(11): error: #10: "#" not expected here SUBS R0, R0, #1 ..\..\..\..\Include\nrf_delay.h(72): warning: #12-D: parsing restarts here after previous syntax error void nrf_delay_ms(uint32_t volatile number_of_ms); ..\main.c(48): error: #20: identifier "nrf_delay_ms" is undefined nrf_delay_ms(500); ..\main.c: 1 warning, 3 errors creating preprocessor file for cpptest.cpp... ..\cpptest.cpp(31): warning: #1-D: last line of file ends without a newline } ..\cpptest.cpp: 1 warning, 0 errors compiling cpptest.cpp... C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.1.1\CMSIS\Include\core_cm0.h(699): error: #169: expected a declaration } ..\cpptest.cpp(31): warning: #1-D: last line of file ends without a newline } ..\cpptest.cpp(31): warning: At end of source: #12-D: parsing restarts here after previous syntax error ..\cpptest.cpp: 2 warnings, 1 error assembling arm_startup_nrf51.s... creating preprocessor file for system_nrf51.c... compiling system_nrf51.c... creating preprocessor file for nrf_delay.c... compiling nrf_delay.c... C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.1.1\CMSIS\Include\core_cm0.h(699): error: #169: expected a declaration } ..\..\..\..\Include\nrf_delay.h(11): error: #10: "#" not expected here SUBS R0, R0, #1 ..\..\..\..\Include\nrf_delay.h(72): warning: #12-D: parsing restarts here after previous syntax error void nrf_delay_ms(uint32_t volatile number_of_ms); ..\..\..\..\Source\nrf_delay\nrf_delay.c(24): error: #20: identifier "nrf_delay_us" is undefined nrf_delay_us(999); ..\..\..\..\Source\nrf_delay\nrf_delay.c: 1 warning, 3 errors ".\_build\blinky_arm.axf" - 7 Error(s), 5 Warning(s). Target not created