This is the final version of Mini Gateway for Automation and Security desgined for Renesas GR Peach Design Contest

Dependencies:   GR-PEACH_video GraphicsFramework HTTPServer R_BSP mbed-rpc mbed-rtos Socket lwip-eth lwip-sys lwip FATFileSystem

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Revision:
12:9a20164dcc47
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RF24/RF24_config.h	Wed Jan 11 11:41:30 2017 +0000
@@ -0,0 +1,69 @@
+
+/*
+ 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.
+ */
+ 
+/*
+ * Mbed support added by Akash Vibhute <akash.roboticist@gmail.com>
+ * Porting completed on Nov/05/2015
+ *
+ * Updated 1: Synced with TMRh20's RF24 library on Nov/04/2015 from https://github.com/TMRh20
+ * Updated 2: Synced with TMRh20's RF24 library on Apr/18/2015 from https://github.com/TMRh20
+ *
+ */
+ 
+
+#ifndef __RF24_CONFIG_H__
+#define __RF24_CONFIG_H__
+
+/*** USER DEFINES:  ***/
+//#define FAILURE_HANDLING
+//#define SERIAL_DEBUG
+//#define MINIMAL
+/**********************/
+#define rf24_max(a,b) (a>b?a:b)
+#define rf24_min(a,b) (a<b?a:b)
+
+
+#include <mbed.h>
+
+// RF modules support 10 Mhz SPI bus speed
+const uint32_t RF_SPI_SPEED = 10000000;
+
+#define HIGH 1
+#define LOW 0
+
+//#include <stdint.h>
+//#include <stdio.h>
+//#include <string.h>
+
+#define _BV(x) (1<<(x))
+#define _SPI SPI
+
+#ifdef SERIAL_DEBUG
+#define IF_SERIAL_DEBUG(x) ({x;})
+#else
+#define IF_SERIAL_DEBUG(x)
+#endif
+
+//#define printf_P printf
+#define printf_P
+//#define _BV(bit) (1<<(bit))
+#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
+
+typedef uint16_t prog_uint16_t;
+#define PSTR(x) (x)
+ // #define sprintf(...) os_sprintf( __VA_ARGS__ )
+  //#define printf_P printf
+  #define printf_P
+  #define strlen_P strlen  
+  #define PROGMEM
+  #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
+  #define pgm_read_word(p) (*(p))
+  #define PRIPSTR "%s"
+
+#endif // __RF24_CONFIG_H__
+