Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 EthernetInterface MMA7660 MQTT USBDevice mbed-rtos mbed
Fork of HelloMQTT by
LPC1768.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 mehtod to check the status of the Ethernet cable 00016 *******************************************************************************/ 00017 00018 #if !defined(LPC1768_H) 00019 #define LPC1768_H 00020 00021 C12832 lcd(p5, p7, p6, p8, p11); 00022 DigitalOut led2(LED2); 00023 PwmOut r(p23); 00024 PwmOut g(p24); 00025 PwmOut b(p25); 00026 DigitalIn Down(p12); 00027 DigitalIn Left(p13); 00028 DigitalIn Click(p14); 00029 DigitalIn Up(p15); 00030 DigitalIn Right(p16); 00031 AnalogIn ain1(p19); 00032 AnalogIn ain2(p20); 00033 00034 #define LED2_OFF 0 00035 #define LED2_ON 1 00036 00037 #define DEFAULT_TYPE_NAME "iotsample-mbed-lpc1768" 00038 00039 #include "lpc_phy.h" 00040 // need a wrapper since K64F and LPC1768 wont have the same name for mii read methods 00041 static uint32_t linkStatus(void) 00042 { 00043 return (lpc_mii_read_data() & 1); 00044 } 00045 00046 #endif
Generated on Sun Jul 17 2022 11:40:56 by
1.7.2
