summaryrefslogtreecommitdiff
path: root/src/stm32f4
Commit message (Collapse)AuthorAge
* altos/stm32f4: Working on USBKeith Packard2019-03-18
| | | | | | Reset now works, still no packets Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Wrong value for CK48MSEL_PLL_QKeith Packard2019-03-18
| | | | | | This meant that the USB clock wasn't actually getting started... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Need to read-back register after clock enableKeith Packard2019-03-18
| | | | | | | This was reported as necessary; I have no idea, but it's not expensive, so why not... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add -mfloat-abi=hard compile optionKeith Packard2019-03-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move common build definitions to src/Makefile.defsKeith Packard2019-02-18
| | | | | | | | This cleans up the build process for all architectures, providing a common place to specify vpath, cflags and build rules for various common files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Declare task stack as union of uint8_t and uint32_tKeith Packard2019-02-18
| | | | | | | Support -Wcast-align and -Wpointer-arith while still allowing architectures to pick whether they want an 8-bit or 32-bit stack. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add start of stm32f413 USB supportKeith Packard2018-10-13
| | | | | | This code doesn't work yet. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add stm32f413 USART supportKeith Packard2018-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add external interrupt bitsKeith Packard2018-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add more stm32f413 definitions and support codeKeith Packard2018-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up AO_ROMCONFIG bitsKeith Packard2018-10-13
| | | | | | | Remove address parameter (doesn't work with gcc), create shared ao_romconfig in kernel. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Place ARM.exidx sections after .textKeith Packard2018-10-13
| | | | | | | This makes the linker happy about not attempting to merge unordered and ordered stuff (whatever that means...) Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Use full printf/scanf (including floats)Keith Packard2018-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add usart driver for usart6Keith Packard2018-10-13
| | | | | | This is what the disco board hooks up. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Align stack to 8 bytesKeith Packard2018-10-13
| | | | | | This makes sure that doubles are aligned properly when passed on the stack. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add generic LED driver.Keith Packard2018-10-13
| | | | | | | | | | | This driver uses the generic GPIO functions and allows per-LED port and pin configuration. It supports up to 32 LEDs. Rename SoC-specific LED drivers. Remove enabled parameter to ao_led_init Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Fix clock configurationKeith Packard2018-10-13
| | | | | | | | | | | Was running the PLL input too slow (it wants 2MHz). Was configuring the PLL_P factor wrong (needs magic values, not P value) Set up clock debugging for PA8 and PC9 output. Enable on disco board for debugging. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Start adding support for STM32F413Keith Packard2018-10-13
Enough to get clocks lit up at least. Signed-off-by: Keith Packard <keithp@keithp.com>