TMRh20 ported to MBED
Fork of TMRh20 by
RF24_config.h
- Committer:
- gume
- Date:
- 2016-03-17
- Revision:
- 4:c741eb877a4e
- Parent:
- 3:13e43d3101a5
- Child:
- 6:15a3bbf90fe9
File content as of revision 4:c741eb877a4e:
/* Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. */ /* spaniakos <spaniakos@gmail.com> Added __ARDUINO_X86__ support */ #ifndef __RF24_CONFIG_H__ #define __RF24_CONFIG_H__ #include <stdint.h> #define rf24_max(a,b) (a>b?a:b) #define rf24_min(a,b) (a<b?a:b) #define RF24_SPI_TRANSACTIONS // RF modules support 10 Mhz SPI bus speed const uint32_t RF24_SPI_SPEED = 8000000; //typedef char const char; typedef uint16_t prog_uint16_t; #define PSTR(x) (x) #define printf_P printf #define strlen_P strlen #define PROGMEM #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) #define pgm_read_word(p) (*(p)) #define PRIPSTR "%s" #define HIGH 1 #define LOW 0 #define _BV(n) (1 << n) #endif // __RF24_CONFIG_H__