aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib: Update can2040 to v1.7.0Kevin O'Connor2025-01-102-12/+119
| | | | | | This provides improved support on rp2350 chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: fix rp2040_flash (#6760)BIGTREETECH2024-12-061-1/+1
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* lib: Update rp2040_flash code to support rp2350 rebootKevin O'Connor2024-11-141-5/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update rp2040_flash to upstream picotool.git v2.0.0Kevin O'Connor2024-11-149-78/+877
| | | | | | This is in preparation for adding rp2350 flash support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add cortex-m33 support files to lib/cmsis-core/Kevin O'Connor2024-11-132-0/+3616
| | | | | | This is in preparation for adding support for rp2350 mcus. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add rp2350 files to pico-sdkKevin O'Connor2024-11-13107-0/+128556
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update can2040 to support v2.0.0 of pico-sdkKevin O'Connor2024-11-132-10/+10
| | | | | | | A new version of can2040 is needed due to changes in the 2.0.0 release of the pico-sdk. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update lib/rp2040 to v2.0.0 SDK releaseKevin O'Connor2024-11-13138-8303/+13348
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Move lib/rp2040/elf2uf2 to lib/elf2uf2Kevin O'Connor2024-11-133-0/+5
| | | | | | | | Recent versions of the rp2040 sdk no longer contain the elf2uf2 tool. So, move that code to a new dedicated directory. This is in preparation for updating the rp2040 sdk version. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: BeagleBone Firmware upgrade to Debian 11.7 Bullseye (#6577)Oleg Gavavka2024-04-2714-2445/+127
| | | | | | | | | | | | | | | * Porting BeagleBone to Kernel 5.10 * Fixing issue with installation for BeagleBone. This fix resolve 2 issue: 1. Conflict with AVR packages. 2. "klipper_pru" script is executed before PRU cores are ready * Adding additional steps to BeagleBone install guide. * Updating BeagleBone documentation, adding different use cases, adding buses configurations SPI, I2C, CAN, UART Signed-off-by: Oleg Gavavka <work@datalink.net.ua>
* lib: Update to latest can2040 codeKevin O'Connor2023-10-033-27/+82
| | | | | | | | | | Add support for can2040_stop() Add data_state_go_error() helper Add new can2040_get_statistics() API function Call report_note_discarding() after setting MS_DISCARD state Convert report_is_rx_eof_pending() to report_is_not_in_tx() Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040_flash: Fix the type when printing num_blocks (#6279)Martin Botka2023-07-271-1/+1
| | | | | | | | | image->num_blocks is of type unsigned size_t thus unsigned int or unsigned long int. %lu specifies a type of long unsigned int. Thus resulting in compiler warning about type mismatch on some systems. Fix this by printing the value with length modified z. Signed-off-by: Martin Botka <martin.botka@somainline.org>
* samc21: Fix CAN RAM base addressAlex Maclean2023-07-164-3/+31
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* stm32f7: add support for stm32f7 and remram boardFrederic Morin2023-05-0718-0/+247617
| | | | Signed-off-by: Frederic Morin <frederic.morin.8@gmail.com>
* lib: Update to latest can2040 codeKevin O'Connor2023-05-031-26/+39
| | | | | | | | | | Disable tx state machine before resetting it Check for rx message with same id as tx but different payload Do not use canrx line to alter bit timing of cantx line Improve bit time synchronization with slow transmitters Implement tx synchronization to faster transmitters Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Add Atmel SAM C21 headersWulfsta2023-05-01107-0/+49462
| | | | Signed-off-by: Luke Vuksta <wulfstawulfsta@gmail.com>
* lib: Update to latest can2040 codeKevin O'Connor2023-04-291-1/+1
| | | | | | Fix tx hang after error frame during tx Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update to latest can2040 codeKevin O'Connor2023-04-112-13/+21
| | | | | | | | | Avoid some gcc warnings by using uint32_t for iterators Better document the fallthough case statement in crc_bytes() Fix txpending race from report_line_ackdone() Make can2040_transmit() multi-cpu atomic Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for Nation N32G45x mcus (#6116)Alexey2023-04-073-0/+546
| | | | | N32G452/G455 are mostly compatible with STM32F103 but have M4 core and different ADC. Signed-off-by: Alexey Golyshin <stas2z@gmail.com>
* ar100: Support for ar100 (#6054)Elias Bakken2023-02-205-0/+2867
| | | | | Add files to support AR100 Signed-off-by: Elias Bakken <elias@iagent.no>
* lib: Add hc32f460 definitionsSteven Gotthardt2023-02-1387-0/+80723
| | | | Signed-off-by: Steven Gotthardt <gotthardt@gmail.com>
* 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>