Commit Graph

149 Commits

Author SHA1 Message Date
Thomas Watson
20ee5b2d37 AP_HAL_Empty: eliminate legacy UART ordering/references
Fourth serial port (SERIAL2) added purely for consistency.
2023-12-19 06:53:15 +11:00
Thomas Watson
90c14141a0 AP_HAL_Empty: pass UARTs to AP_HAL in SERIALn order 2023-12-19 06:53:15 +11:00
Thomas Watson
db12f428c5 AP_HAL_Empty: introduce get_HAL_mutable() to complement get_HAL()
Returns a mutable reference to the same HAL for certain purposes where
the HAL needs to be mutated to avoid UB problems with casting away const
and to make the fact that mutation is happening obvious.
2023-11-28 08:24:25 +11:00
Andrew Tridgell
66e5ea0b1b AP_HAL_Empty: moved UART port locking up to AP_HAL 2023-07-12 17:06:02 +10:00
Andy Piper
eadee1ab8d AP_HAL_Empty: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
Peter Barker
d601d83b4b AP_HAL_Empty: add and use a "bool read(c)" method to AP_HAL
this is much less likely to not work vs the int16_t equivalent
2023-03-22 17:59:11 +11:00
Peter Barker
2d3092407f AP_HAL_Empty: move implementations of functions to header
Makes it much clearer what's implemented and what's dangling
2022-06-23 12:38:41 +10:00
Andy Piper
044aaf3004 AP_HAL_Empty: save a sliding window array of frequency bins 2022-06-01 15:49:32 +01:00
Andy Piper
02e5a7f463 AP_HAL_Empty: add placeholder vector addition 2022-05-04 17:05:51 +10:00
Peter Barker
cea57f51c1 AP_HAL_Empty: add HAL_UART_STATS_ENABLED to disable stats gathering 2022-01-12 18:30:49 +11:00
Andy Piper
5259272326 AP_HAL_Empty: remove redundant harmonics from DSP 2021-12-22 18:13:38 +11:00
Andrew Tridgell
e2618bdc06 AP_HAL_Empty: support up to 9 UARTs 2021-11-22 22:48:59 +11:00
Iampete1
f479964c5a AP_HAL_Empty: AnalogSource: return bool 2021-10-06 18:42:51 +11:00
Siddharth Purohit
215c1249cb AP_HAL_Empty: add check owner method 2021-09-01 17:10:53 +10:00
Siddharth Purohit
6a284ea59d AP_HAL_Empty: add QSPIDevice empty HAL Iface 2021-06-30 19:33:17 +10:00
Andrew Tridgell
23cf128541 HAL_Empty: implement uart_info() 2021-06-05 18:52:33 +10:00
Andrew Tridgell
2473d3f7f8 AP_HAL_Empty: removed assert calls
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell
dff6a5bff9 HAL_Empty: allow return of last value in RCOutput
this is needed for linux boards with no native RCOutput that use SBUS
out on a serial port to ensure they can display the servo values in
the GCS
2021-01-20 10:06:45 +11:00
Andy Piper
526ae5d2f4 AP_HAL_Empty: rename system_initialized() and add is_system_initialized() 2020-12-30 18:16:59 +11:00
Andrew Tridgell
7b6392fcb5 HAL_Empty: fixed build 2020-12-15 10:32:46 +11:00
Andrew Tridgell
217433ee16 AP_HAL_Empty: support uartI, allowing a total of 9 uarts
this allows for OTG2 on the MatekH743 board, which makes SLCAN much
easier
2020-11-30 14:09:31 +11:00
bugobliterator
9f4457f1d2 HAL_Empty: add empty protocol method in RCInput 2020-11-04 19:59:40 +11:00
Peter Barker
7e92bbc7bd AP_HAL_Empty: remove un-needed constructor
Not sure the initialisation is needed but retained it.
2020-10-13 19:55:34 +11:00
Peter Barker
b16c1ea647 AP_HAL_Empty: add discard_input method on UARTDriver 2020-05-26 09:20:32 +10:00
Andy Piper
13e40a3002 AP_HAL_Empty: add harmonics to DSP
add DSP vector mean function
add ObjectBuffer signature
2020-05-24 07:43:34 +10:00
Andy Piper
495a89459f AP_HAL_Empty: empty implementation of HAL FFT 2020-02-22 11:15:37 +11:00
Michael du Breuil
75b241622f AP_HAL_Empty: Remove set_stop_pin from AnalogSource 2019-09-04 09:54:50 +10:00
Andrew Tridgell
4e560a4ae5 HAL_Empty: added uartH 2019-07-12 17:01:21 +10:00
Andrew Tridgell
92e509a418 HAL_Empty: added empty flash driver 2019-04-11 13:22:53 +10:00
Michael du Breuil
57d3a4fb5f AP_HAL_Empty: Remove unneeded private member 2018-11-27 07:36:17 +11:00
Peter Barker
d4601862bc AP_HAL_Empty: add override keyword where required 2018-11-08 11:30:12 +11:00
Siddharth Purohit
78ce5a3f70 HAL_Empty: fix ambiguity of UARTDriver with the one defined in ChibiOS 2018-09-19 12:14:15 +10:00
Siddharth Purohit
2341719929 AP_HAL_Empty: do not use ch as its used by ChibiOS globally 2018-09-19 12:14:15 +10:00
Peter Barker
d868aab26a AP_HAL_Empty: remove pointless attach_interrupt override 2018-08-31 08:32:08 +10:00
Peter Barker
9b9ec4db40 AP_HAL_Empty: attach_interrupt now takes a functor
AP_HAL_Empty: add type-safety for interrupt types
2018-08-21 20:34:01 +09:00
Michael du Breuil
f4b1d530c1 AP_HAL_Empty: Remove GPIO::analogPinToDigitalPin() 2018-07-11 23:09:52 -07:00
Andrew Tridgell
4ff57bd512 HAL_Empty: support uartG 2018-06-29 08:17:38 +10:00
Michael du Breuil
dbd852bbb6 AP_HAL_Empty: Remove timer process suspension interface 2018-06-06 07:16:58 +10:00
Michael du Breuil
45a13c868b AP_HAL_Empty: Remove RC overrides 2018-06-05 09:51:09 +10:00
Michael du Breuil
b192c1c094 AP_HAL_Empty: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Peter Barker
ae56cbc302 AP_HAL_Empty: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Andrew Tridgell
5e19183e90 HAL_Empty: fixed I2C get_device() interface 2018-01-15 11:46:02 +11:00
Lucas De Marchi
5ea1784838 global: remove AP_HAL::in_timerprocess()
This is not used and in the only places it would make sense would be
internally to the scheduler so remove it.
2017-08-03 20:25:14 -07:00
Julien Beraud
c08587fb09 AP_HAL_Empty: adapt to new api
Removed gyro_cb in HAL interface
Added 2 new methods
2017-01-23 21:23:16 +11:00
murata
c808ee2f49 Global: To nullptr from NULL.
RC_Channel: To nullptr from NULL.

AC_Fence: To nullptr from NULL.

AC_Avoidance: To nullptr from NULL.

AC_PrecLand: To nullptr from NULL.

DataFlash: To nullptr from NULL.

SITL: To nullptr from NULL.

GCS_MAVLink: To nullptr from NULL.

DataFlash: To nullptr from NULL.

AP_Compass: To nullptr from NULL.

Global: To nullptr from NULL.

Global: To nullptr from NULL.
2016-11-02 16:04:47 -02:00
Mathieu OTHACEHE
152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
1d6e4673da HAL_Empty: add cork() and push() for RCOutput 2016-10-13 10:00:04 +11:00
Lucas De Marchi
e1ab44f4a3 Global: remove get_fd() from Device API
This was there for compatibility with I2CDriver and SPIDriver. We don't
use them anymore so we can remove the compat method.
2016-08-29 10:27:36 -03:00
Murilo Belluzzo
077e03678f Global: Adapt Stream class to be used with Ringbuffer 2016-08-03 01:44:02 -03:00
Lucas De Marchi
7669d54265 AP_HAL_Empty: update Device interface 2016-07-30 00:55:27 -03:00