Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.
Fork of nrf51-sdk by
Diff: README.md
- Revision:
- 5:ce89fa3dfbaf
- Parent:
- 4:7019f1d6317d
- Child:
- 6:ac5a8f5c2d96
--- a/README.md Thu Apr 07 17:37:20 2016 +0100 +++ b/README.md Thu Apr 07 17:37:20 2016 +0100 @@ -33,3 +33,16 @@ python pick_nrf51_files.py <full-noridc-sdk-path> <nrf51-sdk-yotta-module-path> ``` +There are files in the sdk with the same filename but in different folder. This is dealt with by excluding certain directories. The excluded directories are listed in [pick_nrf51_files.py](https://github.com/ARMmbed/nrf51-sdk/blob/master/script/pick_nrf51_files.py). + +After running the script, the changes in [the previous section](#changes-made-to-nordic-files) will have to be applied manually again. + +Folder structure or even file name can change between releases of the nordic sdk, hence a degree of manual adjustment is needed when porting. + +### Using Noridc Headers +The nordic sdk is written in C and yotta modules support C++. If you are trying to include Nordic files in a cpp program, you need to use the `extern "C"` keyword around the includes. +```c +extern "C" { +#include "softdevice_handler.h" +} +``` \ No newline at end of file