klipper-dgus/src/rp2040
Lasse Dalegaard a7b01857f5 flash_usb: use sudo for rp2040 flashing
The rp2040 can be flashed without sudo when using udev rules to give the
user permission, but in a standard configuration sudo is required.

Here we make it possible for flash_usb to use sudo for the rp2040
target, and make it the default when using `make flash` for the rp2040.
As for other targets, one can set `NOSUDO=1` to not call through sudo.

Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
2022-01-31 11:10:02 -05:00
..
Kconfig rp2040: implement I2C 2022-01-12 11:44:31 -05:00
Makefile flash_usb: use sudo for rp2040 flashing 2022-01-31 11:10:02 -05:00
adc.c rp2040: Add initial adc support 2021-07-04 10:11:02 -04:00
bootrom.c rp2040: Add _ramfunc macro to internal.h and use in bootrom.c and chipid.c 2021-07-04 12:45:27 -04:00
chipid.c rp2040: Add _ramfunc macro to internal.h and use in bootrom.c and chipid.c 2021-07-04 12:45:27 -04:00
gpio.c rp2040: Add initial support for the rp2040 mcu 2021-07-04 10:11:02 -04:00
gpio.h rp2040: implement I2C 2022-01-12 11:44:31 -05:00
hard_pwm.c rp2040: hardware PWM support 2021-07-09 11:23:48 -04:00
i2c.c rp2040: implement I2C 2022-01-12 11:44:31 -05:00
internal.h rp2040: Add _ramfunc macro to internal.h and use in bootrom.c and chipid.c 2021-07-04 12:45:27 -04:00
main.c rp2040: Initial USB support 2021-07-04 10:11:02 -04:00
rp2040_link.lds.S rp2040: Add initial support for the rp2040 mcu 2021-07-04 10:11:02 -04:00
serial.c rp2040: Add initial support for the rp2040 mcu 2021-07-04 10:11:02 -04:00
spi.c rp2040: implement SPI 2021-07-15 13:30:20 -04:00
timer.c rp2040: Add initial support for the rp2040 mcu 2021-07-04 10:11:02 -04:00
usbserial.c rp2040: Add barrier() around all memcpy() calls in usbserial.c 2021-10-27 11:16:34 -04:00