Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
common_board.h File Reference

Generic board file. More...

#include "board.h"
#include <hal.h>
+ Include dependency graph for common_board.h:

Go to the source code of this file.

Macros

#define _CONCAT_BOARD_PARAM(_s1, _s2)   _s1 ## _s2
 ChibiOS board file generated by the cfg file. More...
 
#define CONCAT_BOARD_PARAM(_s1, _s2)   _CONCAT_BOARD_PARAM(_s1, _s2)
 
#define PWM_INPUT1_ICU   CONCAT_BOARD_PARAM(ICUD, PWM_INPUT1_TIM)
 
#define PWM_INPUT1_CHANNEL   CONCAT_BOARD_PARAM(ICU_CHANNEL_, PWM_INPUT1_TIM_CH)
 
#define PWM_INPUT1_GPIO_PORT   PAL_PORT(LINE_PWM_INPUT1)
 
#define PWM_INPUT1_GPIO_PIN   PAL_PAD(LINE_PWM_INPUT1)
 
#define PWM_INPUT1_GPIO_AF   AF_LINE_PWM_INPUT1
 
#define UART1_GPIO_AF   ((void)0)
 UART defines. More...
 
#define UART2_GPIO_AF   ((void)0)
 
#define UART3_GPIO_AF   ((void)0)
 
#define UART4_GPIO_AF   ((void)0)
 
#define UART5_GPIO_AF   ((void)0)
 
#define UART6_GPIO_AF   ((void)0)
 
#define UART7_GPIO_AF   ((void)0)
 
#define UART8_GPIO_AF   ((void)0)
 
#define STM32_CR1_DNF(n)   ((n & 0x0f) << 8)
 I2C defines. More...
 
#define I2C1_CLOCK_SPEED   400000
 
#define I2C1_CFG_DEF
 
#define I2C2_CLOCK_SPEED   400000
 
#define I2C2_CFG_DEF
 
#define I2C3_CLOCK_SPEED   400000
 
#define I2C3_CFG_DEF
 
#define I2C4_CLOCK_SPEED   400000
 
#define I2C4_CFG_DEF
 
#define DEFAULT_ACTUATORS   "modules/actuators/actuators_pwm.h"
 SPI Config. More...
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 

Detailed Description

Generic board file.

Definition in file common_board.h.

Macro Definition Documentation

◆ _CONCAT_BOARD_PARAM

#define _CONCAT_BOARD_PARAM (   _s1,
  _s2 
)    _s1 ## _s2

ChibiOS board file generated by the cfg file.

Definition at line 38 of file common_board.h.

◆ ActuatorDefaultSet

#define ActuatorDefaultSet (   _x,
  _y 
)    ActuatorPwmSet(_x,_y)

Definition at line 791 of file common_board.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 793 of file common_board.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 792 of file common_board.h.

◆ CONCAT_BOARD_PARAM

#define CONCAT_BOARD_PARAM (   _s1,
  _s2 
)    _CONCAT_BOARD_PARAM(_s1, _s2)

Definition at line 39 of file common_board.h.

◆ DEFAULT_ACTUATORS

#define DEFAULT_ACTUATORS   "modules/actuators/actuators_pwm.h"

SPI Config.

SPI Slaves SDIO

Definition at line 790 of file common_board.h.

◆ I2C1_CFG_DEF

#define I2C1_CFG_DEF
Value:
{ \
.timingr = I2C_CFG_400KHZ_TIMINGR, \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define STM32_CR1_DNF(n)
I2C defines.
Definition: common_board.h:535

Definition at line 552 of file common_board.h.

◆ I2C1_CLOCK_SPEED

#define I2C1_CLOCK_SPEED   400000

Definition at line 548 of file common_board.h.

◆ I2C2_CFG_DEF

#define I2C2_CFG_DEF
Value:
{ \
.timingr = I2C_CFG_400KHZ_TIMINGR, \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}

Definition at line 572 of file common_board.h.

◆ I2C2_CLOCK_SPEED

#define I2C2_CLOCK_SPEED   400000

Definition at line 568 of file common_board.h.

◆ I2C3_CFG_DEF

#define I2C3_CFG_DEF
Value:
{ \
.timingr = I2C_CFG_400KHZ_TIMINGR, \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}

Definition at line 592 of file common_board.h.

◆ I2C3_CLOCK_SPEED

#define I2C3_CLOCK_SPEED   400000

Definition at line 588 of file common_board.h.

◆ I2C4_CFG_DEF

#define I2C4_CFG_DEF
Value:
{ \
.timingr = I2C_CFG_400KHZ_TIMINGR, \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}

Definition at line 612 of file common_board.h.

◆ I2C4_CLOCK_SPEED

#define I2C4_CLOCK_SPEED   400000

Definition at line 608 of file common_board.h.

◆ PWM_INPUT1_CHANNEL

#define PWM_INPUT1_CHANNEL   CONCAT_BOARD_PARAM(ICU_CHANNEL_, PWM_INPUT1_TIM_CH)

Definition at line 395 of file common_board.h.

◆ PWM_INPUT1_GPIO_AF

#define PWM_INPUT1_GPIO_AF   AF_LINE_PWM_INPUT1

Definition at line 398 of file common_board.h.

◆ PWM_INPUT1_GPIO_PIN

#define PWM_INPUT1_GPIO_PIN   PAL_PAD(LINE_PWM_INPUT1)

Definition at line 397 of file common_board.h.

◆ PWM_INPUT1_GPIO_PORT

#define PWM_INPUT1_GPIO_PORT   PAL_PORT(LINE_PWM_INPUT1)

Definition at line 396 of file common_board.h.

◆ PWM_INPUT1_ICU

#define PWM_INPUT1_ICU   CONCAT_BOARD_PARAM(ICUD, PWM_INPUT1_TIM)

Definition at line 394 of file common_board.h.

◆ STM32_CR1_DNF

#define STM32_CR1_DNF (   n)    ((n & 0x0f) << 8)

I2C defines.

Definition at line 535 of file common_board.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   ((void)0)

UART defines.

Definition at line 416 of file common_board.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   ((void)0)

Definition at line 432 of file common_board.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   ((void)0)

Definition at line 448 of file common_board.h.

◆ UART4_GPIO_AF

#define UART4_GPIO_AF   ((void)0)

Definition at line 464 of file common_board.h.

◆ UART5_GPIO_AF

#define UART5_GPIO_AF   ((void)0)

Definition at line 480 of file common_board.h.

◆ UART6_GPIO_AF

#define UART6_GPIO_AF   ((void)0)

Definition at line 496 of file common_board.h.

◆ UART7_GPIO_AF

#define UART7_GPIO_AF   ((void)0)

Definition at line 512 of file common_board.h.

◆ UART8_GPIO_AF

#define UART8_GPIO_AF   ((void)0)

Definition at line 528 of file common_board.h.