1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00
Commit graph

10 commits

Author SHA1 Message Date
Dominic Clifton
d19a5e7046 Cleanup project structure. Update unit test Makefile to place object
files in obj/test
2014-05-31 22:43:06 +01:00
Dominic Clifton
4f88ff1054 Cleanup accreditation and FIXMEs for uart drivers. 2014-05-22 10:02:35 +01:00
Dominic Clifton
c4ad7402ca STM32F303 - Clear USART overrun flag if it gets set to prevent CPU usage
hog when using the debugger - no other real-world impact was observed.
2014-05-15 16:58:56 +01:00
Dominic Clifton
eeb13b427d CHEBUZZF3 - Cleanup USART irq handler. Disable UART2 DMA for now. 2014-05-10 16:40:02 +01:00
Dominic Clifton
1777d8feda First cut of configurable serial port functionality.
Currently port usage is hard-coded to the default port layout, cli
commands are coming in a future commit.

This decouples all code from the global 'serialPorts' structure which
has been removed.  Any code that needs to use a serial port can use
findOpenSerialPort() and openSerialPort() and maintain it's own
reference to the port.

Ports can switch between functions.  e.g. by default
cli/msp/telemetry/gps
passthrough all use USART1.  Each port maintains it's current function.
see begin/endSerialPortFunction.

There are only certain combinations of serial port functions that are
supported, these are listed in serialPortFunctionScenario_e.

This commit also adds a few 'static' keywords to variables that should
have been.

There a a few other minor fixes and tweaks to various bits of code that
this uncovered too.
2014-05-09 23:39:10 +01:00
Dominic Clifton
9a3c922efc STM32F30x - de-duplicate common uart code. 2014-05-02 21:19:19 +01:00
Dominic Clifton
ef06d438e4 STM32F30x - Use USART2 non-DMA RX. This enables the use of serial-rx. 2014-05-02 19:56:40 +01:00
Dominic Clifton
9b84d47d33 STM32F30x - Enable USART2 (not for serialRx)
Since it uses DMA to receive it means that serialRx is broken because
the RX callback function is only used when DMA is NOT used.

Currently only serialRx uses USART callbacks.

Attempting to disable RX DMA didn't work, the USART2 IRQ handler is
never called.
2014-05-02 18:39:03 +01:00
Dominic Clifton
8d9ce86a5a get GPIO and USART ports working.
The STM32F3DISCOVERY board would crash when setting GPIOA Pin_13 or
Pin_14 to analog mode so they are excluded in the gpio initialisation.

The USART GPIO configuration did not work when using the F10x code.  The
USART status and DMA registers are different too.
2014-04-25 15:19:28 +01:00
Dominic Clifton
0598704872 First commit of port to STM32F3DISCOVERY board.
work-in-progress, it does compile and run though but hangs early on in
main() because of unimplemented features.
2014-04-25 01:09:19 +01:00