Allow local services.h file #7

Merged
merged 2 commits into from Jun 10, 2014

Projects

None yet

2 participants

@sandeepmistry
Collaborator

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;
  1. Pass arguments to nrf->setup():

Change:

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

to:

if ((nrf->setup(setup_msgs, NB_SETUP_MESSAGES)) == cmdSuccess) {
  ....
}
  1. Modify generated services.h:

Change:

#include "hal_platform.h" 
#include "aci.h"

to:

#include <stdint.h>
#include <hal_platform.h>
#include <aci.h>
@guanix guanix merged commit 4486e60 into guanix:master Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment