RP2040 support

This commit is contained in:
graham sanderson
2021-01-19 19:52:07 -06:00
parent 589dfdb0e5
commit e0aa405d19
16 changed files with 1813 additions and 4 deletions

View File

@@ -80,6 +80,13 @@ int board_uart_write(void const * buf, int len);
return os_time_ticks_to_ms32( os_time_get() );
}
#elif CFG_TUSB_OS == OPT_OS_PICO
#include "pico/time.h"
static inline uint32_t board_millis(void)
{
return to_ms_since_boot(get_absolute_time());
}
#else
#error "board_millis() is not implemented for this OS"
#endif