Paparazzi UAS  v5.17_devel-3-g5993d39
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 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

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

Definition at line 675 of file px4fmu.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 677 of file px4fmu.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 676 of file px4fmu.h.

#define ADC_CHANNEL_CURRENT   ADC_2

Definition at line 125 of file px4fmu.h.

#define ADC_CHANNEL_VSUPPLY   ADC_1

Definition at line 120 of file px4fmu.h.

#define AHB_CLK   STM32_HCLK

ChibiOS board file.

PPRZ definitions

Definition at line 18 of file px4fmu.h.

#define BOARD_PX4FMU

Definition at line 4 of file px4fmu.h.

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

Definition at line 674 of file px4fmu.h.

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

Definition at line 129 of file px4fmu.h.

#define I2C1_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define STM32_CR1_DNF(n)
I2C defines.
Definition: px4fmu.h:414
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: px4fmu.h:416

Definition at line 429 of file px4fmu.h.

#define I2C1_CLOCK_SPEED   400000

Definition at line 425 of file px4fmu.h.

#define I2C2_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define STM32_CR1_DNF(n)
I2C defines.
Definition: px4fmu.h:414
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: px4fmu.h:416

Definition at line 450 of file px4fmu.h.

#define I2C2_CLOCK_SPEED   400000

Definition at line 446 of file px4fmu.h.

#define I2C3_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define STM32_CR1_DNF(n)
I2C defines.
Definition: px4fmu.h:414
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: px4fmu.h:416

Definition at line 470 of file px4fmu.h.

#define I2C3_CLOCK_SPEED   400000

Definition at line 466 of file px4fmu.h.

#define I2C4_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define STM32_CR1_DNF(n)
I2C defines.
Definition: px4fmu.h:414
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: px4fmu.h:416

Definition at line 490 of file px4fmu.h.

#define I2C4_CLOCK_SPEED   400000

Definition at line 486 of file px4fmu.h.

#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 416 of file px4fmu.h.

#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 419 of file px4fmu.h.

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

Definition at line 130 of file px4fmu.h.

#define PWM_CONF1_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_4_ACTIVE, NULL }, \
{ PWM_SERVO_3_ACTIVE, NULL }, \
{ PWM_SERVO_2_ACTIVE, NULL }, \
{ PWM_SERVO_1_ACTIVE, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_2_ACTIVE
Definition: px4fmu.h:143
#define PWM_SERVO_3_ACTIVE
Definition: px4fmu.h:158
#define PWM_SERVO_4_ACTIVE
Definition: px4fmu.h:173
#define PWM_FREQUENCY
#define PWM_SERVO_1_ACTIVE
Definition: px4fmu.h:128
#define TIM1_SERVO_HZ

Definition at line 243 of file px4fmu.h.

#define PWM_CONF4_DEF
Value:
{ \
NULL, \
{ \
{ PWM_OUTPUT_DISABLED, NULL }, \
{ PWM_SERVO_5_ACTIVE, NULL }, \
{ PWM_SERVO_6_ACTIVE, NULL }, \
{ PWM_OUTPUT_DISABLED, NULL }, \
}, \
0, \
0 \
}
#define TIM4_SERVO_HZ
#define PWM_FREQUENCY
#define PWM_SERVO_6_ACTIVE
Definition: board.h:307
#define PWM_SERVO_5_ACTIVE
Definition: px4fmu.h:188

Definition at line 262 of file px4fmu.h.

#define PWM_CONF_TIM1   1

Definition at line 241 of file px4fmu.h.

#define PWM_CONF_TIM4   1

Definition at line 260 of file px4fmu.h.

#define SDLOG_BAT_ADC   ADCD1

SDIO.

Definition at line 664 of file px4fmu.h.

#define SDLOG_BAT_CHAN   AD1_1_CHANNEL

Definition at line 665 of file px4fmu.h.

#define SDLOG_USB_LED   3

Definition at line 667 of file px4fmu.h.

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

I2C defines.

I2C defines

Definition at line 414 of file px4fmu.h.

#define UART1_GPIO_AF   ((void)0)

UART defines.

Definition at line 292 of file px4fmu.h.

#define UART2_GPIO_AF   ((void)0)

Definition at line 308 of file px4fmu.h.

#define UART3_GPIO_AF   ((void)0)

Definition at line 324 of file px4fmu.h.

#define UART4_GPIO_AF   ((void)0)

Definition at line 340 of file px4fmu.h.

#define UART5_GPIO_AF   ((void)0)

Definition at line 356 of file px4fmu.h.

#define UART6_GPIO_AF   ((void)0)

Definition at line 372 of file px4fmu.h.

#define UART7_GPIO_AF   ((void)0)

Definition at line 388 of file px4fmu.h.

#define UART8_GPIO_AF   ((void)0)

Definition at line 404 of file px4fmu.h.

#define USE_BARO_BOARD   1

SPI Config.

SPI Slaves Baro

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 631 of file px4fmu.h.