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

io.h

Committer:
vwochnik
Date:
2014-02-18
Revision:
14:56da550a1baa
Parent:
12:beb64aa0da86
Child:
15:0ccf0f530a05

File content as of revision 14:56da550a1baa:

#ifndef IO_H
#define IO_H

#include "common.h"
#include "LM75B.h"
#include "MMA7660.h"
//#include "C12832.h"

// Map the LPC1768 pins to the arduino pin names
// These are the only things that are constant between ARCH, FRDM, u-blox etc
#define D5  P2_1
#define D7  P2_11
#define D10 P1_21
#define D11 P1_24
#define D12 P1_23
#define D13 P1_20
#define SDA P0_0
#define SCL P0_1

typedef struct
{
    float x, y, z;
} acceleration_t;

float temperature();
acceleration_t acceleration();
uint32_t counter();

#endif