Skip to content

Commit

Permalink
Pr cleanup board files (#12218)
Browse files Browse the repository at this point in the history
Clear non exist functions definitions
Added RC Serial note before its relevant definitions
  • Loading branch information
BazookaJoe1900 authored and LorenzMeier committed Jun 8, 2019
1 parent 8a0beb8 commit b0176dc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 29 deletions.
12 changes: 2 additions & 10 deletions boards/av/x-v1/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@
#define HRT_TIMER 5 /* use timer5 for the HRT */
#define HRT_TIMER_CHANNEL 1 /* use capture/compare channel 3 */

/* RC Serial port */

#define RC_UXART_BASE STM32_UART5_BASE
#define RC_SERIAL_PORT "/dev/ttyS4"
#define BOARD_HAS_SINGLE_WIRE 0 /* HW is capable of Single Wire */
Expand Down Expand Up @@ -367,16 +369,6 @@ int stm32_sdio_initialize(void);

extern void stm32_spiinitialize(void);

/************************************************************************************
* Name: stm32_spi_bus_initialize
*
* Description:
* Called to configure SPI Buses.
*
************************************************************************************/

extern int stm32_spi_bus_initialize(void);

void board_spi_reset(int ms);
#define board_peripheral_reset(ms)

Expand Down
10 changes: 0 additions & 10 deletions boards/px4/fmu-v2/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,16 +494,6 @@ __BEGIN_DECLS

extern void stm32_spiinitialize(void);

/************************************************************************************
* Name: stm32_spi_bus_initialize
*
* Description:
* Called to configure SPI Buses.
*
************************************************************************************/

extern int stm32_spi_bus_initialize(void);

/****************************************************************************************************
* Name: board_spi_reset board_peripheral_reset
*
Expand Down
9 changes: 0 additions & 9 deletions boards/px4/fmu-v3/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,15 +494,6 @@ __BEGIN_DECLS

extern void stm32_spiinitialize(void);

/************************************************************************************
* Name: stm32_spi_bus_initialize
*
* Description:
* Called to configure SPI Buses.
*
************************************************************************************/

extern int stm32_spi_bus_initialize(void);

/****************************************************************************************************
* Name: board_spi_reset board_peripheral_reset
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v4/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@
#define HRT_PPM_CHANNEL 3 /* use capture/compare channel 3 */
#define GPIO_PPM_IN (GPIO_ALT|GPIO_AF2|GPIO_PULLUP|GPIO_PORTB|GPIO_PIN0)

/* RC Serial port */

#define RC_SERIAL_PORT "/dev/ttyS4"

/* PWM input driver. Use FMU AUX5 pins attached to timer4 channel 2. */
Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v5/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@
#define HRT_PPM_CHANNEL /* T8C1 */ 1 /* use capture/compare channel 1 */
#define GPIO_PPM_IN /* PI5 T8C1 */ GPIO_TIM8_CH1IN_2

/* RC Serial port */

#define RC_UXART_BASE STM32_USART6_BASE
#define RC_SERIAL_PORT "/dev/ttyS4"
#define BOARD_HAS_SINGLE_WIRE 1 /* HW is capable of Single Wire */
Expand Down

0 comments on commit b0176dc

Please sign in to comment.