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
Revision 17:877a9a3148a4, committed 2014-02-18
- Comitter:
- vwochnik
- Date:
- Tue Feb 18 15:51:57 2014 +0000
- Parent:
- 16:94d6eae3195a
- Child:
- 18:6bce406b3da2
- Commit message:
- fix
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Tue Feb 18 15:51:57 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- a/common.h Tue Feb 18 15:37:50 2014 +0000 +++ b/common.h Tue Feb 18 15:51:57 2014 +0000 @@ -9,6 +9,33 @@ #include "UbloxUSBCDMAModem.h" #include "MbedSmartRest.h" +#define A0 P0_23 +#define A1 P0_24 +#define A2 P0_25 +#define A3 P0_26 +#define A4 P0_30 +#define A5 P1_31 + +#define D0 P4_29 +#define D1 P4_28 +#define D2 P2_13 +#define D3 P2_0 +#define D4 P2_12 +#define D5 P2_1 +#define D6 P2_2 +#define D7 P2_11 + +#define D8 P2_4 +#define D9 P2_3 +#define D10 P1_21 +#define D11 P1_24 +#define D12 P1_23 +#define D13 P1_20 + +#define SDA P0_0 +#define SCL P0_1 + + /** signal quality type */ typedef struct {
--- a/io.cpp Tue Feb 18 15:37:50 2014 +0000 +++ b/io.cpp Tue Feb 18 15:51:57 2014 +0000 @@ -4,10 +4,12 @@ void timer_callback(void const*); // Using Arduino pin notation -LM75B tempSensor(SDA, SCL); -MMA7660 accSensor(p28, p27); -DigitalIn button(p14); -//C12832 lcdDisplay(D11, D13, D12, D7, D10); +C12832 lcdDisplay(D11, D13, D12, D7, D10); +MMA7660 accSensor(SDA,SCL); +LM75B tempSensor(SDA,SCL); +DigitalOut button(D4); +AnalogIn meter1(A0); +AnalogIn meter2(A1); RtosTimer *timer;
--- a/io.h Tue Feb 18 15:37:50 2014 +0000 +++ b/io.h Tue Feb 18 15:51:57 2014 +0000 @@ -4,18 +4,7 @@ #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 +#include "C12832.h" typedef struct {