FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.
Dependencies: mbed FXOS8700CQ MODSERIAL
hardware.h
00001 /* =================================================================== 00002 Copyright © 2016, AVNET Inc. 00003 00004 Licensed under the Apache License, Version 2.0 (the "License"); 00005 you may not use this file except in compliance with the License. 00006 You may obtain a copy of the License at 00007 00008 http://www.apache.org/licenses/LICENSE-2.0 00009 00010 Unless required by applicable law or agreed to in writing, 00011 software distributed under the License is distributed on an 00012 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00013 either express or implied. See the License for the specific 00014 language governing permissions and limitations under the License. 00015 00016 ======================================================================== */ 00017 00018 #ifndef Hardware_H_ 00019 #define Hardware_H_ 00020 #include "MODSERIAL.h" 00021 00022 extern I2C i2c; //SDA, SCL -- define the I2C pins being used 00023 extern MODSERIAL pc; //UART to USB host 00024 extern MODSERIAL mdm; //UART to WNC modem 00025 //extern SerialBuffered mdm; //UART to WNC modem 00026 00027 //Un-comment the definition below if you want to use the USB rx for another purpose. 00028 //otherwise the USB rx will be used to receive virtual sensor data from Avnet's 00029 //"Sensor Simulator Dashboard" utility 00030 #define USE_VIRTUAL_SENSORS 00031 00032 // comment out the following line if color is not supported on the terminal 00033 #define USE_COLOR 00034 #ifdef USE_COLOR 00035 #define BLK "\033[30m" 00036 #define RED "\033[31m" 00037 #define GRN "\033[32m" 00038 #define YEL "\033[33m" 00039 #define BLU "\033[34m" 00040 #define MAG "\033[35m" 00041 #define CYN "\033[36m" 00042 #define WHT "\033[37m" 00043 #define DEF "\033[39m" 00044 #else 00045 #define BLK 00046 #define RED 00047 #define GRN 00048 #define YEL 00049 #define BLU 00050 #define MAG 00051 #define CYN 00052 #define WHT 00053 #define DEF 00054 #endif 00055 00056 #ifdef _ULINK_PRINT 00057 #include "itm_output.h" 00058 #else 00059 #define PRINTF pc.printf 00060 #define PUTS pc.puts 00061 #endif 00062 00063 00064 #endif
Generated on Wed Jul 13 2022 15:25:27 by 1.7.2