summaryrefslogtreecommitdiff
path: root/src/stmf0
Commit message (Collapse)AuthorAge
* altos/stmf0: Have fast ADC ring buffer code use wrap-aroundKeith Packard2015-03-20
| | | | | | | | | Instead of requiring that the whole set of returned values fit precisely in the ring, allow for wrap-around so that we can fetch an odd number of ADC values. The previous version required that the fetch amount always be a factor of the ADC buffer size. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Need ao_exti.h for pin configurationKeith Packard2015-03-07
| | | | | | Flash loader uses pin configuration to set up GPIOs for boot selection Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Allocate USB buffers at startupKeith Packard2015-02-28
| | | | | | | This lets the extra allocations used from ao_usb_alloc_buffers be allocated before the first USB connection happens. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Typo in ao_crc_stm.cKeith Packard2015-02-28
| | | | | | Extra semicolon Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Fix fast ADC interfaceKeith Packard2015-02-28
| | | | | | | This was configuring the hardware wrong, and wasn't keeping the output ring full. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add ao_crc_stm.cKeith Packard2015-02-09
| | | | | | Tom discovered that this was missing Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Support PA11/PA12 remappingKeith Packard2015-02-01
| | | | | | | | Small pin-count versions of the STMF0 can remap PA11/PA12 on the same pins as PA9/PA10. These are used by USB, so have the USB driver deal with remapping them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Re-implement fast ADC code for stmf0Keith Packard2015-01-27
| | | | | | | This creates a ring buffer for ADC data so that ADC fetching can run in parallel with other activities. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add CRC driverKeith Packard2015-01-27
| | | | | | | Sets up the stm32f0 CRC hardware, exposing inline functions to access it. DMA access is possible, but usbtrng can't use that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Remove remaining stm32l bits from stm32f0 codeKeith Packard2015-01-27
| | | | | | | These were left over from the stm32f0 initial implementation work; now it's more useful to list only the bits which are valid. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add ADC and DMA APIsKeith Packard2015-01-26
| | | | | | | The ADC api is what USBtrng wants; a way to repeatedly read a single ADC input as fast as possible. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add faster USB pathKeith Packard2015-01-26
| | | | | | | | This adds a way to allocate private USB buffers for sending data without needing to copy it again. It requires ensuring that all accesses are 16 bits aligned to 16 bit boundaries. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Fix linker scripts to make ao_boot workKeith Packard2015-01-26
| | | | | | | | The flash loader ended up assuming ao_boot was at the start of ram, while the application stuck it after the interrupt table (where it needs to go). Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add self-flash support for STM32F042 processorKeith Packard2015-01-25
| | | | | | | Also moves the usual address for applications out of the way of the flash loader. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Initial STMF04x supportKeith Packard2015-01-25
Basic clock configuration, OS support, LED and USB drivers. Signed-off-by: Keith Packard <keithp@keithp.com>