HAL_ChibiOS: added f103-Trigger board
This commit is contained in:
parent
a87e3e41f0
commit
a9946b41e9
6
libraries/AP_HAL_ChibiOS/hwdef/f103-Trigger/hwdef-bl.dat
Normal file
6
libraries/AP_HAL_ChibiOS/hwdef/f103-Trigger/hwdef-bl.dat
Normal file
@ -0,0 +1,6 @@
|
||||
include ../f103-periph/hwdef-bl.dat
|
||||
|
||||
# start with a fixed node ID so the board is usable without DNA
|
||||
define HAL_CAN_DEFAULT_NODE_ID 113
|
||||
|
||||
define CAN_APP_NODE_NAME "org.ardupilot.ap_periph_trigger"
|
27
libraries/AP_HAL_ChibiOS/hwdef/f103-Trigger/hwdef.dat
Normal file
27
libraries/AP_HAL_ChibiOS/hwdef/f103-Trigger/hwdef.dat
Normal file
@ -0,0 +1,27 @@
|
||||
# PWM input to Hardpoint output trigger firmware
|
||||
|
||||
include ../f103-periph/hwdef.dat
|
||||
|
||||
# start with a fixed node ID so the board is usable without DNA
|
||||
define HAL_CAN_DEFAULT_NODE_ID 113
|
||||
|
||||
define CAN_APP_NODE_NAME "org.ardupilot.ap_periph_trigger"
|
||||
|
||||
# PWM input to hardpoint out
|
||||
define HAL_PERIPH_ENABLE_PWM_HARDPOINT
|
||||
|
||||
define HAL_PWM_HARDPOINT_ID_DEFAULT 101
|
||||
|
||||
# we need 10us resolution for PWM capture
|
||||
undef CH_CFG_ST_FREQUENCY
|
||||
define CH_CFG_ST_FREQUENCY 100000
|
||||
define CH_CFG_ST_RESOLUTION 16
|
||||
|
||||
# use USART1_RX as input for PWM trigger
|
||||
undef PA10
|
||||
PA10 PWM_TRIGGER INPUT FLOAT GPIO(77)
|
||||
define PWM_HARDPOINT_PIN 77
|
||||
|
||||
# no I2C
|
||||
undef I2C_ORDER
|
||||
|
Loading…
Reference in New Issue
Block a user