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 MQTT mbed-rtos mbed
Fork of HelloMQTT 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 DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Right(A4); DigitalIn Left(A5); DigitalIn Click(D4); 00027 AnalogIn ain1(A0); AnalogIn ain2(A1); 00028 00029 #define LED2_OFF 1 00030 #define LED2_ON 0 00031 00032 #define DEFAULT_TYPE_NAME "iotsample-mbed-k64f" 00033 00034 //#include "lpc_phy.h" 00035 // need a wrapper since K64F and LPC1768 wont have the same name for mii read methods 00036 static uint32_t linkStatus(void) 00037 { 00038 return (1); 00039 } 00040 00041 #endif
Generated on Tue Jul 12 2022 21:13:02 by
1.7.2
