Andrew Tridgell
|
aee6462deb
|
HAL_ChibiOS: enable I2C clearing on F412 board only
may be needed on other boards in the future, but for now we only know
its needed on an I2C 20789, which is rare
|
2018-02-08 17:36:33 +11:00 |
Siddharth Purohit
|
40142e5aef
|
ChibiOS: implement way to clear i2c bus by toggling clock line
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
0d089e8116
|
HAL_ChibiOS: fixed F412 OF reset pin
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
3c3389a005
|
HAL_ChibiOS: raise I2C bus priority on F412
needed for good scheduling with I2C IMU
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
20a008c80a
|
HAL_ChibiOS: disable trace buffers
these were unusued but still allocated
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
6faace278a
|
HAL_ChibiOS: run i2c at 400kHz on F412
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
9f53ae1ea4
|
HAL_ChibiOS: added F412-rev1 hwdef.dat
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
73418519eb
|
HAL_ChibiOS: enable analog debug on F412
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
fd824e6258
|
HAL_ChibiOS: enable toy mode on F412
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
d208dc69d3
|
Tools: moved make_abin.sh into ChibiOS scripts
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
4aa604a193
|
HAL_ChibiOS: enable pixartflow on skyviper-V2450
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
591e0c2249
|
HAL_ChibiOS: allow control of interrupt port
F412 has radio IRQ on port B
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
3cacb1d4b5
|
HAL_ChibiOS: commented the motor order in hwdef
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
f3f6972fc0
|
HAL_ChibiOS: output panics on system console
|
2018-02-08 17:36:33 +11:00 |
Andrew Tridgell
|
75226ba187
|
HAL_ChibiOS: enable logging on MindPX-v2
not working yet, seems to be a problem with SDIO interface
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
4548fd4d2f
|
HAL_ChibiOS: changed RCIN to PULLDOWN
this fixes a high cpu load with no receiver connected
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
86189393a7
|
HAL_ChibiOS: fixed build warnings
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
4886ffbf8a
|
HAL_ChibiOS: fixed build warnings
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
30e4323c6d
|
HAL_ChibiOS: disable USART1 till USB problem solved
using USART1 causes USB disconnects. The behaviour is like CTS/RTS is
enabled on USART1, but it is disabled.
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
ad5a04fc89
|
HAL_ChibiOS: added NODMA option
this allows a peripheral to be configured without DMA (for low-use
UARTs)
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
74f4d5a3c9
|
HAL_ChibiOS: push MPU6500 to 4MHz on mindpx-v2
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
fa68210210
|
HAL_ChibiOS: fixed build with older compilers
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
626632989e
|
HAL_ChibiOS: fixed build for boards with no USB
|
2018-02-07 20:33:45 +11:00 |
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
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
aae1cc22f4
|
HAL_ChibiOS: updated USB device strings
use defaults or add in serial number
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
4b8bde746e
|
HAL_ChibiOS: improved default USB strings
use board name and serial number to make IDs unique
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
1aa6a0068a
|
HAL_ChibiOS: fixed order of I2C DMA
this was harmless, but confusing for debugging
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
111e5b6268
|
HAL_ChibiOS: change USB ID for revo-mini
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
bc49c0d2c5
|
HAL_ChibiOS: make hwdef.h the same on python2 and python3
and output to /tmp by default to prevent accidental use of old hwdef.h
in the build
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
077aa24c6d
|
HAL_ChibiOS: add more pins for revo-mini port
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
e91144cc8e
|
HAL_ChibiOS: allow for empty UART drivers
allows for boards with no default GPS port
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
e0212ebe85
|
HAL_ChibiOS: cope with ETR timer channels
trean the ETR capability as a separate AF
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
c1df2a8a4b
|
HAL_ChibiOS: cope with timers 10 and later
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
19e1349d0a
|
HAL_ChibiOS: setup serial5 for fmuv3 ESP8266
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
560948dc69
|
HAL_ChibiOS: fixed GPIOs for ESP8266 port
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
fa96e23552
|
HAL_ChibiOS: setup correct volt and current pins
use hwdef.dat to specify battery pins
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
29add8a880
|
HAL_ChibiOS: fixed build without FATFS enabled
|
2018-02-07 20:33:45 +11:00 |
Siddharth Purohit
|
77f8acd7a1
|
HAL_ChibiOS: add CAN to supported peripherals list
|
2018-02-07 20:33:45 +11:00 |
Siddharth Purohit
|
6f21c1583f
|
HAL_ChibiOS: add definitions to support uavcan in fmuv3
|
2018-02-07 20:33:45 +11:00 |
Siddharth Purohit
|
143686f70d
|
HAL_ChibiOS: add placeholder cstdio header
|
2018-02-07 20:33:45 +11:00 |
Siddharth Purohit
|
539d5adc13
|
hwdef: add more posix methods
|
2018-02-07 20:33:45 +11:00 |
Siddharth Purohit
|
288f6b1fa0
|
HAL_ChibiOS: add chibios cpp wrapers, libuavcan's stm32 driver uses it
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
b0d0ee1f01
|
HAL_ChibiOS: reformat using yapf and support python3
allow hwdef.h compilation using python3
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
67e0ba22fe
|
HAL_ChibiOS: fixed some errors in F405 tables
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
890d322b47
|
HAL_ChibiOS: starting on mini-pix hwdef.dat
for RadioLink mini-pix board
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
713006bb1d
|
HAL_ChibiOS: allow more OTG defines to be overridden
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
1fb257a35a
|
HAL_ChibiOS: initial hwdef.dat for revo mini
|
2018-02-07 20:33:45 +11:00 |
proficnc
|
c613c0bde2
|
added the cube red hardware definition
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
a5bafb399f
|
HAL_ChibiOS: adjust SPI pin speeds
|
2018-02-07 20:33:45 +11:00 |
Andrew Tridgell
|
7b251c9739
|
HAL_ChibiOS: lower FRAM CS speed to 2MHz
this matches old firmware
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
30fd2da108
|
HAL_ChibiOS: enable RTSCTS and SBUS_OUT
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
88f11f5a50
|
HAL_ChibiOS: added HAL_I2C_BUS_BASE
this allows fmuv4 to start at bus 1
|
2018-01-20 17:40:07 +11:00 |
bugobliterator
|
c60c0b8ab1
|
HAL_ChibiOS: fix undef line processing
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
613d7a47ba
|
HAL_ChibiOS: support RCIN on mindpx-v2
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
f50f427a59
|
HAL_ChibiOS: added comment on beta fmuv4 board
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
743806116d
|
HAL_ChibiOS: removed unusued ppm driver
now uses AP_RCProtocol
|
2018-01-20 17:40:07 +11:00 |
bugobliterator
|
1db1ff799e
|
HAL_ChibiOS: modify hwdef scripts to setup for generic RCIN
|
2018-01-20 17:40:07 +11:00 |
bugobliterator
|
1970d8a2c8
|
HAL_ChibiOS: use common RCIN pin for fmuv4
|
2018-01-20 17:40:07 +11:00 |
bugobliterator
|
445ba6ed39
|
HAL_ChibiOS: update ppm to use Extended ICU driver
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
25f13ed518
|
HAL_Chibios: adjust MPU9250 clock speed down
this helps with fast sampling enabled
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
7e44b06440
|
HAL_ChibiOS: adjust SPI clock rates on FMUv4
this prevents some timing errors on the IMUs
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
dd59a5ff57
|
HAL_ChibiOS: adjust external bus clock for mpu9250
this fixes an issue with fast sampling on the PH2.1 cube
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
c863681849
|
HAL_ChibiOS: fixed PWM output assignment
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
82c6d2751f
|
HAL_ChibiOS: fixed F412 ram and flash setup
|
2018-01-20 17:40:07 +11:00 |
Peter Barker
|
67bed1d6c2
|
HAL_ChibiOS: added support for Sparky2 STM23F405 board
|
2018-01-20 17:40:07 +11:00 |
Andrew Tridgell
|
f6138e3c91
|
HAL_ChibiOS: use calloc in preferance to malloc
|
2018-01-17 11:22:05 +11:00 |
Andrew Tridgell
|
7ca3b56886
|
HAL_ChibiOS: fixed STM32F405 typos
|
2018-01-16 09:46:30 +11:00 |
Andrew Tridgell
|
e120e912f1
|
HAL_ChibiOS: moved board defines to hwdef.dat
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
e2a65c8c60
|
HAL_ChibiOS: added support for AP_Terrain for ChibiOS
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
cde930f5c8
|
HAL_ChibiOS: added skyviper-v2450 hwdef config
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
c8beddf1e4
|
HAL_ChibiOS: allow for includes in hwdef.dat files
this allows creation of derived boards
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
2929b3dbb1
|
HAL_ChibiOS: allow builds on systems with no SDIO
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
7b0eccc309
|
HAL_ChibiOS: updated skyviper-f412 hwdef.dat
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
60a773d045
|
HAL_ChibiOS: removed duplicate defines
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
ef1a14cc6c
|
HAL_ChibiOS: fixed 5V analog scale on fmuv4 and mindpx-v2
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
867e7ebf71
|
HAL_ChibiOS: auto-generate GPIO table from hwdef.dat
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
fbe8166c71
|
HAL_ChibiOS: auto-generate AnalogIn pin table
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
f14a847b97
|
HAL_ChibiOS: rename classes to remove 'Chibi'
it is redundent as all classes are in ChibiOS namespace, and makes the
code harder to read
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
25b68dc150
|
HAL_ChibiOS: switch base freq when needed
timers can't do below 123 Hz with a clock of 8MHz, so we need to
change clock frequency based on the target period
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
738d70ef02
|
HAL_ChibOS: fixed handling of disabled channels
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
2978649cd4
|
waf: moved to generated loader script
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
6e4ef32628
|
HAL_ChibiOS: moved to generated loader script
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
9482ab1840
|
waf: use common makefile for ChibiOS if no custom present
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
bae9469af7
|
HAL_ChibiOS: use a common makefile and board.c
allow for custom files per board if supplied, but don't require them
for every board
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
c639708e22
|
HAL_ChibOS: auto-generate full PWM config
use PWM markers in hwdef.dat to mark each PWM channel
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
daa9eec836
|
HAL_ChibiOS: auto-configure timer channels
allow for one marked PPMIN for input
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
d65ec2ada7
|
HAL_ChibiOS: moved more headers to common
allow customisation, but don't require every port to copy the defaults
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
960bc40ff3
|
HAL_ChibiOS: moved to a common mcuconf.h
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
48d2704cf4
|
HAL_ChibiOS: CS pins don't need to be a single SPI BUS
its possible to use a CS pin on different buses, so they should not
have a particular bus tag
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
a554215576
|
HAL_ChibiOS: start to cope with not having I2C, SPI and UARTs
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
468cadca45
|
HAL_ChibiOS: auto-generate UART driver declarations
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
58796ff435
|
HAL_Chibios: moved SPI device tables to hwdef.dat
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
d1f93cd66c
|
HAL_Chibios: auto-generate I2C, SPI and UART device lists
this is less error prone and make a port faster as more information is
in hwdef.dat
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
280140bf25
|
HAL_ChibiOS: added support for MindPX-v2
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
9f5e01d20a
|
HAL_Chibios: fixed FMUv4 compasses
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
2646b9ef33
|
HAL_Chibios: matched debug port speed to NuttX
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
41be81af34
|
HAL_Chibios: added hardware flow control for UARTs
implement RTS in software and CTS in hardware
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
9916a93919
|
HAL_ChibiOS: fixed I2C device list
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
f135e73e04
|
HAL_ChibiOS: F412 doesn't have CCM ram
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
c3435e45c5
|
HAL_ChibiOS: initial port to FMUv4
|
2018-01-15 11:46:02 +11:00 |
bugobliterator
|
5feef04f5f
|
HAL_ChibiOS: add support for CCM memory
this uses DMA bounce buffers for bus transfers, and falls back to CCM
ram in allocations if the type is unspecified
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
4b5e617673
|
HAL_ChibiOS: added missing DMA table for STM32F405
|
2018-01-15 11:46:02 +11:00 |
Peter Barker
|
f3d46506b0
|
AP_HAL_Chibios: warning fixes
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
aa2175ec0c
|
HAL_ChibiOS: show ADC1 channels in hwdef.h
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
5a7e2f75d1
|
HAL_ChibiOS: added ADC1_Map to STM32 tables
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
86fbdcd060
|
HAL_ChibiOS: ensure malloc returns zeroed memory
|
2018-01-15 11:46:02 +11:00 |
Andrew Tridgell
|
8b6bab7b17
|
HAL_Chibios: added ChibiOS HAL
this is based on initial work by Sid, reset here for easier merging
|
2018-01-15 11:46:02 +11:00 |