Exercise 5
Dependencies: C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
K64F.h
00001 /******************************************************************************* 00002 * Copyright (c) 2014 IBM Corp. 00003 * 00004 * All rights reserved. This program and the accompanying materials 00005 * are made available under the terms of the Eclipse Public License v1.0 00006 * and Eclipse Distribution License v1.0 which accompany this distribution. 00007 * 00008 * The Eclipse Public License is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * and the Eclipse Distribution License is available at 00011 * http://www.eclipse.org/org/documents/edl-v10.php. 00012 * 00013 * Contributors: 00014 * Ian Craggs - initial implementation 00015 * Sam Grove - added method to check the status of the Ethernet cable 00016 *******************************************************************************/ 00017 00018 #if !defined(K64F_H) 00019 #define K64F_H 00020 00021 C12832 lcd(D11, D13, D12, D7, D10); 00022 BusOut led2 (LED_BLUE); 00023 BusOut r (D5); 00024 BusOut g (D9); 00025 BusOut b (D8); 00026 MMA7660 MMA(PTE25, PTE24); 00027 LM75B sensor(PTE25, PTE24); 00028 DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Right(A4); DigitalIn Left(A5); DigitalIn Click(D4); 00029 AnalogIn ain1(A0); AnalogIn ain2(A1); 00030 00031 #define LED2_OFF 1 00032 #define LED2_ON 0 00033 00034 #define DEFAULT_TYPE_NAME "iotsample-mbed-k64f" 00035 00036 //#include "lpc_phy.h" 00037 // need a wrapper since K64F and LPC1768 wont have the same name for mii read methods 00038 static uint32_t linkStatus(void) 00039 { 00040 return (1); 00041 } 00042 00043 #endif
Generated on Wed Jul 13 2022 08:52:21 by 1.7.2