aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* lib: Update stm32f1 code to version 1.8.0Kevin O'Connor2019-07-212-11/+6
| | | | | | | | | Update the stm32f1 code to the latest from ST. Merge the lib/cmsis-stm32f1/ and lib/hal-stm32f1/ into a single lib/stm32f1/ directory. Document all the differences from the pristine upstream code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f0: Remove trailing tab from MakefileKevin O'Connor2019-07-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Improve timing of gpio bit-bangingKevin O'Connor2019-07-171-39/+43
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Be sure to set the line low on a failed writeKevin O'Connor2019-07-131-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Optimize the update loopKevin O'Connor2019-07-121-41/+37
| | | | | | Optimize the transmit code so it can run on some slower ARM cpus. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Add initial support for "neopixel" ledsKevin O'Connor2019-07-122-1/+115
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop: Rename mcu end_stop commands to endstopKevin O'Connor2019-07-121-35/+35
| | | | | | | | | Rename the commands. The main reason for this change is to force a micro-controller code updated (due to important bugfix in 7fefe52d). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Don't update SF_LAST_DIR if SF_NEED_RESETKevin O'Connor2019-07-121-1/+3
| | | | | | | | If the move is not added to the move queue, then the SF_LAST_DIR setting must not be changed. Otherwise, it could result in an incorrect direction being set on the stepper after a homing operation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Reset LPC_UART0->FDR when using serialKevin O'Connor2019-07-101-0/+1
| | | | | | | | | | The popular "LPC17xx-DFU-Bootloader" alters the LPC_UART0->FDR register, so be sure to reset it back to its default when using serial in Klipper. Reported by @b-vs. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buttons: initialize mcu buttons based on inverted stateArksine2019-07-051-2/+3
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* lpc176x: Add more filtering to workaround adc hardware defectKevin O'Connor2019-06-201-1/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Fix adc clock divisorKevin O'Connor2019-06-191-2/+2
| | | | | | | | Commit 1096075d changed CONFIG_CLOCK_FREQ to the actual cpu frequency, but that commit failed to update adc.c accordingly. That made the adc run 4 times slower. Make the corresponding change to adc.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_timer: Unify udelay() implementationKevin O'Connor2019-06-0910-42/+24
| | | | | | | Move the udelay() code from various arm board directories into the src/generic/armcm_timer.c code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Add support for "timer" controlled hardware pwm pinsKevin O'Connor2019-06-022-8/+145
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>