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.
AirAdaptorLib.h
00001 #ifndef _PE_BD_LIB_ 00002 #define _PE_BD_LIB_ 00003 00004 //Max number of onboard LEDs 00005 extern const int LED_NUM_MAX; 00006 00007 //I2C for SHT20 & BMP180 00008 extern I2C i2c_sen; 00009 00010 //USART2 to PC, USART1 to sensors & WiFi module 00011 extern Serial uart_pc; 00012 extern Serial uart_sen; 00013 00014 //LEDs on mother board and daughter board 00015 extern DigitalOut led_mb, led_db1_n, led_db2_n; 00016 00017 //GPIO for CD4052 serial mux control 00018 extern DigitalOut smux_a, smux_b, smux_oe_n; 00019 00020 //ADC for analog sensors 00021 extern AnalogIn adc_ch10, adc_ch11; 00022 00023 //Init functions 00024 extern int BoardLibInit(void); 00025 00026 //Serial mux functions 00027 extern void SerialMuxSel(int ch); 00028 extern void SerialMuxEnable(void); 00029 extern void SerialMuxDisable(void); 00030 00031 //On-board LED functions 00032 extern void LedOn(int ch); 00033 extern void LedOff(int ch); 00034 extern void LedToggle(int ch); 00035 extern void LedOffAll(void); 00036 extern void LedOnAll(void); 00037 00038 #endif
Generated on Fri Jul 15 2022 14:37:21 by
1.7.2