Skip to content

Commit

Permalink
Update config file for RF24Ethernet
Browse files Browse the repository at this point in the history
- Modify RF24Network_config.h to allow inclusion by c programs (uIP)
  • Loading branch information
TMRh20 committed Jan 16, 2015
1 parent 1296058 commit fdaf171
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RF24Network_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __RF24NETWORK_CONFIG_H__
#define __RF24NETWORK_CONFIG_H__

#ifdef __cplusplus

#if (defined (__linux) || defined (linux)) && !defined (__ARDUINO_X86__)
#define RF24_LINUX
#include <stdint.h>
Expand All @@ -28,6 +30,8 @@

#include <stddef.h>

#endif //cplusplus: Allows RF24Ethernet(uIP) or other c programs to get access to the RF24Network config variables

#if !defined(__AVR_ATtiny85__) && !defined(__AVR_ATtiny84__)

/********** USER CONFIG - non ATTiny **************/
Expand Down Expand Up @@ -79,6 +83,8 @@

#endif

#ifdef __cplusplus

#ifndef rf24_max
#define rf24_max(a,b) (a>b?a:b)
#endif
Expand Down Expand Up @@ -192,3 +198,4 @@

#endif // __RF24_CONFIG_H__
// vim:ai:cin:sts=2 sw=2 ft=cpp
#endif //cplusplus

0 comments on commit fdaf171

Please sign in to comment.