Browse Source

Pr cleanup board files (#12218)

Clear non exist functions definitions
Added RC Serial note before its relevant definitions
sbg
BazookaJoe1900 6 years ago committed by Lorenz Meier
parent
commit
b0176dc88a
  1. 12
      boards/av/x-v1/src/board_config.h
  2. 10
      boards/px4/fmu-v2/src/board_config.h
  3. 9
      boards/px4/fmu-v3/src/board_config.h
  4. 2
      boards/px4/fmu-v4/src/board_config.h
  5. 2
      boards/px4/fmu-v5/src/board_config.h

12
boards/av/x-v1/src/board_config.h

@ -266,6 +266,8 @@ @@ -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 */
@ -367,16 +369,6 @@ int stm32_sdio_initialize(void); @@ -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)

10
boards/px4/fmu-v2/src/board_config.h

@ -494,16 +494,6 @@ __BEGIN_DECLS @@ -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
*

9
boards/px4/fmu-v3/src/board_config.h

@ -494,15 +494,6 @@ __BEGIN_DECLS @@ -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

2
boards/px4/fmu-v4/src/board_config.h

@ -290,6 +290,8 @@ @@ -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. */

2
boards/px4/fmu-v5/src/board_config.h

@ -494,6 +494,8 @@ @@ -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 */

Loading…
Cancel
Save