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