Andrew Tridgell
c12d14d7a4
HAL_ChibiOS: check for ChibiOS features
2018-06-22 08:00:31 +10:00
Andrew Tridgell
03f67d82c9
HAL_ChibiOS: allow more ChibiOS functionality to be disabled
...
used by bootloader builds for minimal flash size
2018-06-22 08:00:31 +10:00
Andrew Tridgell
e3a23921a2
HAL_ChibiOS: fixed FLASH_LOAD_ADDRESS
...
needs 0x08000000 base
2018-06-22 08:00:31 +10:00
Andrew Tridgell
1c054f0e4a
HAL_ChibiOS: fixed clock line on fmuv5 I2C4
...
there was a typo in the datasheet
2018-06-21 13:08:20 +10:00
Andrew Tridgell
a8f99882ba
HAL_ChibiOS: allow FrSky_INV to be controlled as GPIO
...
this allows control via relay settings
2018-06-21 07:40:50 +10:00
Andrew Tridgell
e3b68876a9
HAL_ChibiOS: fixed tx_len on tx DMA timeout
2018-06-19 09:08:45 +10:00
Andrew Tridgell
8431a677d9
HAL_ChibiOS: added a timeout to DMA UART TX
...
this prevents a shared DMA channel being held for a long time if a CTS
pin is held either by not being connected or by a radio
2018-06-19 09:08:45 +10:00
Hyungsub
8ae2729022
AP_HAL_ChibiOS: fix memory leaks
...
Fixes #8644
2018-06-18 10:30:56 +01:00
Andrew Tridgell
1c4bf3d804
HAL_ChibiOS: fixed build warning
2018-06-15 11:26:40 +10:00
Lucas De Marchi
46213eb97e
chibios_hwdef: fix wrong uart index
...
calling uart_list.index() will find the first element with that name,
which is not really what we want when we have multiple EMPTY uarts.
2018-06-15 08:21:40 +10:00
Andrew Tridgell
00d919018b
HAL_ChibiOS: added RTC clock implementation
2018-06-15 08:01:22 +10:00
Andrew Tridgell
10ca1e78e8
HAL_ChibiOS: switched to Mode3 on SPI1
...
this is now working correctly
2018-06-13 20:05:26 +10:00
Andrew Tridgell
9d248456e4
HAL_ChibiOS: re-enable I2C4 DMA for F765
...
now we have fixed the error from the datasheet we can do DMA
2018-06-13 20:05:26 +10:00
Andrew Tridgell
ad3eca4e6b
HAL_ChibiOS: fixed I2C4 DMA streams
...
There is an error in the datasheet. See
https://community.st.com/thread/50484-documentation-error-on-dma-channels-for-i2c4-on-stm32f7
2018-06-13 20:05:26 +10:00
Andrew Tridgell
62e8fbb9d3
HAL_ChibiOS: fixed OMNIBUSF7V2 hwdef.dat
2018-06-13 20:05:26 +10:00
Andrew Tridgell
e068106669
HAL_ChibiOS: support I2C devices on STM32F7 without DMA
...
this allows us to support I2C4 on fmuv5
2018-06-13 20:05:26 +10:00
Alexander Malishev
289b93c3d0
HAL_ChibiOS: added parse_timer to chibios_hwdef.dat
2018-06-11 18:32:17 +10:00
Eugene Shamaev
2055f264e5
AP_HAL_ChibiOS: helper func
2018-06-09 22:46:48 -07:00
Andrew Tridgell
ab946b5d76
HAL_ChibiOS: disable debug code for FMUv5
2018-06-08 09:56:41 +10:00
Philip
2424e38ed2
HAL_ChibiOS: Update cube-orange hwdef.dat for USB IDs
2018-06-08 09:56:41 +10:00
Andrew Tridgell
058e83c180
HAL_ChibiOS: switched cube-orange SPI1 devices to Mode0
2018-06-08 09:56:41 +10:00
Andrew Tridgell
2df0a71a4b
HAL_ChibiOS: fixed flash load address in hwdef.h
2018-06-08 09:56:41 +10:00
Andrew Tridgell
3a7c1b4d42
HAL_ChibiOS: switch BMI055 to mode0 on fmuv5
2018-06-08 09:56:41 +10:00
Andrew Tridgell
3be9077ba9
HAL_ChibiOS: added FMUv5 FMU capture pins
2018-06-06 15:01:38 +10:00
Andrew Tridgell
c05086430d
HAL_ChibiOS: fixed hwdef.h generation for PWM on tim12
2018-06-06 15:01:38 +10:00
Andrew Tridgell
63087b6425
HAL_ChibiOS: enable fmu out 7 and 8 for fmuv5
...
these are exposed on the Pixhawk4
2018-06-06 15:01:38 +10:00
Alexander Malishev
eac5d13f1c
HAL_ChibiOS: use 2 channels in SoftSigReaderInt.cpp
2018-06-06 08:23:51 +10:00
Alexander Malishev
fd45b3a69b
HAL_ChibiOS: slightly increase EICU interrupt priority
2018-06-06 08:23:51 +10:00
Alexander Malishev
73d33356ad
HAL_ChibiOS: detect overcapture in SoftSigReaderInt.cpp
2018-06-06 08:23:51 +10:00
Andrew Tridgell
7a1f87eb52
HAL_ChibiOS: added cube-orange hwdef
2018-06-06 08:13:38 +10:00
Michael du Breuil
1123023a6f
AP_HAL_ChibiOS: Wrap process registration with a semaphore
2018-06-06 07:16:58 +10:00
Michael du Breuil
a832bdfd04
AP_HAL_ChibiOS: fix race condition on analog reading
2018-06-06 07:16:58 +10:00
Michael du Breuil
4a9fe1745f
AP_ChibiOS: Remove timer process suspension interface
2018-06-06 07:16:58 +10:00
Andrew Tridgell
1ed6a9d34b
HAL_ChibiOS: added MCU tables for STM32F777
2018-06-06 07:15:41 +10:00
Andrew Tridgell
d1caa86e12
HAL_ChibiOS: adjust DMA priorities for fmuv3
2018-06-06 07:15:41 +10:00
Andrew Tridgell
c273b23940
HAL_ChibiOS: moved MCU config to python database
...
this moves the key MCU config variables related to memory to the
python MCU database, allowing the hwdef.dat to be considerably simpler
2018-06-06 07:15:41 +10:00
Andrew Tridgell
f390e35c99
HAL_ChibiOS: use port_disable in reboot
...
this provides a more reliable way to stop all interrupts
2018-06-06 07:15:41 +10:00
Andrew Tridgell
a1c97d0585
HAL_ChibiOS: disable paranoid checks for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
a945c97ec6
HAL_ChibiOS: fixed 3-way DMA sharing bug
...
when we have 3 way contention across two DMA streams we could get the
dma_deallocate function called in an object from two places at
once. This adds a mutex that prevents that scenario
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0e09dc75c0
HAL_ChibiOS: flush all memory on chSysHalt()
...
this makes debugging a lot easier, as gdb can see the values in dcache
2018-06-06 07:15:41 +10:00
Andrew Tridgell
2493cdbcb6
HAL_ChibiOS: switch to new bouncebuffer system
...
this removes the dma_flush and dma_invalidate methods and uses a
common bouncebuffer system for all CPU types. This enables microSD
support on STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0b1e26a470
HAL_ChibiOS: added bouncebuffer system
...
this makes our bouncebuffers available for ChibiOS system
drivers. This is needed for SDMMCv1 on STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
56ce3f057d
HAL_ChibiOS: added DRDY and SDMMC pins for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
018c9ad40b
HAL_ChibiOS: fixed build warnings
2018-06-06 07:15:41 +10:00
Andrew Tridgell
f25b95f287
HAL_ChibiOS: fixed array length in ADC debug code
2018-06-06 07:15:41 +10:00
Andrew Tridgell
fef1b0ffc6
HAL_ChibiOS: fixed I2C flush/invalidate calls
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0fade4eb9e
HAL_ChibiOS: make sure the UART bounce buffers are DMA safe
2018-06-06 07:15:41 +10:00
Andrew Tridgell
eec4a12cc2
HAL_ChibiOS: switched to using DTCM memory for DMA
...
this uses SRAM1 and SRAM2 for main memory, which enables the use of the
data cache for faster operation, and using DTCM for all DMA operations.
2018-06-06 07:15:41 +10:00
Andrew Tridgell
8b1db792ee
HAL_ChibiOS: ensure ADC memory is aligned for DMA access
2018-06-06 07:15:41 +10:00
Andrew Tridgell
bb2e7a189f
HAL_ChibiOS: added a debug function for showing stack free
...
this can be enabled when needed to investigate stack space remaining
2018-06-06 07:15:41 +10:00
Andrew Tridgell
010cd71ab6
HAL_ChibiOS: enable CAN on FMUv5
...
and fixed voltage scaling defaults
2018-06-06 07:15:41 +10:00
Andrew Tridgell
2087354939
HAL_ChibiOS: align buffers to STM32F7 cache lines
...
this allows for DMA flush and invalidate operations to work on all
dynamically allocated memory
2018-06-06 07:15:41 +10:00
Andrew Tridgell
762e4f9915
HAL_ChibiOS: fixed dma priorities for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
77d95f6744
HAL_ChibiOS: fmuv5 tweaks
2018-06-06 07:15:41 +10:00
Andrew Tridgell
a220220758
HAL_ChibiOS: added comment on IS_DMA_SAFE()
2018-06-06 07:15:41 +10:00
Andrew Tridgell
4d4ea894e8
HAL_ChibiOS: disable i2c device debug code
2018-06-06 07:15:41 +10:00
Andrew Tridgell
edb831653f
HAL_ChibiOS: added dma_flush and dma_invalidate operations
...
these are needed to manage the data cache on the STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
7449e15313
HAL_ChibiOS: disable flash storage option on FMUv5
...
F7 flash driver not working yet
2018-06-06 07:15:41 +10:00
Andrew Tridgell
b961e12456
HAL_ChibiOS: support having no flash storage option
2018-06-06 07:15:41 +10:00
Andrew Tridgell
2d8748ddce
HAL_ChibiOS: enable ADCs and buzzer for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
6aab9232ef
HAL_ChibiOS: enable aux pwm channels on FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
db9bf19e46
HAL_ChibiOS: enable i2c for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
77bb69fa2e
HAL_ChibiOS: enabled UARTs for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
ac44189ab2
HAL_ChibiOS: setup two IMUs for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
721f3cd5d1
HAL_ChibiOS: fixed flash layout for F7
...
thanks to @alielectric
2018-06-06 07:15:41 +10:00
Andrew Tridgell
01f5d1a17c
HAL_ChibiOS: first IMU working
2018-06-06 07:15:41 +10:00
Andrew Tridgell
eca634ec62
HAL_ChibiOS: support 6 SPI buses
2018-06-06 07:15:41 +10:00
Andrew Tridgell
4ad757b4d1
HAL_ChibiOS: fixed pincount for F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
876899c48d
HAL_ChibiOS: baro and FRAM working for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
8d2f57898b
HAL_ChibiOS: adjust pin counts for STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
1f6ffc48e5
HAL_ChibiOS: allow STM32F7 to build with flash driver
2018-06-06 07:15:41 +10:00
Andrew Tridgell
7c09a1781b
HAL_ChibiOS: started on fmuv5
2018-06-06 07:15:41 +10:00
Michael du Breuil
593da25a7a
AP_HAL_ChibiOS: Remove RC overrides
2018-06-05 09:51:09 +10:00
Andrew Tridgell
a011561a6a
HAL_ChibiOS: support sdcard on MatekF405
2018-05-27 19:10:24 +10:00
Andrew Tridgell
ea37cede28
HAL_ChibiOS: stop sdcard interface on reboot
2018-05-27 19:10:24 +10:00
Andrew Tridgell
86ded2c40c
HAL_ChibiOS: cleanup sdcard API usage
2018-05-27 19:10:24 +10:00
Andrew Tridgell
52c8d3ed9f
HAL_ChibiOS: fixed SPI select error
...
changes by sdcard PR
2018-05-27 19:10:24 +10:00
Andrew Tridgell
2c55589488
HAL_ChibiOS: added hwdef for MatekF405
2018-05-27 19:10:24 +10:00
Alexander Malishev
83e65b3c6e
HAL_ChibiOS: turn on sdcard on f4by
2018-05-27 19:10:24 +10:00
Alexander Malishev
66de6d770a
HAL_ChibiOS: Enable reentrancy on FatFS sybsystem
2018-05-27 19:10:24 +10:00
Alexander Malishev
6b15b2f44f
HAL_ChibiOS: Enable sdcard on spi bus
2018-05-27 19:10:24 +10:00
Andrew Tridgell
7b720aae46
HAL_ChibiOS: allow printf() to work on systems without debug console
...
map to hal.console once initialised
2018-05-26 19:06:25 +10:00
Andrew Tridgell
dbe0f3c575
HAL_ChibiOS: fixed assert in reboot
...
with asserts enabled we can't sleep with interrupts off
2018-05-26 17:23:46 +10:00
Andrew Tridgell
79ca1e76c0
HAL_ChibiOS: improve reliability of reboot
2018-05-26 15:53:25 +10:00
Andrew Tridgell
7e897c16c0
HAL_ChibiOS: maintain rcout state beyond BRD_PWM_COUNT
...
allow channels beyond BRD_PWM_COUNT to be sent over SBUS or DShot
distribution
2018-05-26 12:08:54 +10:00
Andrew Tridgell
afb36ec168
HAL_ChibiOS: run can loop much more often
...
this allows for much higher ESC and servo rates, as it gives more
changes for frames to get out
2018-05-25 13:53:17 +10:00
Michael du Breuil
3a62bca7d0
AP_HAL_ChibiOS: Make redefined pins an error, fix FMUv3
2018-05-25 09:57:18 +10:00
Andrew Tridgell
f3179e7934
HAL_ChibiOS: improved reliability of DShot passthru
...
thanks to WickedShell for debugging this on his Wraith32 ESCs. We were
truncating the last bit on some BLHeli transfers
2018-05-22 18:59:51 +10:00
Eugene Shamaev
4ab2ff8c81
AP_HAL_ChibiOS: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Andrew Tridgell
89898bae1d
HAL_ChibiOS: take account of available bytes in receive_time_constraint_us
2018-05-21 14:53:18 +10:00
Andrew Tridgell
dcd7799ec9
HAL_ChibiOS: fixed DShot output on fixed wing
...
we need to mark the channels as 'fast' for DShot to enable properly
2018-05-21 13:31:00 +10:00
Andrew Tridgell
8571e59d85
HAL_ChibiOS: fixed SBUS inversion for KakuteF4
2018-05-20 15:50:44 +10:00
Andrew Tridgell
7005383f82
HAL_ChibiOS: implement uart receive timestamp API
2018-05-16 18:49:22 +10:00
mirkix
cb50639e27
AP_HAL_ChibiOS: add STM32F7 UART support
2018-05-15 07:23:56 +10:00
Alexander Malishev
7eb08bbd40
HAL_ChibiOS: Fix inverter on Omnibus F4 V3
2018-05-14 06:06:40 +10:00
Andrew Tridgell
794ebe32e3
HAL_ChibiOS: fixed mixture of oneshot and normal PWM on IOMCU
2018-05-12 07:28:05 +10:00
Michael du Breuil
72a4846f40
AP_HAL_ChibiOS: Remove set_overrides() method
2018-05-11 12:13:39 +01:00
mirkix
34c96c80ff
AP_HAL_ChibiOS: rename BUZZER_PIN into HAL_BUZZER_PIN
2018-05-10 17:48:25 +01:00
Peter Barker
b2a81405ea
AP_HAL_ChibiOS: move delay callback handling to base HAL Scheduler class
2018-05-09 16:15:38 +10:00
anbello
5b56887428
Changes to be committed:
...
modified: hwdef.dat
Modified as per @sh83 hints
2018-05-08 07:33:19 +10:00