This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF8001 on RedBear BLE shield v2.0 with Intel Galileo Gen2

Hello,

I have purchased a Intel Galileo Gen2 (x86 Arduino) and RedBear BLE shield v2.0. The Arduino IDE I use is Intel's version. I have imported the corresponding libraries without error. However, when I try to compile SimpleChat example, there would be following error,

In file included from SimpleChat.ino:25:0: /home/bohan/Arduino/libraries/RBL_nRF8001/RBL_nRF8001.h:22:23: fatal error: avr/sleep.h: No such file or directory compilation terminated.

According to this doc,

communities.intel.com/.../22995...

it seems that Intel's Galileo dose not wrap avr related source code. So I think any functions included by avr header files would result in the same problem. RedBear lab suggested that I can post the question here to see if there is any help. Dose your library support Arduino of x86 architecture ? Any suggestions will be greatly appreciated.

Thank you

Parents Reply Children
  • Hi,

    Thanks for your suggestion. However, there would be a lot of error if I remove the statements including avr/sleep.h and avr/interrupt.h in RBL_nRF8001.h

    Indeed, as you said, there is a condition before including these two header files.

    #if ( !defined(SAM3X8E) && !defined(PIC32MX) )

    Because this header file is defined in RedBear's library, it seems that application could use your libraries without these avr functions. Am I right ? Before I go deeply into the whole source code, i might want to know if your libraries could run on a x86 Arduino ? Dose your libraries use any low level instructions related to Atmel controller ?

    Thank you.

Related