SmartREST client reference implementation for the u-blox C027 mbed compatible device.

Dependencies:   C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832

Fork of MbedSmartRestTest by Vincent Wochnik

Committer:
vwochnik
Date:
Tue Feb 18 15:36:12 2014 +0000
Revision:
15:0ccf0f530a05
Parent:
14:56da550a1baa
Child:
17:877a9a3148a4
fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vwochnik 12:beb64aa0da86 1 #ifndef IO_H
vwochnik 12:beb64aa0da86 2 #define IO_H
vwochnik 12:beb64aa0da86 3
vwochnik 12:beb64aa0da86 4 #include "common.h"
vwochnik 12:beb64aa0da86 5 #include "LM75B.h"
vwochnik 12:beb64aa0da86 6 #include "MMA7660.h"
vwochnik 14:56da550a1baa 7 //#include "C12832.h"
vwochnik 14:56da550a1baa 8
vwochnik 14:56da550a1baa 9 // Map the LPC1768 pins to the arduino pin names
vwochnik 14:56da550a1baa 10 // These are the only things that are constant between ARCH, FRDM, u-blox etc
vwochnik 14:56da550a1baa 11 #define D5 P2_1
vwochnik 14:56da550a1baa 12 #define D7 P2_11
vwochnik 14:56da550a1baa 13 #define D10 P1_21
vwochnik 14:56da550a1baa 14 #define D11 P1_24
vwochnik 14:56da550a1baa 15 #define D12 P1_23
vwochnik 14:56da550a1baa 16 #define D13 P1_20
vwochnik 14:56da550a1baa 17 #define SDA P0_0
vwochnik 14:56da550a1baa 18 #define SCL P0_1
vwochnik 12:beb64aa0da86 19
vwochnik 12:beb64aa0da86 20 typedef struct
vwochnik 12:beb64aa0da86 21 {
vwochnik 12:beb64aa0da86 22 float x, y, z;
vwochnik 12:beb64aa0da86 23 } acceleration_t;
vwochnik 12:beb64aa0da86 24
vwochnik 15:0ccf0f530a05 25 void io_init(void);
vwochnik 12:beb64aa0da86 26 float temperature();
vwochnik 12:beb64aa0da86 27 acceleration_t acceleration();
vwochnik 12:beb64aa0da86 28 uint32_t counter();
vwochnik 12:beb64aa0da86 29
vwochnik 12:beb64aa0da86 30 #endif