mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 01:00:36 +08:00
feat(boards/ark/can-rtk-gps): capture ZED-F9P TIMEPULSE on PB2
PB2 has no timer alternate function on the F412, so declare PPS_CAPTURE_GPIO for the EXTI path, enable CONFIG_DRIVERS_PPS_CAPTURE, and start pps_capture from rc.board_sensors.
This commit is contained in:
1 parent
2ee2ecf762
commit
2d1e2a3b4a
3 files changed
+5
No files matched your search
@@ -9,6 +9,7 @@ CONFIG_DRIVERS_BOOTLOADERS=y
|
||||
CONFIG_DRIVERS_GPS=y
|
||||
CONFIG_DRIVERS_IMU_INVENSENSE_ICM42688P=y
|
||||
CONFIG_DRIVERS_MAGNETOMETER_BOSCH_BMM150=y
|
||||
CONFIG_DRIVERS_PPS_CAPTURE=y
|
||||
CONFIG_DRIVERS_SAFETY_BUTTON=y
|
||||
CONFIG_DRIVERS_TONE_ALARM=y
|
||||
CONFIG_BOARD_UAVCAN_INTERFACES=1
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# board sensors init
|
||||
#------------------------------------------------------------------------------
|
||||
gps start -d /dev/ttyS0 -p ubx
|
||||
pps_capture start
|
||||
|
||||
icm42688p -R 0 -s start
|
||||
|
||||
|
||||
@@ -68,6 +68,9 @@
|
||||
/* Boot config */
|
||||
#define GPIO_BOOT_CONFIG /* PC15 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTC|GPIO_PIN15|GPIO_EXTI)
|
||||
|
||||
/* ZED-F9P TIMEPULSE -> PB2 (no timer AF on F412; PPSCapture uses EXTI). */
|
||||
#define PPS_CAPTURE_GPIO /* PB2 */ (GPIO_PORTB|GPIO_PIN2)
|
||||
|
||||
/* LEDs are driven with open drain to support Anode to 5V or 3.3V */
|
||||
#define GPIO_TIM1_CH1 /* PA8 */ (GPIO_TIM1_CH1_1|GPIO_OPENDRAIN|GPIO_SPEED_2MHz)
|
||||
#define GPIO_TIM1_CH2 /* PA9 */ (GPIO_TIM1_CH2_1|GPIO_OPENDRAIN|GPIO_SPEED_2MHz)
|
||||
|
||||
Reference in new issue
Block a user