aboutsummaryrefslogtreecommitdiffstats
path: root/src/pru/gpio.c
Commit message (Collapse)AuthorAgeFilesLines
* pru: BeagleBone Firmware upgrade to Debian 11.7 Bullseye (#6577)Oleg Gavavka2024-04-271-1/+1
| | | | | | | | | | | | | | | * 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>
* pru: Disable gpio mux configuration codeKevin O'Connor2020-12-041-9/+19
| | | | | | | | The code isn't actually capable of altering the mux registers due to hardware checks enforced by the chip. Disable that code to save a few bytes in the final binary. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Use enumerations for pin mappingsKevin O'Connor2019-03-171-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Wrap code to 80 columnsKevin O'Connor2019-02-271-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Add wrappers for gpio_x_reset()Kevin O'Connor2018-08-271-0/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Introduce and use gpio_out_toggle_noirq()Kevin O'Connor2018-05-151-1/+7
| | | | | | | | | | | | | | | The gpio_out_toggle() function in the sam3x8e and stm32f1 code was only valid if it was called with irqs disabled. Commits 018c5daa and 9c52ad43 enabled the lcd code which called gpio_out_toggle() with irqs enabled. This could cause corruption of the gpio state. Introduce a gpio_out_toggle_noirq() function that will only be invoked with irqs disabled, and fix gpio_out_toggle() on sam3x8e and stm32f1 so that it safe to call even if irqs are enabled. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Move ADC code from gpio.c to new file adc.cKevin O'Connor2017-07-121-66/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Add support for ADC inputKevin O'Connor2017-05-171-0/+67
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Initial support for the Beaglebone PRUKevin O'Connor2017-05-151-0/+142
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>