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_fix LM75B MMA7660 MQTT PowerControl SNICInterface mbed-rtos mbed
Fork of IBMIoTClientWifiExample 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 #if defined(TARGET_ARCH_PRO) // Seeed Studio Arch Pro 00022 00023 C12832 lcd(D11, D13, D12, D7, D10); 00024 DigitalOut led2(LED2); 00025 PwmOut r(D5); 00026 PwmOut g(P2_0); 00027 PwmOut b(P2_1); 00028 MMA7660 MMA(D14, D15); 00029 LM75B sensor(D14, D15); 00030 DigitalIn Down(A3); 00031 DigitalIn Left(A4); 00032 DigitalIn Click(D4); 00033 DigitalIn Up(A2); 00034 DigitalIn Right(A5); 00035 AnalogIn ain1(A0); 00036 AnalogIn ain2(A1); 00037 00038 #define LED2_OFF 1 00039 #define LED2_ON 0 00040 00041 #else 00042 00043 C12832 lcd(p5, p7, p6, p8, p11); 00044 DigitalOut led2(LED2); 00045 PwmOut r(p23); 00046 PwmOut g(p24); 00047 PwmOut b(p25); 00048 MMA7660 MMA(p28, p27); 00049 LM75B sensor(p28, p27); 00050 DigitalIn Down(p12); 00051 DigitalIn Left(p13); 00052 DigitalIn Click(p14); 00053 DigitalIn Up(p15); 00054 DigitalIn Right(p16); 00055 AnalogIn ain1(p19); 00056 AnalogIn ain2(p20); 00057 00058 #define LED2_OFF 0 00059 #define LED2_ON 1 00060 00061 #endif 00062 00063 00064 #define DEFAULT_TYPE_NAME "iotsample-mbed-lpc1768" 00065 00066 // need a wrapper since K64F and LPC1768 wont have the same name for mii read methods 00067 static uint32_t linkStatus(void) 00068 { 00069 return 1; 00070 } 00071 00072 #endif
Generated on Sun Jul 17 2022 09:22:03 by
1.7.2
