Skip to content

Commit

Permalink
https://github.com/rusefi/alphax-2chan/issues/14
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Jan 17, 2022
1 parent 7995f8a commit 7eac075
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/config/boards/hellen/alphax-2chan/board.mk
Expand Up @@ -32,7 +32,7 @@ DDEFS += -DEFI_ICU_INPUTS=FALSE -DHAL_TRIGGER_USE_PAL=TRUE
DDEFS += -DEFI_LOGIC_ANALYZER=FALSE

# Enable serial pins on expansion header
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=GPIOD_6 -DEFI_CONSOLE_RX_BRAIN_PIN=GPIOD_5 -DTS_PRIMARY_PORT=UARTD2 -DSTM32_UART_USE_USART2=1
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=H144_UART1_RX -DEFI_CONSOLE_RX_BRAIN_PIN=H144_UART1_TX -DTS_PRIMARY_PORT=UARTD8 -DSTM32_UART_USE_USART8=1

# We are running on Hellen-One hardware!
DDEFS += -DHW_HELLEN=1
Expand Down
8 changes: 8 additions & 0 deletions firmware/config/boards/hellen_meta.h
Expand Up @@ -15,6 +15,14 @@ void setHellen176LedPins();

void detectHellenBoardType();

// stm32 UART8
#define H144_UART1_RX GPIOE_0
#define H144_UART1_TX GPIOE_1

// stm32 UART2
#define H144_UART2_RX GPIOD_6
#define H144_UART2_TX GPIOD_5

#define H144_LED1_RED GPIOG_0
#define H176_LED1_RED GPIOH_8

Expand Down

0 comments on commit 7eac075

Please sign in to comment.