When creating my own project in Keil for the NRF51. I get this error when including files that include nrf.h. I do not have this problem in the example projects with the NRF51. When I try to find where the device is defined in these example projects I get the message: 'NRF51' - undefined Definition/Reference !
If possible I would like to know how do I solve this and what the reason for the error is.