From b666668d0e6b67e4632e65486cae814ab5abbc39 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Thu, 12 Jan 2023 13:41:48 -0600 Subject: updating for linkedin --- src/pins.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'src/pins.h') diff --git a/src/pins.h b/src/pins.h index f874e19..2842e5c 100644 --- a/src/pins.h +++ b/src/pins.h @@ -1,4 +1,5 @@ #ifndef __PINS_INC +#define __PINS_INC /** * CTS is connected to CTS, CTS is 1 when we are ready * scope pins: @@ -7,19 +8,39 @@ * 3: desktop rts * 4: desktop cts */ -#define __PINS_INC #include +#ifdef __AVR_ATmega328P__ #define UART_DDR DDRD -#define UART_CTS PD2 //cyan -#define UART_RTS PD3 //yellow +#define UART_CTS PD2 +#define UART_RTS PD3 #define UART_PORT PORTD #define LED_DEBUG_DDR DDRB #define LED_DEBUG_PORT PORTB #define LED_DEBUG PB5 +#elif __AVR_ATmega2560__ +#define UART_DDR DDRB +#define UART_CTS PB6 +#define UART_RTS PB5 +#define UART_PORT PORTB +#define UART_PIN PINB + +#define LED_DEBUG_DDR DDRB +#define LED_DEBUG_PORT PORTB +#define LED_DEBUG PB7 +#else +#error "Only have arduino and arduino mega pin mappings!" +#endif + #endif +/** +yelow = slave rts/master cts +cyan = slave cts/master rts +pink = slave tx/master tx +blue = slave rx/slave tx +**/ -- cgit v1.2.3