Iampete1
7617606629
AP_HAL: GPIO: add arming check
2023-03-22 09:27:35 +11:00
Iampete1
36498cb4a0
AP_HAL: GPIO: PWMSource: add destructor to detach interurupt
2023-03-05 09:42:05 +11:00
Randy Mackay
1ee01577f6
AP_HAL: add GPIO::pin_to_servo_channel method
2022-04-26 15:19:28 +09:00
Andrew Tridgell
029743e27a
AP_HAL: added support for saving and restoring GPIO settings
...
this allows for using any pin (eg. UART TX, RX, RTS, CTS) as a GPIO,
and restoring the old mode. Initial use is for spektrum bind on RX pin
2021-10-12 15:47:51 +11:00
Andrew Tridgell
4dcff3d900
AP_HAL: added valid_pin() GPIO API
2021-07-22 07:48:12 +10:00
Andrew Tridgell
c62b86e3c1
AP_HAL: added timer_tick() on GPIO
2020-10-02 09:38:24 +10:00
Peter Barker
55f72c1534
AP_HAL: create and use new AP_HAL::PWMSource object
2020-09-08 16:10:50 +10:00
Andrew Tridgell
34df438560
AP_HAL: added wait_pin() API
...
for waiting on data-ready lines
2020-04-23 07:28:13 +10:00
Peter Barker
fcacdb42bb
AP_HAL: define base-class attach_interrupt to return false
2018-08-31 08:32:08 +10:00
Peter Barker
74263f8412
AP_HAL: add attach_interrupt that takes a functor, not a AP_HAL::Proc
...
AP_HAL: add type-safety for interrupt types
AP_HAL: remove interrupt-low and interrupt-high, and interrupt-none
It is possible that the radio needs very tight timings - do not force
the use of the functor interface
AP_HAL: add detach_interrupt method
2018-08-21 20:34:01 +09:00
Michael du Breuil
3419b045e1
AP_HAL: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Andrew Tridgell
391affc02d
AP_HAL: support ChibiOS
2018-01-15 11:46:02 +11:00
Lucas De Marchi
e122b2b651
AP_HAL: GPIO: remove unused functions
...
These functions are not used by any HAL, so remove them.
2016-06-21 12:16:32 -03:00
Lucas De Marchi
dbf2aedf1e
AP_HAL: replace header guard with pragma once
2016-02-18 14:52:34 -02:00
Andrew Tridgell
582318448f
AP_HAL: make new GPIO functions optional
...
not available on all boards
2015-09-14 14:22:16 +10:00
raspilot
6df83f46c5
AP_HAL: new GPIO APIs
2015-09-14 14:22:15 +10:00
Andrew Tridgell
18a64d17d3
AP_HAL: added HAL_ prefix to GPIO_ defines
...
this fixes a bug caused by GPIO_INPUT and GPIO_OUTPUT already being
defined in NuttX, which caused pinMode() not to setup pins for output
when requested
2014-06-02 09:24:52 +10:00
Andrew Tridgell
a5b29f44d5
AP_HAL: added hal.gpio->usb_connected() function
...
this replaces the USB_MUX_PIN on APM2, and works on PX4 and FMUv2
2013-09-19 16:23:40 +10:00
Randy Mackay
ac36a09747
AP_HAL: add toggle to GPIO
2013-08-30 13:01:34 +10:00
Andrew Tridgell
eb6c66af7e
AP_HAL: added gpio->analogPinToDigitalPin() API
2013-03-22 12:31:14 +11:00
Pat Hickey
1678dcc6f0
AP_HAL: GPIO INTERRUPT defines
2012-12-22 09:11:11 +11:00
Pat Hickey
709869f8ce
AP_HAL: use sized ints in GPIO
2012-12-20 14:51:33 +11:00
Pat Hickey
7480707f9e
AP_HAL: Add attach_interrupt method to GPIO
2012-12-20 14:51:26 +11:00
Pat Hickey
73ccfaf2d7
AP_HAL: implement DigitalSource abstraction
...
* GPIO's complement to AnalogSource
2012-12-20 14:51:25 +11:00
Pat Hickey
e9c5f07db2
AP_HAL: Working GPIO interface & implementation
...
* actually, tested the output only... gotta do input next
2012-12-20 14:51:20 +11:00
Pat Hickey
dc03b1190f
AP_HAL: Stub implementations of pure virtual AP_HAL classes
2012-12-20 14:51:18 +11:00