aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* docs: Minor CanBoot documentation fixesKevin O'Connor2022-05-101-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: add flash_can.pyEric Callahan2022-05-102-0/+559
| | | | | | | This script may be used to update Klipper firmware for CAN nodes running the CanBoot bootloader. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* lib: Add Atmel SAM E70 headersAlex Maclean2022-03-26127-0/+77351
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* rp2040: add make flash supportLasse Dalegaard2022-01-068-0/+1074
| | | | | | | | | | | | | | | | This adds `make flash` support for the rp2040 target. Flashing is performed using a custom `rp2040_flash` tool that uses the PICOBOOT protocol. Root is not required. The user specifies the serial device of the rp2040 they wish to flash as the device. This device is reset into bootsel mode and `rp2040_flash` is invoked on the original USB device path. If the device is already in bootloader mode, the user can specify 'first' as `FLASH_DEVICE` which will simply invoke `rp2040_flash` with no bus/address options. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* lib: Add cmsis libraries for stm32g0Kevin O'Connor2021-12-2315-0/+106364
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Added cmsis libraries for stm32h7D4SK2021-10-0618-0/+357394
| | | | | Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Updated existing cmsis-core for stm32h7 supportD4SK2021-10-0611-260/+3366
| | | | | Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update stm32f4 to use upstream github sourceKevin O'Connor2021-09-0227-323368/+323369
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update stm32f2 to use upstream github sourceKevin O'Connor2021-09-021-3/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update stm32f1 to use upstream github sourceKevin O'Connor2021-09-0218-123835/+123836
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update stm32f0 to use upstream github sourceKevin O'Connor2021-09-0220-128778/+128779
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Changes to rp2040 build files to work in Klipper build systemKevin O'Connor2021-07-044-3/+35
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add rp2040 build filesKevin O'Connor2021-07-0488-0/+58874
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Use full peripheral clock speed; fix UART interfaceKevin O'Connor2021-05-042-6/+11
| | | | | | | | | | | Commit ae89a659 caused a regression in the lpc176x UART handling. After that commit the UART clock divisor would need to be 6.25 on lpc1768 or 7.5 on lpc1769, but the code only supports whole numbers. Set the PCLKSELx registers at startup and return to using full speed peripheral clocks. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: add FatFS notes to READMEArksine2021-02-051-0/+8
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* lib: add FatFS library filesArksine2021-02-057-0/+23458
| | | | | | FatFS is an open source filesystem library supporting FAT12, FAT16, FAT32, and exFAT. The source is available at http://elm-chan.org/fsw/ff/00index_e.html Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* kconfiglib: Update README with info on kconfiglib modificationsKevin O'Connor2020-11-232-1/+150
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kconfiglib: Update menuconfig.py with simpler menu layoutKevin O'Connor2020-11-231-20/+23
| | | | | | | Remove infrequently used menu options (custom file loading/saving and developer modes). Simplify the help screen. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kconfiglib: Update kconfiglib.py to always emit symbolsKevin O'Connor2020-11-231-2/+7
| | | | | | Emit all symbols (even ones disabled) to the autoconf.h header file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add kconfiglib codeKevin O'Connor2020-11-236-0/+10629
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add a .gitignore file for intermediate files in lib/ directoryKevin O'Connor2020-08-211-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Fix whitespace in READMEKevin O'Connor2020-08-091-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Improvements to CAN bus ID generation. And added a small fast hash ↵bondus2020-08-093-0/+135
| | | | | | | | library (#3165) Improved CAM bus ID generation, there were issues with ID collisions. Added a small fast hash library. Signed-off-by: Pontus Borg <liquidpontus@yahoo.se>
* stm32: Initial support for stm32f2 (#3001)combolek2020-06-238-0/+58607
| | | | | | | Initial support for stm32f2 in general and STM32F207 in particular. Boots up and communicates on STM32F207VC. Signed-off-by: Boleslaw Ciesielski <combolek@users.noreply.github.com>
* lib: Add info on hidflash to README.mdKevin O'Connor2020-05-281-0/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hidflash: Convert changes.diff to a unix style fileKevin O'Connor2020-05-281-0/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hidflash: Add diff file with changes from original sourceArksine2020-05-281-0/+0
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* lib: Add hidflash sourceArksine2020-05-2810-0/+4733
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* stm32f0: Remove hal based stm32f0 implementationEug Krashtan2020-01-14161-258859/+0
| | | | | Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add a copy of stm32f0 cmsis files from v1.10.0Kevin O'Connor2019-10-2320-0/+128779
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: No need to make lpc176x SystemInit() externally visibleKevin O'Connor2019-09-063-13/+3
| | | | | | | Now that the lpc176x code uses the armcm_boot mechanism, it is no longer necessary for SystemInit to be externally visible. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: It is no longer necessary to modify the stm32f1 codeKevin O'Connor2019-09-063-16/+2
| | | | | | | Now that the stm32f1 code uses the armcm_boot mechanism, it is no longer necessary for SystemInit to be externally visible. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: It is no longer necessary to modify the stm32f4 codeKevin O'Connor2019-09-063-16/+2
| | | | | | | Now that the stm32f4 code uses the armcm_boot mechanism, it is no longer necessary for SystemInit to be externally visible. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Remove now unused ARM Cortex-M linker scripts and boot assemblyKevin O'Connor2019-09-06152-29899/+6
| | | | | | | Remove the unused files for those boards converted to use the armcm_boot mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Remove unused stm32f1 "hal" codeKevin O'Connor2019-08-05131-140936/+1
| | | | | | | Now that the stm32f1 code has been merged into the stm32 code, there is no longer a need to use the upstream stm32f1 "hal" code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update stm32f4 code to support gcc -fwhole-programKevin O'Connor2019-07-253-2/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add stm32f4 cmsis filesKevin O'Connor2019-07-2550-0/+335323
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update stm32f1 code to version 1.8.0Kevin O'Connor2019-07-21194-83670/+90750
| | | | | | | | | 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>
* lib: Add stm32f0 hal and cmsis filesKevin O'Connor2019-03-24161-0/+258859
| | | | | Signed-off-by: Eugene Krashtan <Eugene.Krashtan@opensynergy.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add cmsis-core/core_cm0.h headerKevin O'Connor2019-03-241-0/+888
| | | | | | Add cmsis-core cm0 header support in preparation for stm32f0. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Remove samd21/samd51 customizations that are no longer necessaryKevin O'Connor2019-03-018-77/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update samd51 to work with gcc and bootloadersKevin O'Connor2019-01-287-6/+76
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add Atmel SAMD51 cmsis filesKevin O'Connor2019-01-28136-0/+64996
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Fix sam4e.patch name in READMEKevin O'Connor2019-01-071-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update sam4s code so that it works with gcc's -flto featureKevin O'Connor2019-01-073-2/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add sam4s cmsis headersKevin O'Connor2019-01-07131-0/+26511
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Rename lib/cmsis-sam4e/ to lib/sam4e/Kevin O'Connor2019-01-0794-13/+14
| | | | | | This is in preparation for merging the sam3 and sam4 code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Remove sam4e sam.h and component-version.h filesKevin O'Connor2019-01-072-132/+0
| | | | | | | | These two files from atmel have different licenses than the other files. Neither files provide any real value, so just remove them to avoid any confusion. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f1: Use the main lib/cmsis-core directory for cmsis includesKevin O'Connor2018-10-114-3310/+0
| | | | | | Use the main cmsis header files with stm32f1. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Remove pjrc_usb_serialKevin O'Connor2018-09-304-1187/+1
| | | | | | The pjrc_usb_serial is no longer used. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>