Maniacbug's nRF24L01+ arduino library ported to mbed. Functional with minor issues.

RF24_config_registers separated from nRF24L01P_Maniacbug.h

Hi! I am using the library nRF24L01P_Maniacbug with a kinetis mkl05 and I notice that a macro defined in nRF24L01P_Maniacbug.h (STATUS) was in conflict with some other with the same name (this happens when the nRF24L01P_Maniacbug.h and mbed.h are included in the same file). So my workaround was make another file andthat new file is only included in nRF24L01P_Maniacbug.cpp.

Best regards, João Sousa

Maniacbug's nRF24L01 arduino library ported to mbed. Functional with minor issues. arduino, maniacbug, nRF24L01, nRF24L01P

2 comments:

26 Oct 2014

This was the error:

nRF24L01P_Maniacbug/nRF24L01P_Maniacbug.h:33:21: error: expected unqualified-id before numeric constant

  1. define STATUS 0x07 ^ ./mbed/TARGET_KL05Z/MKL05Z4.h:2988:17: note: in expansion of macro 'STATUS' IO uint32_t STATUS; /< Capture and Compare Status, offset: 0x50 */
28 Oct 2014

I had the same problem when I used this library with KL05Z. A pull request had been submitted about 20 days ago. You can check it out here: http://developer.mbed.org/users/kenno/code/nRF24L01P_Maniacbug/