aboutsummaryrefslogtreecommitdiffstats
path: root/src/rp2040/main.c
Commit message (Collapse)AuthorAgeFilesLines
* rp2040: Move watchdog code to new watchdog.c fileKevin O'Connor2022-12-141-25/+0
| | | | | | | Move the watchdog code to its own file so that it is easier to disable it for development builds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Fix watchdog enableKevin O'Connor2022-11-191-0/+3
| | | | | | | | | | | | The rp2040 watchdog does not actually reset anything by default. The psm_hw->wdsel field must be programmed to actually get a reset on a watchdog failure. Program that field so the watchdog is usable. Also, disable the watchdog before attempting a reboot into the bootloader. Otherwise the machine may just reboot a second time due to a missed watchdog event in the bootloader. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Support CanBoot as bootloaderKevin O'Connor2022-11-081-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Rename usb_request_bootloader() to bootloader_request()Kevin O'Connor2022-07-291-0/+14
| | | | | | | Rename this board API function to a more generic name. This is in preparation for calling the function from the canbus code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Initial USB supportKevin O'Connor2021-07-041-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Add initial adc supportKevin O'Connor2021-07-041-1/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Add initial support for the rp2040 mcuKevin O'Connor2021-07-041-0/+149
Support the rp2040 (as tested on a Raspberry Pi Pico board). This adds basic uart, timer, gpio, and watchdog support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>