guanix/arduino-nrf8001 — pull request #7 by sandeepmistry (2014-06-10 22:14:46+00:00)
Title: Allow local services.h file

This pull request allows you to use a local ```services.h``` file. Changes required in sketch:

1) Include ```services.h``` and boiler plate in sketch:
```
#include "services.h"

hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] = SETUP_MESSAGES_CONTENT;
```
2) Pass arguments to ```nrf->setup()```:

Change:
```
if ((nrf->setup()) == cmdSuccess) {
....
}
```

to:
```
if ((nrf->setup(setup_msgs, NB_SETUP_MESSAGES)) == cmdSuccess) {
....
}
```

3) Modify generated ```services.h```:

Change:
```
#include "hal_platform.h"
#include "aci.h"
```

to:
```
#include
#include
#include
```