| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Add support for STM32F031x6 which is the 32 KB version of the STM32F031 MCU.
Add new I2C bus variant.
Signed-off by: Elias Bakken <elias@iagent.no>
|
|
|
|
|
|
|
| |
Explicitly check for sensor warnings during homing and report an error
code back to the host.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
If the INTB line is available it can reduce the MCU load.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
| |
It is not clear if DRDY is cleared during a STATUS read (which could
occur from command_query_ldc1612_status() ). So, just check the
"unread conversion" bit when reading data.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
|
|
|
|
|
|
|
|
| |
Some of the alternate pins defined are routed to FDCAN2 instead of
FDCAN1, this commit uses the correct IRQ register and peripheral
clock enable bit to enable FDCAN on those pins.
Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
|
|
|
|
|
|
| |
Use ADC345_COMMON instead of ADC3_COMMON for stm32g4 ADC3 channel.
Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
|
|
|
| |
Signed-off-by: Donald A. Cupp Jr <doncuppjr@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
Modified serial.c and Kconfig to dynamically select all possible UART combinations for RP2040
Signed-off-by: Hriday Keni <info@amken.us>
|
|
|
| |
Signed-off-by: Phil Timpson <theferalengineer@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
| |
Not all systems (i.e. Nix) repect the standard Linux filesystem hierarchy,
instead relative paths should be used and allowing GCC to rely on it's
builtin search paths.
Signed-off-by: Michael 'ASAP' Weinrich <michael@a5ap.net>
|
|
|
|
| |
Signed-off-by: Robert Cambridge <robert@cambridge.me>
|
|
|
| |
Signed-off-by: Balanuta Simion <simion@fogyamato.dev>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Similar to commit df79893, this allows klipper to use up to
/dev/i2c-14. Similar to before, this limit is arbitrary.
This is required for some other SoCs, which have even
more i2c buses available, e.g. the rk3399:
$ ls -1 /dev/i2c-*
/dev/i2c-0
/dev/i2c-3
/dev/i2c-7
Signed-off-by: Carl Richard Theodor Schneider <dev.github@crtified.me>
|
|
|
| |
Signed-off-by: Guillaume Giraudon <ggiraudon@prism19.com>
|
|
|
| |
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
|
|
|
| |
Signed-off-by: Attila Rakosi <rattila5@hotmail.com>
|
|
|
|
| |
Signed-off-by: Jake Beju <jake.beju@gmail.com>
|
|
|
|
|
|
|
| |
Make sure to disable/enable the peripheral to ensure the clock
polarity is properly set prior to a change in CS.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
| |
Load the interrupt vector table into ram at startup. This reduces the
chance of a flash cache access causing timing instability.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
| |
Place all normal code into ram. This reduces the chance that rp2040
instruction cache misses could cause subtle timing issues.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
Use the rp2040 specific linker script even when using a bootloader.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
| |
Avoid calling memset() and memcpy() prior to copying the ram and
clearing the bss. Also, place both ResetHandler() and
reset_handler_stage_two() in an explicit ".text.armcm_boot" linker
section. These changes make it easier to support targets that want to
run all code in ram.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
| |
- This offset is used by Anycubic Kobra 2 Neo bootloader
Signed-off-by: Jakub Przystasz <jakub.przystasz@gmail.com>
|
|
|
|
|
| |
klipper never uses UCPD (#6462)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
|
|
|
|
|
|
| |
It's simpler and faster to enable the lis2dw in the python code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
It's simpler and faster to enable the mpu9250 in the python code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
It's simpler and faster to enable the adxl345 in the python code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
| |
Refactor the low-level "bulk sensor" management code in the mcu. This
updates the sensor_adxl345.c, sensor_mpu9250.c, sensor_lis2dw.c, and
sensor_angle.c code to use the same "bulk sensor" messages. All of
these sensors will now send "sensor_bulk_data" and
"sensor_bulk_status" messages.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
Simplify the mcu code as any messages are ignored by the host anyway.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
Simplify the mcu code as any messages are ignored by the host anyway.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
Simplify the mcu code as any messages are ignored by the host anyway.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
Simplify the mcu code as any messages are ignored by the host anyway.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move overflow detection from mp9250_stop() to
command_query_mpu9250_status(). Currently the host ignores any
contents returned from a stop request, so overflow reporting at that
point has limited utility.
In practice, this change will result in one additional i2c transaction
to the mpu9250 device every 100ms.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
| |
The mpu9250 code always reads from the sensor in 48 byte chunks and
always sends an mpu9250_data message immediately after that. Make
that more clear in the querying code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 80a7744b optimized the fifo tracking code. However, it
introduced an error in the time tracking in
command_query_mpu9250_status(). The purpose of that function is to
provide a precise timestamp of the total number of messages produced
at the time of that call. Thus, the returned fifo value needs to be
the fifo level in the chip at the time of the call (not the value read
during previous checks).
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
|
|
|
|
|
|
|
|
| |
At least STM32G4 requires four ADC clock cycles between hardware
clearing ADCCAL and setting ADEN or the write disappears. Make a
tenacious write attempt.
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
|
|
|
|
|
|
| |
STM32G4 USB controller requires 8 or 16-bit access, not 32-bit
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
|
|
|
|
|
| |
Define hard_pwm pins for STM32F070 and STM32F072, and update KConfig accordingly.
Signed-off-by: Will Puckett <willpuckett@gmail.com>
|
|
|
| |
Signed-off-by: Andrei Kozhevnikov <coderusinbox@gmail.com>
|
|
|
|
| |
Signed-off-by: Joshua Schlicker <potter-91@web.de>
|
|
|
| |
Signed-off-by: Luke Vuksta <wulfstawulfsta@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
The atsam USB hardware only requires that the ACM endpoint be endpoint
3. As of commit 11828387 the atsam chips can therefore use the
default USB endpoints.
This will allow CAN bridge support for the SAME70 to function
(upstream host driver has hardcoded endpoints).
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
|
|
|
|
|
|
|
| |
Wait for two tx packets before startup, and make sure one of those
packets is acked before sending a third tx packet.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
|
| |
Commit cd8d57c2 added USB double buffering mode on transmits.
However, when enabling double buffering mode, the hardware seems to
always send at least two packets. Spurious transmissions could cause
the Linux gs_usb driver to get confused, which could lead to the can0
device becoming unavailable on restarts. Fix by waiting for two USB
packets to be available before enabling the endpoint.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|