Kevin Lopez Alvarez
9f97172cce
AP_BoardConfig: add ChibiOS FMUv4pro defines
6 years ago
Andrew Tridgell
cd9179e733
AP_BoardConfig: fixed for 8 PWM outputs in IOMCU
6 years ago
Peter Barker
45ac3e6bb2
AP_BoardConfig: correct grammar in @DisplayName
7 years ago
Francisco Ferreira
b7a3e1ae77
AP_BoardConfig_CAN: put debug code behind compile-time flag
...
And disable it by default
7 years ago
Francisco Ferreira
4b4ba66987
AP_BoardConfig_CAN: add singleton and do naming cleanup
...
Also added more getter methods
7 years ago
Francisco Ferreira
1cfb38b4ee
AP_BoardConfig_CAN: adapt to new CANProtocol interface
7 years ago
Lucas De Marchi
73f8dd98f2
AP_BoardConfig: kill AP_FEATURE_SAFETY_BUTTON
...
This is redundant and can be just HAL_HAVE_SAFETY_SWITCH.
7 years ago
Lucas De Marchi
259195a7c7
AP_BoardConfig: fix handling of AP_FEATURE_SAFETY_BUTTON
...
Not all PX4-based board have a safety button. Rely on
HAL_HAVE_SAFETY_SWITCH instead of ifdef'ing each of them.
This allows to build for aerofc-v1 without safety button.
7 years ago
Lucas De Marchi
000ae3cb85
AP_BoardConfig: add default for BOARD_SAFETY_ENABLE
...
If HAL supports safety button but the board didn't declare a default,
define one to match what is done with BOARD_SAFETY_OPTION_DEFAULT.
7 years ago
Lucas De Marchi
0606b00f15
AP_BoardConfig: don't try to set pwm mode for aerofc-v1
...
We don't have that in aerofc, so don't try to initialize it and fail
with following error messages:
RCOutput: unable to setup AUX PWM with BRD_PWM_COUNT 0
7 years ago
Andrew Tridgell
ed09467f06
AP_BoardConfig: removed verbose SPI probe debug messages
...
these are just confusing for users
7 years ago
Andrew Tridgell
2a62938fb1
AP_BoardConfig: enable get_board_type() on all boards
...
return BOARD_TYPE_UNKNOWN for boards that don't use board detection
7 years ago
Andrew Tridgell
e52176e23b
AP_BoardConfig: allow hwdef.dat override of BRD_TYPE
7 years ago
Peter Barker
22a94addd5
AP_BoardConfig: add parameters for AP_RTC
7 years ago
Peter Barker
59d1d8aecc
AP_BoardConfig: instantiate an RTC
...
AP_BoardConfig: set RTC from hw clock at startup
7 years ago
Eugene Shamaev
56cc0d3ef7
AP_BoardConfig: comments
7 years ago
Eugene Shamaev
857bd4f775
AP_BoardConfig: reducing indenting by linearizing the logic
7 years ago
Andrew Tridgell
677b5f94b2
AP_BoardConfig: allow for non-bool BRD_IO_ENABLE
...
this will be used to avoid CRC checks for IO fw development testing
7 years ago
Andrew Tridgell
751f290be6
AP_BoardConfig: setup FMUv5 for board detection
7 years ago
Andrew Tridgell
99ca0ea913
AP_BoardConfig: moved BRD_PWM_COUNT to common code
...
this allows all boards to configure some PWM outputs as GPIOs
7 years ago
Eugene Shamaev
7a67c82026
AP_BoardConfig: HAL_RCINPUT_WITH_AP_RADIO definition
7 years ago
Michael du Breuil
a47bda0b41
AP_BoardConfig: Fix param doc for BRD_SAFETYOPTION
7 years ago
Andrew Tridgell
e2fa38968f
AP_BoardConfig: fixed build for some boards
...
for boards that don't have board detection but do have a safety switch
this fixes the build
7 years ago
Andrew Tridgell
60f79921ac
AP_BoardConfig: added get_safety_mask()
7 years ago
Andrew Tridgell
57c307a74e
AP_BoardConfig: fixed default pwm count
...
for boards without the parameter we should use 16, meaning all channels
available
thanks to sh83 for noticing
7 years ago
kozinalexey
db6c6b1677
AP_BoardConfig: allow PWM count setting on all chibios boards
7 years ago
Andrew Tridgell
d8abf647e8
AP_BoardConfig: added BRD_SAFETYOPTION parameter
...
allow control of safety button behaviour
7 years ago
Andrew Tridgell
13cf72ac32
AP_BoardConfig: allow override of PWM count in hwdef.dat
7 years ago
Andrew Tridgell
f7ec2618a3
AP_BoardConfig: added SP01 board type
7 years ago
Tom Pittenger
3105fd56bc
AP_BoardConfig: add param defaults for EMLID_EDGE for CAN_DRIVER=1
7 years ago
Andrew Tridgell
682dcb65cf
AP_BoardConfig: added param helper for HAL parameters
...
only for HAL_REVOMINI for now
7 years ago
Andrew Tridgell
abd659212e
AP_BoardConfig: fixed device semaphore in board detect
...
thanks to Mark for finding this
7 years ago
Andrew Tridgell
3afaf81ccc
AP_BoardConfig: added param object for AP_Radio
7 years ago
Siddharth Purohit
a413fef77f
AP_BoardConfig: add support for UAVCAN setup on ChibiOS boards
7 years ago
LukeMike
ccb316f3f3
VRBRAIN / AP_BoardConfig: some update for new VR Brain 5.2E (EEPROM version)
7 years ago
LukeMike
505497b555
VRBRAIN / AP_BoardConfig: added fmu_mode parameter for VR Brain boards
7 years ago
LukeMike
b7985f77b5
VRBRAIN / AP_BoardConfig: added VR Brain boards into board_setup_drivers and board_autodetect
7 years ago
LukeMike
6b820ac9e4
VRBRAIN / AP_BoardConfig: added VR Brain define into px4_board_type enum
7 years ago
Andrew Tridgell
f8a3b0e753
AP_BoardConfig: improved board config
...
use hwdef.dat to enable RTSCTS and SBUS_OUT
7 years ago
Nikita Tomilov
1549b1a52a
AP_BoardConfig: CAN: Merge PX4 and Linux CAN setup
...
Here we merge PX4 and Linux CAN bus setup since the interface is almost
the same for both of them.
7 years ago
Nikita Tomilov
43bfcbc8e2
AP_HAL_Linux: CAN: Rename CANDriver -> CANManager
7 years ago
Nikita Tomilov
d0fc481202
AP_HAL_Linux: CAN: Rename Linux::LinuxCAN -> Linux::CAN
7 years ago
Alexey Bulatov
606eb05c95
AP_BoardConfig: Linux CAN initialisation
7 years ago
Andrew Tridgell
ff87d27143
AP_BoardConfig: fixed return of get_pwm_count()
...
thanks to Michael for noticing
7 years ago
Andrew Tridgell
5458377e67
AP_BoardConfig: support MindPX-v2
7 years ago
Andrew Tridgell
02c3bea5a5
AP_BoardConfig: support ChibiOS FMUv4
7 years ago
Andrew Tridgell
82cc36d6d0
AP_BoardConfig: called board_setup() even without autodetect
...
we need to init hal.rcou and hal.gpio
7 years ago
Andrew Tridgell
b1ebbd1a1c
AP_BoardConfig: enable auto-detect only on FMUv3
...
F412 should not do board detection
7 years ago
Andrew Tridgell
60b1eab06d
AP_BoardConfig: added get_pwm_count()
7 years ago
Andrew Tridgell
e88fe93688
AP_BoardConfig: init chibios IO after boardconfig
...
this allows for the init to use parameters such as BRD_IO_ENABLE from
AP_BoardConfig
7 years ago