Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
px4fmu.h File Reference
+ Include dependency graph for px4fmu.h:

Go to the source code of this file.

Macros

#define BOARD_PX4FMU
 
#define AHB_CLK   STM32_HCLK
 ChibiOS board file. More...
 
#define ADC_CHANNEL_VSUPPLY   ADC_1
 
#define ADC_CHANNEL_CURRENT   ADC_2
 
#define DefaultVoltageOfAdc(adc)   ((3.3f/4096.0f) * 10.3208191126f * adc)
 
#define MilliAmpereOfAdc(adc)   ((3.3f/4096.0f) * 24000.0f * adc)
 
#define PWM_CONF_TIM1   1
 
#define PWM_CONF1_DEF
 
#define PWM_CONF_TIM4   1
 
#define PWM_CONF4_DEF
 
#define PWM_CONF_TIM12   1
 
#define PWM_CONF12_DEF
 
#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 USE_BARO_BOARD   1
 SPI Config. More...
 
#define SDLOG_BAT_ADC   ADCD1
 SDIO. More...
 
#define SDLOG_BAT_CHAN   AD1_1_CHANNEL
 
#define SDLOG_USB_LED   3
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 

Macro Definition Documentation

◆ ActuatorDefaultSet

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

Definition at line 728 of file px4fmu.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 730 of file px4fmu.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 729 of file px4fmu.h.

◆ ADC_CHANNEL_CURRENT

#define ADC_CHANNEL_CURRENT   ADC_2

Definition at line 125 of file px4fmu.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   ADC_1

Definition at line 120 of file px4fmu.h.

◆ AHB_CLK

#define AHB_CLK   STM32_HCLK

ChibiOS board file.

PPRZ definitions

Definition at line 18 of file px4fmu.h.

◆ BOARD_PX4FMU

#define BOARD_PX4FMU

Definition at line 4 of file px4fmu.h.

◆ DEFAULT_ACTUATORS

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

Definition at line 727 of file px4fmu.h.

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    ((3.3f/4096.0f) * 10.3208191126f * adc)

Definition at line 129 of file px4fmu.h.

◆ I2C1_CFG_DEF

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

Definition at line 482 of file px4fmu.h.

◆ I2C1_CLOCK_SPEED

#define I2C1_CLOCK_SPEED   400000

Definition at line 478 of file px4fmu.h.

◆ I2C2_CFG_DEF

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

Definition at line 503 of file px4fmu.h.

◆ I2C2_CLOCK_SPEED

#define I2C2_CLOCK_SPEED   400000

Definition at line 499 of file px4fmu.h.

◆ I2C3_CFG_DEF

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

Definition at line 523 of file px4fmu.h.

◆ I2C3_CLOCK_SPEED

#define I2C3_CLOCK_SPEED   400000

Definition at line 519 of file px4fmu.h.

◆ I2C4_CFG_DEF

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

Definition at line 543 of file px4fmu.h.

◆ I2C4_CLOCK_SPEED

#define I2C4_CLOCK_SPEED   400000

Definition at line 539 of file px4fmu.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 469 of file px4fmu.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 472 of file px4fmu.h.

◆ MilliAmpereOfAdc

#define MilliAmpereOfAdc (   adc)    ((3.3f/4096.0f) * 24000.0f * adc)

Definition at line 130 of file px4fmu.h.

◆ PWM_CONF12_DEF

#define PWM_CONF12_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM12_SERVO_HZ, \
NULL, \
{ \
{ PWM_SERVO_7_ACTIVE, NULL }, \
{ PWM_SERVO_8_ACTIVE, NULL }, \
{ PWM_OUTPUT_DISABLED, NULL }, \
{ PWM_OUTPUT_DISABLED, NULL }, \
}, \
0, \
0 \
}

Definition at line 315 of file px4fmu.h.

◆ PWM_CONF1_DEF

#define PWM_CONF1_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM1_SERVO_HZ, \
NULL, \
{ \
{ PWM_SERVO_4_ACTIVE, NULL }, \
{ PWM_SERVO_3_ACTIVE, NULL }, \
{ PWM_SERVO_2_ACTIVE, NULL }, \
{ PWM_SERVO_1_ACTIVE, NULL }, \
}, \
0, \
0 \
}

