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
Andrew Tridgell
b90c0d78f3
HAL_ChibiOS: fixed build warning
7 years ago
Andrew Tridgell
20a008c80a
HAL_ChibiOS: disable trace buffers
...
these were unusued but still allocated
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
f3f6972fc0
HAL_ChibiOS: output panics on system console
7 years ago
Andrew Tridgell
86189393a7
HAL_ChibiOS: fixed build warnings
7 years ago
Andrew Tridgell
4886ffbf8a
HAL_ChibiOS: fixed build warnings
7 years ago
Andrew Tridgell
fa68210210
HAL_ChibiOS: fixed build with older compilers
7 years ago
Andrew Tridgell
5fc12f82fb
HAL_ChibiOS: expanded interrupt stack to 256
...
this is very conservative, and may be trimmed later based on analysis
of stack usage
7 years ago
Andrew Tridgell
4b8bde746e
HAL_ChibiOS: improved default USB strings
...
use board name and serial number to make IDs unique
7 years ago
Andrew Tridgell
29add8a880
HAL_ChibiOS: fixed build without FATFS enabled
7 years ago
Siddharth Purohit
143686f70d
HAL_ChibiOS: add placeholder cstdio header
7 years ago
Siddharth Purohit
539d5adc13
hwdef: add more posix methods
7 years ago
Siddharth Purohit
288f6b1fa0
HAL_ChibiOS: add chibios cpp wrapers, libuavcan's stm32 driver uses it
7 years ago
Andrew Tridgell
713006bb1d
HAL_ChibiOS: allow more OTG defines to be overridden
7 years ago
Andrew Tridgell
743806116d
HAL_ChibiOS: removed unusued ppm driver
...
now uses AP_RCProtocol
7 years ago
bugobliterator
445ba6ed39
HAL_ChibiOS: update ppm to use Extended ICU driver
7 years ago
Andrew Tridgell
f6138e3c91
HAL_ChibiOS: use calloc in preferance to malloc
7 years ago
Andrew Tridgell
e2a65c8c60
HAL_ChibiOS: added support for AP_Terrain for ChibiOS
7 years ago
Andrew Tridgell
2929b3dbb1
HAL_ChibiOS: allow builds on systems with no SDIO
7 years ago
Andrew Tridgell
2978649cd4
waf: moved to generated loader script
7 years ago
Andrew Tridgell
6e4ef32628
HAL_ChibiOS: moved to generated loader script
7 years ago
Andrew Tridgell
9482ab1840
waf: use common makefile for ChibiOS if no custom present
7 years ago
Andrew Tridgell
c639708e22
HAL_ChibOS: auto-generate full PWM config
...
use PWM markers in hwdef.dat to mark each PWM channel
7 years ago
Andrew Tridgell
daa9eec836
HAL_ChibiOS: auto-configure timer channels
...
allow for one marked PPMIN for input
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