aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* lpc176x: Update code to use armcm_boot mechanismKevin O'Connor2019-08-229-41/+37
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Move irq handler code above irq setupKevin O'Connor2019-08-223-75/+80
| | | | | | Only code movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Update code to use armcm_boot mechanismKevin O'Connor2019-08-225-46/+56
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Move irq handler code above irq setupKevin O'Connor2019-08-223-65/+65
| | | | | | Only code movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsamd: Update code to use armcm_boot mechanismKevin O'Connor2019-08-227-129/+28
| | | | | | | Replace the custom linker scripts with the src/generic/armcm_boot.c mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsamd: Move irq handler code above irq setupKevin O'Connor2019-08-223-85/+90
| | | | | | Only code movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Update code to use armcm_boot mechanismKevin O'Connor2019-08-227-111/+24
| | | | | | | Replace the stm32 provided assembler with the src/generic/armcm_boot.c mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Move irq handler code above irq setupKevin O'Connor2019-08-223-88/+88
| | | | | | Only code movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Add generic code for early board init on armcm machinesKevin O'Connor2019-08-224-0/+158
| | | | | | | | Add basic ARM Cortex-M C init code and build linker scripts to src/generic/ code. This can be used to simplify the various ARM board code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Makefile: Add generic rule for precompiling linker scriptsKevin O'Connor2019-08-212-18/+8
| | | | | | | Add a general build rule to precompile *.lds.S files to *.ld files. Remove the custom rules in src/atsamd/Makefile and src/stm32/Makefile. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_timer: Fix typo in comment in armcm_timer.hKevin O'Connor2019-08-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Initial support for i2cKevin O'Connor2019-08-204-0/+138
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for configuring open drain output modeKevin O'Connor2019-08-203-2/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Make sure to enable the gpio clock prior to setting the first valueKevin O'Connor2019-08-204-4/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_software: Remove unused include fileKevin O'Connor2019-08-171-1/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify usbotg packet reading and writingKevin O'Connor2019-08-161-57/+54
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for additional ADC3 ports on stm32f4Kevin O'Connor2019-08-152-20/+42
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Initial support for USB On-The-Go (OTG) driver on stm32f4Kevin O'Connor2019-08-153-3/+411
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Enable 48Mhz USB clock on stm32f446Kevin O'Connor2019-08-141-0/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_st7920: Add brief delay around gpio toggle calls on fast MCUsKevin O'Connor2019-08-101-0/+20
| | | | | | | | | On fast MCUs (like the SAMD51) it is possible for the gpio to toggle faster than the st7920 can accept. Add a small delay around the clock rise signal. Signed-off-by: Lars R. Hansen <popshansen@hotmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for the 32KiB bootloader on the SKR ProKevin O'Connor2019-08-091-3/+6
| | | | | Signed-off-by: Gerrit Sturm <gsturm16@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add serial USART serial port option for port PD9/PD8Kevin O'Connor2019-08-092-0/+10
| | | | | Signed-off-by: Gerrit Sturm <gsturm16@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Rework timing so that it works on AVR micro-controllersKevin O'Connor2019-08-071-61/+99
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix memory sizing for STM32F405/7 chipsKevin O'Connor2019-08-061-4/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spicmds: Rework spi config commandsKevin O'Connor2019-08-067-81/+86
| | | | | | | | | | Rework the spi_config commands so that bus configuration and shutdown message configuration is done separately from the main "config_spi" command. This makes the spi configuration more flexible. It's now possible to use software spi without a CS pin. It's now possible to define multiple SPI messages to send on a shutdown event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Automatically disable SWD if PA13/PA14 is used on stm32f103Kevin O'Connor2019-08-051-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f1: Remove now unused src/stm32f1/ directoryKevin O'Connor2019-08-0511-1138/+0
| | | | | | | Now that the stm32f1 code has been merged into the stm32 code, there is no longer a need to keep the stm32f1/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Rename clock.c to stm32f4.cKevin O'Connor2019-08-052-1/+1
| | | | | | | Rename the clock.c file to stm32f4.c to make it more clear that the code is specific to the stm32f4 chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Rename stm32f4/ directory to stm32/Kevin O'Connor2019-08-0516-93/+90
| | | | | | | Now that the code in stm32f4/ can handle both stm32f1 and stm32f4 chips, rename the directory to just "stm32". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for USB on stm32f103Kevin O'Connor2019-08-054-0/+340
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for STM32F103Kevin O'Connor2019-08-057-17/+191
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Allow the USART serial port to be configuredKevin O'Connor2019-07-282-15/+54
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Make using the internal clock source a low level optionKevin O'Connor2019-07-282-7/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for full range of GPIO pinsKevin O'Connor2019-07-283-30/+44
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Only enable peripherals onceKevin O'Connor2019-07-284-13/+35
| | | | | | | Add is_enabled_pclock() and only initialize spi and adc once during configuration. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Encode mode/func into single parameter of gpio_peripheralKevin O'Connor2019-07-285-12/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_timer: Improve comments on wrap_timer codeKevin O'Connor2019-07-271-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Automatically calculate dynmem start/endKevin O'Connor2019-07-272-2/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add Kconfig build rules for STM32F405/7Kevin O'Connor2019-07-277-125/+146
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for SPIKevin O'Connor2019-07-274-0/+69
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for ADCKevin O'Connor2019-07-274-0/+99
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for watchdogKevin O'Connor2019-07-262-1/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Improve serial baud rate calculationKevin O'Connor2019-07-261-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for external 8Mhz crystalKevin O'Connor2019-07-262-5/+23
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for GPIOKevin O'Connor2019-07-253-0/+133
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add initial support for STM32F446 chipKevin O'Connor2019-07-259-0/+384
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsamd: Fix comment typo in serial.cKevin O'Connor2019-07-251-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* initial_pins: Only build when CONFIG_HAVE_GPIO is enabledKevin O'Connor2019-07-241-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_timer: Support micro-controllers faster than 160MhzKevin O'Connor2019-07-241-0/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Update to more flexible bit-banging timingKevin O'Connor2019-07-231-20/+38
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>