New work version with additional functions

Dependencies:   4DGL-UC ConfigFile MODSERIAL mbed mbos

Fork of CDU_Mbed_35 by Engravity-CDU

Committer:
WillemBraat
Date:
Tue Aug 26 11:47:21 2014 +0000
Revision:
15:d13786882692
Child:
16:3c251cf29501
pins.h toegevoegd. Moet in de cpp-bestanden nog worden aangepast.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WillemBraat 15:d13786882692 1 //*********************************
WillemBraat 15:d13786882692 2 //pins in main.cpp
WillemBraat 15:d13786882692 3 //*********************************
WillemBraat 15:d13786882692 4 //MODSERIAL SERIAL_DEBUG(p9, p10, 512, 64); //: tx, rx
WillemBraat 15:d13786882692 5 #define MODSERIAL_TX p9
WillemBraat 15:d13786882692 6 #define MODESERIAL_RX p10
WillemBraat 15:d13786882692 7 //DigitalOut alive_led(LED1); // : LED 1 on Mbed board toggles when CDU is alive
WillemBraat 15:d13786882692 8 #define HEARTBEAT LED1
WillemBraat 15:d13786882692 9
WillemBraat 15:d13786882692 10 //*********************************
WillemBraat 15:d13786882692 11 //pins in display.cpp
WillemBraat 15:d13786882692 12 //*********************************
WillemBraat 15:d13786882692 13 //DigitalOut VGA_SOURCE( p7 ); //control line for video switch between INT and EXT video
WillemBraat 15:d13786882692 14 //DigitalOut VGA_SELECT( p8 ); //control line to select/deselect video switch
WillemBraat 15:d13786882692 15 #define VGA_SOURCE_SELECT p7
WillemBraat 15:d13786882692 16 #define VGA_ON_OFF p8 //note that 0=ON and 1=OFF
WillemBraat 15:d13786882692 17
WillemBraat 15:d13786882692 18 //Control lines for VGA driver board
WillemBraat 15:d13786882692 19 //TFT_4DGL display(p13,p14,p15); // serial tx, serial rx, reset pin
WillemBraat 15:d13786882692 20 #define VGA_TX p13
WillemBraat 15:d13786882692 21 #define VGA_RX p14
WillemBraat 15:d13786882692 22 #define VGA_RESET p15
WillemBraat 15:d13786882692 23
WillemBraat 15:d13786882692 24 //*********************************
WillemBraat 15:d13786882692 25 //pins in keyboard2.cpp
WillemBraat 15:d13786882692 26 //*********************************
WillemBraat 15:d13786882692 27 //CDU Keyboard LEDS
WillemBraat 15:d13786882692 28 #define LED_EXEC p12
WillemBraat 15:d13786882692 29 #define LED_FAIL p17
WillemBraat 15:d13786882692 30 #define LED_DSPY p18
WillemBraat 15:d13786882692 31 #define LED_MSG p19
WillemBraat 15:d13786882692 32 #define LED_OFST p20
WillemBraat 15:d13786882692 33
WillemBraat 15:d13786882692 34 //CDU background lighting
WillemBraat 15:d13786882692 35 //AnalogIn BGL_POT( p16 ); //background light control potmeter
WillemBraat 15:d13786882692 36 //PwmOut BGL_LED( p21 ); //PWM output background lighting
WillemBraat 15:d13786882692 37 #define BACKLIGHT_IN p16
WillemBraat 15:d13786882692 38 #define BACKLIGHT_DRIVE p21
WillemBraat 15:d13786882692 39
WillemBraat 15:d13786882692 40 //DigitalOut Key_led(LED2); // : LED 2 on Mbed board toggles when CDU key is pressed
WillemBraat 15:d13786882692 41 #define KEY_PRESSED LED2
WillemBraat 15:d13786882692 42