Modifications in 4DGL library. Added CDU_hw_sw.h for version info. Added pins.h for hardware pin remapping
Dependencies: 4DGL-UC MODSERIAL mbed mbos
Fork of CDU_Mbed_30 by
Revision 15:d13786882692, committed 2014-08-26
- Comitter:
- WillemBraat
- Date:
- Tue Aug 26 11:47:21 2014 +0000
- Parent:
- 14:5767d651d624
- Child:
- 16:3c251cf29501
- Commit message:
- pins.h toegevoegd. Moet in de cpp-bestanden nog worden aangepast.
Changed in this revision
pins.h | Show annotated file Show diff for this revision Revisions of this file |
screen_handler.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pins.h Tue Aug 26 11:47:21 2014 +0000 @@ -0,0 +1,42 @@ +//********************************* +//pins in main.cpp +//********************************* +//MODSERIAL SERIAL_DEBUG(p9, p10, 512, 64); //: tx, rx +#define MODSERIAL_TX p9 +#define MODESERIAL_RX p10 +//DigitalOut alive_led(LED1); // : LED 1 on Mbed board toggles when CDU is alive +#define HEARTBEAT LED1 + +//********************************* +//pins in display.cpp +//********************************* +//DigitalOut VGA_SOURCE( p7 ); //control line for video switch between INT and EXT video +//DigitalOut VGA_SELECT( p8 ); //control line to select/deselect video switch +#define VGA_SOURCE_SELECT p7 +#define VGA_ON_OFF p8 //note that 0=ON and 1=OFF + +//Control lines for VGA driver board +//TFT_4DGL display(p13,p14,p15); // serial tx, serial rx, reset pin +#define VGA_TX p13 +#define VGA_RX p14 +#define VGA_RESET p15 + +//********************************* +//pins in keyboard2.cpp +//********************************* +//CDU Keyboard LEDS +#define LED_EXEC p12 +#define LED_FAIL p17 +#define LED_DSPY p18 +#define LED_MSG p19 +#define LED_OFST p20 + +//CDU background lighting +//AnalogIn BGL_POT( p16 ); //background light control potmeter +//PwmOut BGL_LED( p21 ); //PWM output background lighting +#define BACKLIGHT_IN p16 +#define BACKLIGHT_DRIVE p21 + +//DigitalOut Key_led(LED2); // : LED 2 on Mbed board toggles when CDU key is pressed +#define KEY_PRESSED LED2 +
--- a/screen_handler.cpp Thu Aug 14 20:18:15 2014 +0000 +++ b/screen_handler.cpp Tue Aug 26 11:47:21 2014 +0000 @@ -175,7 +175,7 @@ if ( CDU_STATUS.stby_mode == 1 ) // : 0 = operational mode, 1 = standby mode { - VGA_SELECT = 1; // : switch VGA off + VGA_SELECT = VGA_OFF; // : switch VGA off CDU_SET_BGL_INTENSITY( 0 ); // : backlighting off MSG = 0; // : indicators off EXEC = 0; @@ -186,7 +186,7 @@ } else { - VGA_SELECT = 0; // : switch VGA on + VGA_SELECT = VGA_ON; // : switch VGA on CDU_SET_BGL_INTENSITY( 100 ); // : backlighting on MSG = CDU_STATUS.msg_indicator; // : restore indicators EXEC = CDU_STATUS.exec_indicator;