forked from Archive/PX4-Autopilot
px4fmu-v5:Define Tone Alarm in terms of the FMUv5 Spec
This commit is contained in:
parent
90fd7734bb
commit
ddddedf410
|
@ -412,10 +412,14 @@ __BEGIN_DECLS
|
|||
#define VDD_3V3_SD_CARD_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_3V3_SD_CARD_EN, (on_true))
|
||||
|
||||
/* Tone alarm output */
|
||||
#define TONE_ALARM_TIMER 9 /* timer 9 */
|
||||
|
||||
#define TONE_ALARM_TIMER 9 /* timer 9 */
|
||||
#define TONE_ALARM_CHANNEL /* PE5 TIM9_CH1 */ 1 /* channel 1 */
|
||||
#define GPIO_TONE_ALARM_IDLE /* PE5 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTE|GPIO_PIN5)
|
||||
#define GPIO_TONE_ALARM /* PE5 */ (GPIO_ALT|GPIO_AF1|GPIO_SPEED_2MHz|GPIO_PUSHPULL|GPIO_PORTE|GPIO_PIN5)
|
||||
|
||||
#define GPIO_BUZZER_1 /* PE5 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTE|GPIO_PIN5)
|
||||
|
||||
#define GPIO_TONE_ALARM_IDLE GPIO_BUZZER_1
|
||||
#define GPIO_TONE_ALARM GPIO_TIM9_CH1OUT_2
|
||||
|
||||
/* USB OTG FS
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue