Hey,
Thanks for the library, it rocks.
I couldn't compile correctly on nrf51822. seems there is some issue with definition of NRF_POWER (has already been mentioned)
I think it's due to the fact that when the arduino is on NRF already, it creates a double conflicting definition: I just commented the whole NRF_POWER thing and it compile and runs smoothly (again, many thanks <3)
home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf.h:122:0, from /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/Arduino.h:10, from /home/doh/ARDUINO/WORKSPACE/test/M365_display_platform/M365_display_platform.ino:2: /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:656:3: note: in expansion of macro 'NRF_POWER' } NRF_POWER; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:656:3: note: in expansion of macro 'NRF_POWER' } NRF_POWER; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:691:2: note: in expansion of macro 'NRF_POWER' NRF_POWER power; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:691:2: note: in expansion of macro 'NRF_POWER' NRF_POWER power; ^ I have no idea what's wrong here..and how this is linked.
I don't need this right now, so this is just to let you know :)
Have a nice day!
H.
Hey, Thanks for the library, it rocks. I couldn't compile correctly on nrf51822. seems there is some issue with definition of NRF_POWER (has already been mentioned) I think it's due to the fact that when the arduino is on NRF already, it creates a double conflicting definition: I just commented the whole NRF_POWER thing and it compile and runs smoothly (again, many thanks <3)
home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf.h:122:0, from /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/Arduino.h:10, from /home/doh/ARDUINO/WORKSPACE/test/M365_display_platform/M365_display_platform.ino:2: /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:656:3: note: in expansion of macro 'NRF_POWER' } NRF_POWER; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:656:3: note: in expansion of macro 'NRF_POWER' } NRF_POWER; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:691:2: note: in expansion of macro 'NRF_POWER' NRF_POWER power; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:691:2: note: in expansion of macro 'NRF_POWER' NRF_POWER power; ^ I have no idea what's wrong here..and how this is linked.
I don't need this right now, so this is just to let you know :) Have a nice day! H.