M2560 PPM_IN correction + bootloader source
This commit is contained in:
@@ -4,6 +4,5 @@ MEGA2560 board
|
||||
DIY radio wih :
|
||||
- Arduino MEGA2560 or compatible
|
||||
- Gruvin9x features (soft-off, SD-Card, RTC, haptic, voice, rotary encoders)
|
||||
- LCD 128x64 Artronic (ST7565R) or Zolen (ST7565P)
|
||||
- Aurora9 or T9X gimballs
|
||||
- LCD 128x64 8 bits parallel mode
|
||||
- home made case
|
||||
@@ -42,10 +42,10 @@ inline void boardInit()
|
||||
{
|
||||
// Set up I/O port data directions and initial states (unused pin setting : input, pull-up on)
|
||||
DDRA = 0b11111111; PORTA = 0b00000000; // LCD data
|
||||
DDRB = 0b01110111; PORTB = 0b00101111; // 7:PPM_IN 6:PPM_OUT, 5:SimCTRL, 4:Buzzer, SDCARD[3:MISO 2:MOSI 1:SCK 0:CS]
|
||||
DDRB = 0b01110111; PORTB = 0b10101111; // 7:N/A 6:PPM_OUT, 5:SimCTRL, 4:Buzzer, SDCARD[3:MISO 2:MOSI 1:SCK 0:CS]
|
||||
DDRC = 0b11111100; PORTC = 0b00000011; // 7-3:LCD, 2:BackLight, 1:ID2_SW, 0:ID1_SW
|
||||
DDRD = 0b00000000; PORTD = 0b11111100; // 7:AilDR_SW, 6:N/A, 5:N/A, 4:N/A, 3:RENC2_B, 2:RENC2_A, 1:I2C_SDA, 0:I2C_SCL
|
||||
DDRE = 0b00000010; PORTE = 0b11111100; // 7:N/A, 6:N/A, 5:RENC1_B, 4:RENC1_A, 3:N/A, 2:N/A, 1:TELEM_TX, 0:TELEM_RX
|
||||
DDRE = 0b00000010; PORTE = 0b01111100; // 7:PPM_IN, 6:N/A, 5:RENC1_B, 4:RENC1_A, 3:N/A, 2:N/A, 1:TELEM_TX, 0:TELEM_RX
|
||||
DDRF = 0b00000000; PORTF = 0b11111111; // 7-0:Trim switch inputs
|
||||
DDRG = 0b00000000; PORTG = 0b11111111; // 7:N/A, 6:N/A, 5:N/A, 4:N/A, 3:N/A, 2:TCut_SW, 1:Gear_SW, 0: RudDr_SW
|
||||
#if defined(PCBMEGA2560) && defined(DEBUG)
|
||||
|
||||
@@ -111,7 +111,7 @@ void sdPoll10ms(void);
|
||||
# define INP_L_Trainer 7
|
||||
|
||||
// Servitudes driver
|
||||
# define INP_B_PPM_IN 7
|
||||
//#define INP_E_PPM_IN 7 //reserved PPM_IN
|
||||
# define OUT_B_PPM 6
|
||||
# define OUT_B_SIM_CTL 5
|
||||
# define OUT_B_BUZZER 4
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user