Randy Mackay
f3db67b322
AP_HAL: add GPIO::pin_to_servo_channel method
3 years ago
Randy Mackay
343115a242
AP_HAL_ChibiOS: GPIO comment removes mention of BRD_PWM_COUNT
3 years ago
Andrew Tridgell
0c2041d415
HAL_ChibiOS: constrain more timer timeouts
3 years ago
Andrew Tridgell
638e20a0b9
HAL_ChibiOS: bring in hal.h where it is needed
3 years ago
Peter Barker
e7f1a273e5
AP_HAL_ChibiOS: remove unused pin-related defines
...
Unused
3 years ago
Andrew Tridgell
6fa9768eab
HAL_ChibiOS: support GPIO get_mode and set_mode
3 years ago
Iampete1
a96150a528
AP_HAL_ChibiOS: allow enabling GPIO as alt config
3 years ago
Iampete1
ade01f41d9
AP_HAL_ChibiOS: support digital write via IOMCU
3 years ago
Andrew Tridgell
0212e23cd3
HAL_ChibiOS: added support for STM32L496 MCUs
...
good MCU for AP_Periph
3 years ago
Andrew Tridgell
d8b8facdd0
HAL_ChibiOS: fixed off by 1 bug in GPIO check
4 years ago
Andrew Tridgell
d302d3c90a
HAL_ChibiOS: implement valid_pin()
4 years ago
Andrew Tridgell
54e53ed71c
HAL_ChibiOS: use is_GPIO() instead of BRD_PWM_COUNT
4 years ago
Andrew Tridgell
439a944801
HAL_ChibiOS: added support for STM32G474 MCU
4 years ago
Andrew Tridgell
46976c4358
HAL_ChibiOS: fixed remapping of ioline_t with BRD_ALT_CONFIG
...
when a peripheral is made available via BRD_ALT_CONFIG we need to
remap the existing ioline_t in the UART and I2C drivers to use the new
pin.
This fixes an issue with half-duplex, inverted, swapped UART pins for
protocols like FPort and FPort2
4 years ago
Andrew Tridgell
e471b23f58
HAL_ChibiOS: add a max quota of GPIO interrupts
...
This implements a max quota of GPIO interrupts per 100ms period to
prevent high interrupt counts from consuming all CPU and causing a
lockup. The limit is set as 10k interrupts per 0.1s period. That limit
should be high enough for all reasonable uses of GPIO interrupt
handlers while being below the level that causes significant CPU loads
and flight issues
This addresses issue #15384
4 years ago
Andrew Tridgell
7320cd3174
HAL_ChibiOS: fixed assert in wait_pin()
5 years ago
Andrew Tridgell
ffe773ff6f
HAL_ChibiOS: use DRDY pin for ADIS16470 on mRoNexus
5 years ago
Andrew Tridgell
450871cde1
HAL_ChibiOS: added wait_pin() implementation
5 years ago
Andrew Tridgell
66dd5925cf
HAL_ChibiOS: added support for alternative pin configs
5 years ago
Andrew Tridgell
0751756e91
HAL_ChibiOS: retain OPENDRAIN if set on a pin
...
this allows OPENDRAIN when set on a pin to be retained when set with a
pinMode(). This fixes a partially lit B/E LED on the Pixhawk4
5 years ago
Mirko Denecke
b84dcd483d
AP_HAL_ChibiOS: remove unnecessary tabs and whitespaces
5 years ago
Andrew Tridgell
a9e29f7556
HAL_ChibiOS: added pullup/pulldown support on GPIO
...
using the convention of write() on an input pin to set pullup/pulldown
7 years ago
Peter Barker
2209e4a697
AP_HAL_ChibiOS: new HAL functor-based methods
...
AP_HAL_ChibiOS: adjust for irq-type enumeration change
AP_HAL_ChibiOS: implement attach-AP_HAL::Proc to interrupt interface
7 years ago
Lucas De Marchi
668c941717
Global: use new version of ARRAY_SIZE
7 years ago
Andrew Tridgell
64c8ca514c
HAL_ChibiOS: fixed attach_interrupt check
...
we can't have two handlers on the same pad
7 years ago
Andrew Tridgell
7aba99e229
HAL_ChibiOS: fixes for ChibiOS version update
7 years ago
Siddharth Purohit
4e8d072d6d
HAL_ChibiOS: move to using recent pal driver api for GPIO IRQ events
7 years ago
Michael du Breuil
6fba374069
AP_HAL_ChibiOS: Remove GPIO::analogPinToDigitalPin()
7 years ago
Andrew Tridgell
3292abaa19
HAL_ChibiOS: fixed F412 build
7 years ago
Andrew Tridgell
e4ce2f532b
HAL_ChibiOS: make smaller builds possible
...
this allows for much smaller builds when you disable a lot of
options. This is part of an effort to create a bootloader of less than
16k using ChibiOS
7 years ago
Andrew Tridgell
96cc657bd0
HAL_ChibiOS: fixed GPIO interrupt port mapping
7 years ago
Andrew Tridgell
68293c9c11
HAL_ChibiOS: don't require GPIO() markers on PWM outputs
...
this fixes blheli pass-thru on MindPX-v2
7 years ago
Andrew Tridgell
9a29c6d3b5
HAL_ChibiOS: implement DigitalSource()
7 years ago
Andrew Tridgell
b350b07593
HAL_ChibiOS: allow internal GPIO fuctions to use disabled pins
7 years ago
Andrew Tridgell
382772d999
HAL_ChibiOS: initial support for ESC serial output
7 years ago
Andrew Tridgell
591e0c2249
HAL_ChibiOS: allow control of interrupt port
...
F412 has radio IRQ on port B
7 years ago
Andrew Tridgell
867e7ebf71
HAL_ChibiOS: auto-generate GPIO table from hwdef.dat
7 years ago
Andrew Tridgell
f14a847b97
HAL_ChibiOS: rename classes to remove 'Chibi'
...
it is redundent as all classes are in ChibiOS namespace, and makes the
code harder to read
7 years ago
Andrew Tridgell
d65ec2ada7
HAL_ChibiOS: moved more headers to common
...
allow customisation, but don't require every port to copy the defaults
7 years ago
Andrew Tridgell
f5c8754d75
HAL_ChibiOS: use ARRAY_SIZE_SIMPLE
...
this allows for boards without a device type (eg. no SPI bus)
7 years ago
Andrew Tridgell
280140bf25
HAL_ChibiOS: added support for MindPX-v2
7 years ago
Andrew Tridgell
41be81af34
HAL_Chibios: added hardware flow control for UARTs
...
implement RTS in software and CTS in hardware
7 years ago
Andrew Tridgell
c3435e45c5
HAL_ChibiOS: initial port to FMUv4
7 years ago
Andrew Tridgell
b57f8f01c6
HAL_Chibios: fixed return for read on invalid gpio pin
7 years ago
Andrew Tridgell
21f40da510
HAL_Chibios: align GPIO pins with px4 build
7 years ago
Andrew Tridgell
8b6bab7b17
HAL_Chibios: added ChibiOS HAL
...
this is based on initial work by Sid, reset here for easier merging
7 years ago