New work version with additional functions
Dependencies: 4DGL-UC ConfigFile MODSERIAL mbed mbos
Fork of CDU_Mbed_35 by
pins.h@18:fd672797458c, 2014-08-28 (annotated)
- Committer:
- WillemBraat
- Date:
- Thu Aug 28 12:01:12 2014 +0000
- Revision:
- 18:fd672797458c
- Parent:
- 17:b3545e9d38f7
- Child:
- 20:2d6ac4577e68
Modified 4DGL lib. Lowercase is converted to uppercase.
; All pin definitions of hardware are now in pins.h
; Software/Hardware info in CDU_hw_sh.H
; Binary is stamped with Hardware Version, Firmware Version and compile (UTC) time date stamp.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WillemBraat | 18:fd672797458c | 1 | #include "CDU_hw_sw.h" |
WillemBraat | 17:b3545e9d38f7 | 2 | |
WillemBraat | 18:fd672797458c | 3 | #ifdef HW_VERSION_MAIN |
WillemBraat | 18:fd672797458c | 4 | #if HW_VERSION_MAIN == 1 |
WillemBraat | 16:3c251cf29501 | 5 | //NOTE: THESE PIN DEFINITIONS ARE FOR HARDWARE VERSION 1.0 |
WillemBraat | 16:3c251cf29501 | 6 | // |
WillemBraat | 16:3c251cf29501 | 7 | //********************************* |
WillemBraat | 16:3c251cf29501 | 8 | //pins in main.cpp |
WillemBraat | 16:3c251cf29501 | 9 | //********************************* |
WillemBraat | 16:3c251cf29501 | 10 | //MODSERIAL SERIAL_DEBUG(p9, p10, 512, 64); //: tx, rx |
WillemBraat | 16:3c251cf29501 | 11 | #define MODSERIAL_TX p9 |
WillemBraat | 17:b3545e9d38f7 | 12 | #define MODSERIAL_RX p10 |
WillemBraat | 16:3c251cf29501 | 13 | //DigitalOut alive_led(LED1); // : LED 1 on Mbed board toggles when CDU is alive |
WillemBraat | 16:3c251cf29501 | 14 | #define HEARTBEAT LED1 |
WillemBraat | 16:3c251cf29501 | 15 | |
WillemBraat | 16:3c251cf29501 | 16 | //********************************* |
WillemBraat | 16:3c251cf29501 | 17 | //pins in display.cpp |
WillemBraat | 16:3c251cf29501 | 18 | //********************************* |
WillemBraat | 16:3c251cf29501 | 19 | //DigitalOut VGA_SOURCE( p7 ); //control line for video switch between INT and EXT video |
WillemBraat | 16:3c251cf29501 | 20 | //DigitalOut VGA_SELECT( p8 ); //control line to select/deselect video switch |
WillemBraat | 16:3c251cf29501 | 21 | #define VGA_SOURCE_SELECT p7 |
WillemBraat | 16:3c251cf29501 | 22 | #define VGA_ON_OFF p8 |
WillemBraat | 16:3c251cf29501 | 23 | |
WillemBraat | 16:3c251cf29501 | 24 | //Control lines for VGA driver board |
WillemBraat | 16:3c251cf29501 | 25 | //TFT_4DGL display(p13,p14,p15); // serial tx, serial rx, reset pin |
WillemBraat | 16:3c251cf29501 | 26 | #define VGA_TX p13 |
WillemBraat | 16:3c251cf29501 | 27 | #define VGA_RX p14 |
WillemBraat | 16:3c251cf29501 | 28 | #define VGA_RESET p15 |
WillemBraat | 15:d13786882692 | 29 | |
WillemBraat | 16:3c251cf29501 | 30 | //********************************* |
WillemBraat | 16:3c251cf29501 | 31 | //pins in keyboard2.cpp |
WillemBraat | 16:3c251cf29501 | 32 | //********************************* |
WillemBraat | 16:3c251cf29501 | 33 | //CDU Keyboard communications KEYBOARD_INT |
WillemBraat | 16:3c251cf29501 | 34 | //InterruptIn CDU_KB_INT( p5 ); //Set CDU keyboard interrupt line |
WillemBraat | 16:3c251cf29501 | 35 | //I2C CDU_I2C(p28, p27); //I2C bus for keyboard/temp chip. |
WillemBraat | 16:3c251cf29501 | 36 | #define KBD_INT p5 |
WillemBraat | 17:b3545e9d38f7 | 37 | #define I2C_SDA p28 |
WillemBraat | 17:b3545e9d38f7 | 38 | #define I2C_SCL p27 |
WillemBraat | 16:3c251cf29501 | 39 | |
WillemBraat | 16:3c251cf29501 | 40 | //CDU Keyboard LEDS |
WillemBraat | 16:3c251cf29501 | 41 | #define LED_EXEC p12 |
WillemBraat | 16:3c251cf29501 | 42 | #define LED_FAIL p17 |
WillemBraat | 16:3c251cf29501 | 43 | #define LED_DSPY p18 |
WillemBraat | 16:3c251cf29501 | 44 | #define LED_MSG p19 |
WillemBraat | 16:3c251cf29501 | 45 | #define LED_OFST p20 |
WillemBraat | 16:3c251cf29501 | 46 | |
WillemBraat | 16:3c251cf29501 | 47 | //CDU background lighting |
WillemBraat | 16:3c251cf29501 | 48 | //AnalogIn BGL_POT( p16 ); //background light control potmeter |
WillemBraat | 16:3c251cf29501 | 49 | //PwmOut BGL_LED( p21 ); //PWM output background lighting |
WillemBraat | 16:3c251cf29501 | 50 | #define BACKLIGHT_SET p16 |
WillemBraat | 16:3c251cf29501 | 51 | #define BACKLIGHT_DRIVE p21 |
WillemBraat | 16:3c251cf29501 | 52 | |
WillemBraat | 16:3c251cf29501 | 53 | //DigitalOut Key_led(LED2); // : LED 2 on Mbed board toggles when CDU key is pressed |
WillemBraat | 16:3c251cf29501 | 54 | #define KEY_PRESSED LED2 |
WillemBraat | 18:fd672797458c | 55 | #endif |
WillemBraat | 15:d13786882692 | 56 | |
WillemBraat | 16:3c251cf29501 | 57 | |
WillemBraat | 18:fd672797458c | 58 | #if HW_VERSION_MAIN == 2 |
WillemBraat | 16:3c251cf29501 | 59 | //NOTE: THESE PIN DEFINITIONS ARE FOR HARDWARE VERSION 2.0 |
WillemBraat | 16:3c251cf29501 | 60 | // |
WillemBraat | 16:3c251cf29501 | 61 | //********************************* |
WillemBraat | 16:3c251cf29501 | 62 | //pins in main.cpp |
WillemBraat | 16:3c251cf29501 | 63 | //********************************* |
WillemBraat | 16:3c251cf29501 | 64 | //MODSERIAL SERIAL_DEBUG(p9, p10, 512, 64); //: tx, rx |
WillemBraat | 16:3c251cf29501 | 65 | #define MODSERIAL_TX p9 |
WillemBraat | 16:3c251cf29501 | 66 | #define MODESERIAL_RX p10 |
WillemBraat | 16:3c251cf29501 | 67 | //DigitalOut alive_led(LED1); // : LED 1 on Mbed board toggles when CDU is alive |
WillemBraat | 16:3c251cf29501 | 68 | #define HEARTBEAT LED1 |
WillemBraat | 16:3c251cf29501 | 69 | |
WillemBraat | 16:3c251cf29501 | 70 | //********************************* |
WillemBraat | 16:3c251cf29501 | 71 | //pins in display.cpp |
WillemBraat | 16:3c251cf29501 | 72 | //********************************* |
WillemBraat | 16:3c251cf29501 | 73 | //DigitalOut VGA_SOURCE( p7 ); //control line for video switch between INT and EXT video |
WillemBraat | 16:3c251cf29501 | 74 | //DigitalOut VGA_SELECT( p8 ); //control line to select/deselect video switch |
WillemBraat | 16:3c251cf29501 | 75 | #define VGA_SOURCE_SELECT p7 |
WillemBraat | 16:3c251cf29501 | 76 | #define VGA_ON_OFF p8 |
WillemBraat | 15:d13786882692 | 77 | |
WillemBraat | 16:3c251cf29501 | 78 | //Control lines for VGA driver board |
WillemBraat | 16:3c251cf29501 | 79 | //TFT_4DGL display(p14,p13,p12); // serial tx, serial rx, reset pin |
WillemBraat | 16:3c251cf29501 | 80 | #define VGA_RESET p12 |
WillemBraat | 16:3c251cf29501 | 81 | #define VGA_RX p13 |
WillemBraat | 16:3c251cf29501 | 82 | #define VGA_TX p14 |
WillemBraat | 16:3c251cf29501 | 83 | |
WillemBraat | 16:3c251cf29501 | 84 | //********************************* |
WillemBraat | 16:3c251cf29501 | 85 | //pins in keyboard2.cpp |
WillemBraat | 16:3c251cf29501 | 86 | //********************************* |
WillemBraat | 16:3c251cf29501 | 87 | //CDU Keyboard communications KEYBOARD_INT |
WillemBraat | 16:3c251cf29501 | 88 | //InterruptIn CDU_KB_INT( p5 ); //Set CDU keyboard interrupt line |
WillemBraat | 16:3c251cf29501 | 89 | //I2C CDU_I2C(p28, p27); //I2C bus for keyboard/temp chip. |
WillemBraat | 16:3c251cf29501 | 90 | #define KBD_INT p5 |
WillemBraat | 16:3c251cf29501 | 91 | #define KBD_TMP_SDA p28 |
WillemBraat | 16:3c251cf29501 | 92 | #define KBD_TMP_SCL p27 |
WillemBraat | 15:d13786882692 | 93 | |
WillemBraat | 16:3c251cf29501 | 94 | //CDU Keyboard LEDS |
WillemBraat | 16:3c251cf29501 | 95 | #define LED_EXEC p25 |
WillemBraat | 16:3c251cf29501 | 96 | #define LED_FAIL p24 |
WillemBraat | 16:3c251cf29501 | 97 | #define LED_DSPY p23 |
WillemBraat | 16:3c251cf29501 | 98 | #define LED_MSG p22 |
WillemBraat | 16:3c251cf29501 | 99 | #define LED_OFST p21 |
WillemBraat | 15:d13786882692 | 100 | |
WillemBraat | 16:3c251cf29501 | 101 | //CDU background lighting |
WillemBraat | 16:3c251cf29501 | 102 | //AnalogIn BGL_POT( p15 ); //background light control potmeter |
WillemBraat | 16:3c251cf29501 | 103 | //PwmOut BGL_LED( p26 ); //PWM output background lighting |
WillemBraat | 16:3c251cf29501 | 104 | #define BACKLIGHT_SET p15 |
WillemBraat | 16:3c251cf29501 | 105 | #define BACKLIGHT_DRIVE p26 |
WillemBraat | 15:d13786882692 | 106 | |
WillemBraat | 16:3c251cf29501 | 107 | //DigitalOut Key_led(LED2); // : LED 2 on Mbed board toggles when CDU key is pressed |
WillemBraat | 16:3c251cf29501 | 108 | #define KEY_PRESSED LED2 |
WillemBraat | 18:fd672797458c | 109 | #endif |
WillemBraat | 18:fd672797458c | 110 | |
WillemBraat | 16:3c251cf29501 | 111 | #endif |