rp2040: Add initial support for the rp2040 mcu

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>
This commit is contained in:
Kevin O'Connor
2021-06-19 21:43:26 -04:00
parent 20c5976356
commit 045bfa4e8d
11 changed files with 642 additions and 0 deletions

12
src/rp2040/internal.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef __RP2040_INTERNAL_H
#define __RP2040_INTERNAL_H
// Local definitions for rp2040
#include "RP2040.h"
void enable_pclock(uint32_t reset_bit);
int is_enabled_pclock(uint32_t reset_bit);
uint32_t get_pclock_frequency(uint32_t reset_bit);
void gpio_peripheral(uint32_t gpio, int func, int pull_up);
#endif // internal.h