Optimized high speed nRF24L01+ driver class documentation v1.4.8
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Loading...
Searching...
No Matches
Macros | Typedefs
RF24_arch_config.h File Reference
#include <stddef.h>
#include "spi.h"
#include "gpio.h"
#include "compatibility.h"
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <sys/time.h>

Go to the source code of this file.

Macros

#define RF24_LINUX
 
#define _BV(x)   (1 << (x))
 
#define _SPI   spi
 
#define IF_SERIAL_DEBUG(x)
 
#define PSTR(x)   (x)
 
#define printf_P   printf
 
#define strlen_P   strlen
 
#define PROGMEM
 
#define pgm_read_word(p)   (*(const unsigned short*)(p))
 
#define PRIPSTR   "%s"
 
#define pgm_read_byte(p)   (*(const unsigned char*)(p))
 
#define LOW   GPIO::OUTPUT_LOW
 
#define HIGH   GPIO::OUTPUT_HIGH
 
#define INPUT   GPIO::DIRECTION_IN
 
#define OUTPUT   GPIO::DIRECTION_OUT
 
#define digitalWrite(pin, value)   GPIO::write(pin, value)
 
#define pinMode(pin, direction)   GPIO::open(pin, direction)
 
#define delay(milisec)   __msleep(milisec)
 
#define delayMicroseconds(usec)   __usleep(usec)
 
#define millis()   __millis()
 

Typedefs

typedef uint16_t prog_uint16_t
 
typedef uint16_t rf24_gpio_pin_t
 

Detailed Description

General defines and includes for RF24/Linux

Definition in file RF24_arch_config.h.