aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib: update lib/stm32h7 to v1.9.0 for stm32h723bigtreetech2022-12-0223-401/+149374
| | | | Signed-off-by: Chen.BJ from BigTreeTech chenbj@biqu3d.com
* stm32g4: add lib from stm32cubeg4 v1.4.0Matt Baker2022-12-0214-0/+147028
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* lib: Update to latest can2040 codeKevin O'Connor2022-11-232-1/+3
| | | | | | | Clear PIO irq flags in pio_sm_setup() Set TXPENDING during pio_sm_setup() Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update to latest can2040 codeKevin O'Connor2022-11-212-62/+76
| | | | | | | | | | Fix PIO "sync" register overflow check Reduce latency of tx scheduling Clear ackdone irq from report_note_eof_success() Defer ack inject until after rx fifo drained Improve passive/dominant bit conflict check on tx reschedule Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update to latest can2040 codeKevin O'Connor2022-11-193-82/+99
| | | | | | | | | | | | Minor comment change to unstuf_pull_bits() Introduce unstuf_get_raw() helper function Move crc stuffed bit calculation to data_state_go_crc() Restore stuffed_bits state on missing ack Use a single pio_irq_set() function Reschedule tx if previous tx unexpectedly finished transmit Simplify report_state handling Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update to latest can2040 codeKevin O'Connor2022-10-132-33/+42
| | | | | | | | | | | Fix gpio function selection for PIO1 usage. Minor variable name changes. Allow scheduling tx "matched" event after a crc match. Allow for up to 5 passive bits after unstuf_clear_state(). Pause PIO "rx" bit reception after 10 passive bits. Signal the CPU to process data every 10 read bits. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add atmel same51 and same54 build definitionsKevin O'Connor2022-10-13128-737/+43710
| | | | | | | This also replaces the samd51 component files with the definitions from the same54 repository. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Remove unused gcc/ directories from samd21 and samd51 directoriesKevin O'Connor2022-10-132-128/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32l4: add stm32l412 support with adc,i2c,spi,usbMatt Baker2022-09-151-0/+5
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* stm32l4: copy libs from STM32CubeL4 v1.17.0Matt Baker2022-09-1528-0/+451257
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* lib: Update to latest can2040 codeKevin O'Connor2022-07-163-120/+134
| | | | | | Simplify tx state tracking. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update to the latest can2040 codeKevin O'Connor2022-07-163-80/+95
| | | | | | | | | | Rename to "match" state machine instead of "ack". Minor simplification to tx_note_crc_start(). Call pio_match_clear() from report functions. Add pio_match_calc_key() helper function. Raise irq after 6 passive eof bits for faster rx message notification. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add can2040 codeKevin O'Connor2022-07-063-0/+1312
| | | | | | | The "can2040" project implements "software canbus" support on rp2040 micro-controllers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Add a Kconfig option for selecting "generic_03H" flash typeKevin O'Connor2022-06-202-1/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update lib/README with latest canboot changesKevin O'Connor2022-06-031-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_can: add usb supportEric Callahan2022-06-031-10/+81
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* 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>