Andrew Tridgell
63a0a4979c
HAL_ChibiOS: delay peripheral power on for fmuv5
...
this should prevent SiK radios staying in the bootloader
7 years ago
Andrew Tridgell
f083b80700
HAL_ChibiOS: added preallocation of DMA bouncebuffers
...
we need 512 bytes for microSD
7 years ago
Andrew Tridgell
963675689c
HAL_ChibiOS: fixed substitution of %BOARD%-BL
7 years ago
Andrew Tridgell
946d0208e5
HAL_ChibiOS: fixed stm32f7 cache bug in erase flash page
7 years ago
Andrew Tridgell
2b7b499c63
HAL_ChibiOS: added support for RTC sig for fast boot
7 years ago
Andrew Tridgell
bf6fb72904
HAL_ChibiOS: fixed 32 bit flash writes
7 years ago
Andrew Tridgell
e40457d98f
HAL_ChibiOS: avoid malloc in usbcfg
...
this avoids the need for malloc in the bootloader
7 years ago
Andrew Tridgell
369ac5edd0
HAL_ChibiOS: save more space in the bootloader
7 years ago
Andrew Tridgell
e870b5f00a
HAL_ChibiOS: use 32 bit flash operations when possible
7 years ago
Andrew Tridgell
feefa05b41
HAL_ChibiOS: expose stm32_flash_ispageerased()
7 years ago
Andrew Tridgell
dd1bd43a2e
HAL_ChibiOS: added stm32_flash_keep_unlocked()
7 years ago
Andrew Tridgell
518d41e0d4
HAL_ChibiOS: added OTP defines
7 years ago
Alexander Malishev
661259de4e
HAL_ChibiOS: reduce .text aigment to save flash space
7 years ago
Andrew Tridgell
3fc6824bfb
HAL_ChibiOS: setup more bootloader config files
7 years ago
Andrew Tridgell
0cd46c063c
HAL_ChibiOS: fixed flash driver for F7
...
we need a data sync barrier due to the F7 cache
7 years ago
Andrew Tridgell
3ef88e1b8f
HAL_ChibiOS: allow flash support for bootloader
7 years ago
Andrew Tridgell
5216870492
HAL_ChibiOS: avoid strstr in usbcfg
...
saves nearly 2k of flash
7 years ago
Andrew Tridgell
c12d14d7a4
HAL_ChibiOS: check for ChibiOS features
7 years ago
Andrew Tridgell
03f67d82c9
HAL_ChibiOS: allow more ChibiOS functionality to be disabled
...
used by bootloader builds for minimal flash size
7 years ago
Hyungsub
8ae2729022
AP_HAL_ChibiOS: fix memory leaks
...
Fixes #8644
7 years ago
Andrew Tridgell
1c4bf3d804
HAL_ChibiOS: fixed build warning
7 years ago
Andrew Tridgell
00d919018b
HAL_ChibiOS: added RTC clock implementation
7 years ago
Alexander Malishev
eac5d13f1c
HAL_ChibiOS: use 2 channels in SoftSigReaderInt.cpp
7 years ago
Alexander Malishev
fd45b3a69b
HAL_ChibiOS: slightly increase EICU interrupt priority
7 years ago
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
7 years ago
Andrew Tridgell
0e09dc75c0
HAL_ChibiOS: flush all memory on chSysHalt()
...
this makes debugging a lot easier, as gdb can see the values in dcache
7 years ago
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
7 years ago
Andrew Tridgell
0b1e26a470
HAL_ChibiOS: added bouncebuffer system
...
this makes our bouncebuffers available for ChibiOS system
drivers. This is needed for SDMMCv1 on STM32F7
7 years ago
Andrew Tridgell
018c9ad40b
HAL_ChibiOS: fixed build warnings
7 years ago
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.
7 years ago
Andrew Tridgell
bb2e7a189f
HAL_ChibiOS: added a debug function for showing stack free
...
this can be enabled when needed to investigate stack space remaining
7 years ago
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
7 years ago
Andrew Tridgell
edb831653f
HAL_ChibiOS: added dma_flush and dma_invalidate operations
...
these are needed to manage the data cache on the STM32F7
7 years ago
Andrew Tridgell
721f3cd5d1
HAL_ChibiOS: fixed flash layout for F7
...
thanks to @alielectric
7 years ago
Andrew Tridgell
1f6ffc48e5
HAL_ChibiOS: allow STM32F7 to build with flash driver
7 years ago
Alexander Malishev
66de6d770a
HAL_ChibiOS: Enable reentrancy on FatFS sybsystem
7 years ago
Alexander Malishev
6b15b2f44f
HAL_ChibiOS: Enable sdcard on spi bus
7 years ago
Andrew Tridgell
7b720aae46
HAL_ChibiOS: allow printf() to work on systems without debug console
...
map to hal.console once initialised
7 years ago
Alexander Malishev
1fd52c4e01
HAL_ChibiOS: added input capture filter
7 years ago
Andrew Tridgell
95108a2d2c
HAL_ChibiOS: added support for 16 bit timers
7 years ago
Alexander Malishev
79b5719419
ChibiOS: add support for complementry output timer channels
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
6e5cbc7c3d
HAL_ChibiOS: initial support for F745 boards
7 years ago
Andrew Tridgell
551dca63e1
HAL_ChibiOS: added build information for each MCU
...
this abstracts the build information for each MCU, so that hwdef.dat
can control the build process of ChibiOS
7 years ago
Andrew Tridgell
d1e4185817
HAL_ChibiOS: don't build flash.c if not needed
7 years ago
Andrew Tridgell
610a6a6c88
HAL_ChibiOS: optimise USB config driver
7 years ago
Tom Pittenger
b864cd6ae6
AP_HAL_ChibiOS: include correct wrappers
7 years ago
Andrew Tridgell
306d35655e
HAL_ChibiOS: allow for bare board builds
...
this allows for a build with no UARTs, no SPI, no I2C, no PWM. Great
for initial board bringup with just USB
7 years ago
Andrew Tridgell
21951243f0
HAL_ChibiOS: default debug checks off
...
these can be enabled as needed for board bringup, but are too
expensive for general use
7 years ago
Andrew Tridgell
427e00dd41
HAL_ChibiOS: switched to system timer for AP_HAL::micros()
...
this uses the ChibiOS system timer instead of a separate GPT timer for
the core ChibiOS timer. The advantage is it saves us a timer, plus it
changes ChibiOS to use a 1MHz clock on its timer, which gives us
higher resolution for delays.
This has a remarkable effect on timing jitter, reducing it greatly
7 years ago