Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
common_board.h File Reference

Generic board file. More...

#include "board.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 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 I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
 
#define I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
 
#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 37 of file common_board.h.

◆ ActuatorDefaultSet

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

Definition at line 692 of file common_board.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 694 of file common_board.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 693 of file common_board.h.

◆ CONCAT_BOARD_PARAM

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

Definition at line 38 of file common_board.h.

◆ DEFAULT_ACTUATORS

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

SPI Config.

SPI Slaves SDIO

Definition at line 691 of file common_board.h.

◆ I2C1_CFG_DEF

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

Definition at line 452 of file common_board.h.

◆ I2C1_CLOCK_SPEED

#define I2C1_CLOCK_SPEED   400000

Definition at line 448 of file common_board.h.

◆ I2C2_CFG_DEF

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

Definition at line 473 of file common_board.h.

◆ I2C2_CLOCK_SPEED

#define I2C2_CLOCK_SPEED   400000

Definition at line 469 of file common_board.h.

◆ I2C3_CFG_DEF

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

Definition at line 493 of file common_board.h.

◆ I2C3_CLOCK_SPEED

#define I2C3_CLOCK_SPEED   400000

Definition at line 489 of file common_board.h.

◆ I2C4_CFG_DEF

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

Definition at line 513 of file common_board.h.

◆ I2C4_CLOCK_SPEED

#define I2C4_CLOCK_SPEED   400000

Definition at line 509 of file common_board.h.

◆ I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR

#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Value:
(STM32_TIMINGR_PRESC(0U) | \
STM32_TIMINGR_SCLDEL(10U) | STM32_TIMINGR_SDADEL(0U) | \
STM32_TIMINGR_SCLH(34U) | STM32_TIMINGR_SCLL(86U))

Definition at line 439 of file common_board.h.

◆ I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR

#define I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Value:
(STM32_TIMINGR_PRESC(1U) | \
STM32_TIMINGR_SCLDEL(9U) | STM32_TIMINGR_SDADEL(0U) | \
STM32_TIMINGR_SCLH(105U) | STM32_TIMINGR_SCLL(153U))

Definition at line 442 of file common_board.h.

◆ STM32_CR1_DNF

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

I2C defines.

Definition at line 437 of file common_board.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   ((void)0)

UART defines.

Definition at line 318 of file common_board.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   ((void)0)

Definition at line 334 of file common_board.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   ((void)0)

Definition at line 350 of file common_board.h.

◆ UART4_GPIO_AF

#define UART4_GPIO_AF   ((void)0)

Definition at line 366 of file common_board.h.

◆ UART5_GPIO_AF

#define UART5_GPIO_AF   ((void)0)

Definition at line 382 of file common_board.h.

◆ UART6_GPIO_AF

#define UART6_GPIO_AF   ((void)0)

Definition at line 398 of file common_board.h.

◆ UART7_GPIO_AF

#define UART7_GPIO_AF   ((void)0)

Definition at line 414 of file common_board.h.

◆ UART8_GPIO_AF

#define UART8_GPIO_AF   ((void)0)

Definition at line 430 of file common_board.h.

STM32_CR1_DNF
#define STM32_CR1_DNF(n)
I2C defines.
Definition: common_board.h:437
I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: common_board.h:439