Skip to content

Commit

Permalink
Update SPRACINGF3MINI and LUX_RACE targets for changes made in USART4/5
Browse files Browse the repository at this point in the history
support.

Fix two more issues missed in previous merge of uart45 branch.
  • Loading branch information
hydra committed Feb 20, 2016
1 parent 1efd1d6 commit b5a455d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ void validateAndFixConfig(void)
}
#endif

#if defined(CC3D) && defined(DISPLAY) && defined(USE_USART3)
#if defined(CC3D) && defined(DISPLAY) && defined(USE_UART3)
if (doesConfigurationUsePort(SERIAL_PORT_USART3) && featureConfigured(FEATURE_DISPLAY)) {
featureClear(FEATURE_DISPLAY);
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/target/LUX_RACE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
#define USB_IO

#define USE_VCP
#define USE_USART1
#define USE_USART2
#define USE_USART3
#define USE_UART1
#define USE_UART2
#define USE_UART3
#define SERIAL_PORT_COUNT 4

#define UART1_TX_PIN GPIO_Pin_4
Expand Down
6 changes: 3 additions & 3 deletions src/main/target/SPRACINGF3MINI/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
#define USB_DETECT_GPIO_CLK RCC_AHBPeriph_GPIOC

#define USE_VCP
#define USE_USART1
#define USE_USART2
#define USE_USART3
#define USE_UART1
#define USE_UART2
#define USE_UART3
#define USE_SOFTSERIAL1
#define SERIAL_PORT_COUNT 5

Expand Down
12 changes: 6 additions & 6 deletions src/test/unit/config_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = {
#ifdef USE_VCP
SERIAL_PORT_USB_VCP,
#endif
#ifdef USE_USART1
SERIAL_PORT_USART1,
#ifdef USE_UART1
SERIAL_PORT_UART1,
#endif
#ifdef USE_USART2
SERIAL_PORT_USART2,
#ifdef USE_UART2
SERIAL_PORT_UART2,
#endif
#ifdef USE_USART3
SERIAL_PORT_USART3,
#ifdef USE_UART3
SERIAL_PORT_UART3,
#endif
#ifdef USE_SOFTSERIAL1
SERIAL_PORT_SOFTSERIAL1,
Expand Down

0 comments on commit b5a455d

Please sign in to comment.