Demo

Dependencies:   mbed

Committer:
nightseas
Date:
Thu May 19 15:52:24 2016 +0000
Revision:
2:0ee90da44162
Parent:
0:3dac4f477e98
AirBoxProtoDemo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nightseas 0:3dac4f477e98 1 #ifndef _PE_BD_LIB_
nightseas 0:3dac4f477e98 2 #define _PE_BD_LIB_
nightseas 0:3dac4f477e98 3
nightseas 0:3dac4f477e98 4 //Max number of onboard LEDs
nightseas 0:3dac4f477e98 5 extern const int LED_NUM_MAX;
nightseas 0:3dac4f477e98 6
nightseas 0:3dac4f477e98 7 //I2C for SHT20 & BMP180
nightseas 0:3dac4f477e98 8 extern I2C i2c_sen;
nightseas 0:3dac4f477e98 9
nightseas 0:3dac4f477e98 10 //USART2 to PC, USART1 to sensors & WiFi module
nightseas 0:3dac4f477e98 11 extern Serial uart_pc;
nightseas 0:3dac4f477e98 12 extern Serial uart_sen;
nightseas 0:3dac4f477e98 13
nightseas 0:3dac4f477e98 14 //LEDs on mother board and daughter board
nightseas 0:3dac4f477e98 15 extern DigitalOut led_mb, led_db1_n, led_db2_n;
nightseas 0:3dac4f477e98 16
nightseas 0:3dac4f477e98 17 //GPIO for CD4052 serial mux control
nightseas 0:3dac4f477e98 18 extern DigitalOut smux_a, smux_b, smux_oe_n;
nightseas 0:3dac4f477e98 19
nightseas 2:0ee90da44162 20 //ADC for analog sensors
nightseas 2:0ee90da44162 21 extern AnalogIn adc_ch10, adc_ch11;
nightseas 2:0ee90da44162 22
nightseas 0:3dac4f477e98 23 //Init functions
nightseas 0:3dac4f477e98 24 extern int BoardLibInit(void);
nightseas 0:3dac4f477e98 25
nightseas 0:3dac4f477e98 26 //Serial mux functions
nightseas 0:3dac4f477e98 27 extern void SerialMuxSel(int ch);
nightseas 0:3dac4f477e98 28 extern void SerialMuxEnable(void);
nightseas 0:3dac4f477e98 29 extern void SerialMuxDisable(void);
nightseas 0:3dac4f477e98 30
nightseas 0:3dac4f477e98 31 //On-board LED functions
nightseas 0:3dac4f477e98 32 extern void LedOn(int ch);
nightseas 0:3dac4f477e98 33 extern void LedOff(int ch);
nightseas 0:3dac4f477e98 34 extern void LedToggle(int ch);
nightseas 0:3dac4f477e98 35 extern void LedOffAll(void);
nightseas 0:3dac4f477e98 36 extern void LedOnAll(void);
nightseas 0:3dac4f477e98 37
nightseas 0:3dac4f477e98 38 #endif