Hello, I have combined two files spi_master and ble_app_uart into one file. Once trying to compile main.c compiles with no error but bsp.c compiles with 3 errors although I have added the master.h library to it. It seems there is a problem with the linker linking two files but I couldn't resolve the problem. The error I get is bellow and you can also see the image I attach. Any help would be greatly appreciated.
.\_build\nrf51422_xxac_s110.axf: Undefined symbol spi_master_evt_handler_reg (referred from main.o).