IoT Starter Kit Code

Dependencies:   C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed

Committer:
icraggs
Date:
Tue Sep 30 15:57:57 2014 +0000
Revision:
1:8f47175f0f53
Parent:
0:0777b6b0c36f
Removed conditional compilation for IoT registration settings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
icraggs 0:0777b6b0c36f 1 /*******************************************************************************
icraggs 0:0777b6b0c36f 2 * Copyright (c) 2014 IBM Corp.
icraggs 0:0777b6b0c36f 3 *
icraggs 0:0777b6b0c36f 4 * All rights reserved. This program and the accompanying materials
icraggs 0:0777b6b0c36f 5 * are made available under the terms of the Eclipse Public License v1.0
icraggs 0:0777b6b0c36f 6 * and Eclipse Distribution License v1.0 which accompany this distribution.
icraggs 0:0777b6b0c36f 7 *
icraggs 0:0777b6b0c36f 8 * The Eclipse Public License is available at
icraggs 0:0777b6b0c36f 9 * http://www.eclipse.org/legal/epl-v10.html
icraggs 0:0777b6b0c36f 10 * and the Eclipse Distribution License is available at
icraggs 0:0777b6b0c36f 11 * http://www.eclipse.org/org/documents/edl-v10.php.
icraggs 0:0777b6b0c36f 12 *
icraggs 0:0777b6b0c36f 13 * Contributors:
icraggs 0:0777b6b0c36f 14 * Ian Craggs - initial implementation
icraggs 0:0777b6b0c36f 15 * Sam Grove - added mehtod to check the status of the Ethernet cable
icraggs 0:0777b6b0c36f 16 *******************************************************************************/
icraggs 0:0777b6b0c36f 17
icraggs 0:0777b6b0c36f 18 #if !defined(K64F_H)
icraggs 0:0777b6b0c36f 19 #define K64F_H
icraggs 0:0777b6b0c36f 20
icraggs 0:0777b6b0c36f 21 C12832 lcd(D11, D13, D12, D7, D10);
icraggs 0:0777b6b0c36f 22 BusOut led2 (LED_BLUE);
icraggs 0:0777b6b0c36f 23 BusOut r (D5);
icraggs 0:0777b6b0c36f 24 BusOut g (D9);
icraggs 0:0777b6b0c36f 25 BusOut b (D8);
icraggs 0:0777b6b0c36f 26 MMA7660 MMA(PTE25, PTE24);
icraggs 0:0777b6b0c36f 27 LM75B sensor(PTE25, PTE24);
icraggs 0:0777b6b0c36f 28 DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Right(A4); DigitalIn Left(A5); DigitalIn Click(D4);
icraggs 0:0777b6b0c36f 29 AnalogIn ain1(A0); AnalogIn ain2(A1);
icraggs 0:0777b6b0c36f 30
icraggs 0:0777b6b0c36f 31 #define LED2_OFF 1
icraggs 0:0777b6b0c36f 32 #define LED2_ON 0
icraggs 0:0777b6b0c36f 33
icraggs 0:0777b6b0c36f 34 #define DEFAULT_TYPE_NAME "iotsample-mbed-k64f"
icraggs 0:0777b6b0c36f 35
icraggs 0:0777b6b0c36f 36 //#include "lpc_phy.h"
icraggs 0:0777b6b0c36f 37 // need a wrapper since K64F and LPC1768 wont have the same name for mii read methods
icraggs 0:0777b6b0c36f 38 static uint32_t linkStatus(void)
icraggs 0:0777b6b0c36f 39 {
icraggs 0:0777b6b0c36f 40 return (1);
icraggs 0:0777b6b0c36f 41 }
icraggs 0:0777b6b0c36f 42
icraggs 0:0777b6b0c36f 43 #endif