Definition at line 277 of file px4fmu.h.

◆ PWM_CONF4_DEF

#define PWM_CONF4_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM4_SERVO_HZ, \
NULL, \
{ \
{ PWM_OUTPUT_DISABLED, NULL }, \
{ PWM_SERVO_5_ACTIVE, NULL }, \
{ PWM_SERVO_6_ACTIVE, NULL }, \
{ PWM_OUTPUT_DISABLED, NULL }, \
}, \
0, \
0 \
}

Definition at line 296 of file px4fmu.h.

◆ PWM_CONF_TIM1

#define PWM_CONF_TIM1   1

Definition at line 275 of file px4fmu.h.

◆ PWM_CONF_TIM12

#define PWM_CONF_TIM12   1

Definition at line 313 of file px4fmu.h.

◆ PWM_CONF_TIM4

#define PWM_CONF_TIM4   1

Definition at line 294 of file px4fmu.h.

◆ SDLOG_BAT_ADC

#define SDLOG_BAT_ADC   ADCD1

SDIO.

Definition at line 717 of file px4fmu.h.

◆ SDLOG_BAT_CHAN

#define SDLOG_BAT_CHAN   AD1_1_CHANNEL

Definition at line 718 of file px4fmu.h.

◆ SDLOG_USB_LED

#define SDLOG_USB_LED   3

Definition at line 720 of file px4fmu.h.

◆ STM32_CR1_DNF

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

I2C defines.

I2C defines

Definition at line 467 of file px4fmu.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   ((void)0)

UART defines.

Definition at line 345 of file px4fmu.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   ((void)0)

Definition at line 361 of file px4fmu.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   ((void)0)

Definition at line 377 of file px4fmu.h.

◆ UART4_GPIO_AF

#define UART4_GPIO_AF   ((void)0)

Definition at line 393 of file px4fmu.h.

◆ UART5_GPIO_AF

#define UART5_GPIO_AF   ((void)0)

Definition at line 409 of file px4fmu.h.

◆ UART6_GPIO_AF

#define UART6_GPIO_AF   ((void)0)

Definition at line 425 of file px4fmu.h.

◆ UART7_GPIO_AF

#define UART7_GPIO_AF   ((void)0)

Definition at line 441 of file px4fmu.h.

◆ UART8_GPIO_AF

#define UART8_GPIO_AF   ((void)0)

Definition at line 457 of file px4fmu.h.

◆ USE_BARO_BOARD

#define USE_BARO_BOARD   1

SPI Config.

SPI Slaves Baro

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 684 of file px4fmu.h.

PWM_SERVO_5_ACTIVE
#define PWM_SERVO_5_ACTIVE
Definition: px4fmu.h:188
PWM_SERVO_2_ACTIVE
#define PWM_SERVO_2_ACTIVE
Definition: px4fmu.h:143
PWM_SERVO_4_ACTIVE
#define PWM_SERVO_4_ACTIVE
Definition: px4fmu.h:173
TIM12_SERVO_HZ
#define TIM12_SERVO_HZ
Definition: actuators_pwm_arch.h:78
PWM_SERVO_3_ACTIVE
#define PWM_SERVO_3_ACTIVE
Definition: px4fmu.h:158
PWM_SERVO_6_ACTIVE
#define PWM_SERVO_6_ACTIVE
Definition: board.h:307
STM32_CR1_DNF
#define STM32_CR1_DNF(n)
I2C defines.
Definition: px4fmu.h:467
PWM_SERVO_1_ACTIVE
#define PWM_SERVO_1_ACTIVE
Definition: px4fmu.h:128
TIM1_SERVO_HZ
#define TIM1_SERVO_HZ
Definition: actuators_pwm_arch.h:57
I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: px4fmu.h:469
PWM_SERVO_8_ACTIVE
#define PWM_SERVO_8_ACTIVE
Definition: matekF765-WING.h:223
PWM_SERVO_7_ACTIVE
#define PWM_SERVO_7_ACTIVE
Definition: chimera.h:330
TIM4_SERVO_HZ
#define TIM4_SERVO_HZ
Definition: actuators_pwm_arch.h:66