mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
STM32 Serial1 defs for F411RE and F446ZE
This commit is contained in:
parent
c6866aba86
commit
7c4640ad91
@ -32,8 +32,17 @@
|
|||||||
#include "DIAG.h" //PMA temp debug
|
#include "DIAG.h" //PMA temp debug
|
||||||
#include "DCCTimer.h"
|
#include "DCCTimer.h"
|
||||||
|
|
||||||
// STM32 doesn't have Serial1 defined by default
|
#define STM32F411RE // PMA - ideally this ought to be derived from within the STM32 support somehow
|
||||||
HardwareSerial Serial1(PA10, PA15); // Rx=PA10, Tx=PA15
|
|
||||||
|
#if defined(STM32F411RE)
|
||||||
|
// STM32F411RE doesn't have Serial1 defined by default
|
||||||
|
HardwareSerial Serial1(PB7, PA15); // Rx=PB7, Tx=PA15 -- CN7 pins 17 and 21 - F411RE
|
||||||
|
#elif defined(STM32F446ZE)
|
||||||
|
// STM32F446ZE doesn't have Serial1 defined by default
|
||||||
|
HardwareSerial Serial1(PG9, PG14); // Rx=PG9, Tx=PG14 -- D0, D1 - F446ZE
|
||||||
|
#else
|
||||||
|
#warning Serial1 not defined
|
||||||
|
#endif
|
||||||
|
|
||||||
INTERRUPT_CALLBACK interruptHandler=0;
|
INTERRUPT_CALLBACK interruptHandler=0;
|
||||||
// Let's use STM32's timer #11 until disabused of this notion
|
// Let's use STM32's timer #11 until disabused of this notion
|
||||||
|
Loading…
Reference in New Issue
Block a user