Gate controller pairing behind BOOTSEL
This commit is contained in:
parent
fac919a798
commit
4a73680bd2
24 changed files with 934 additions and 145 deletions
10
tests/bootsel_native_stubs/pico/flash.h
Normal file
10
tests/bootsel_native_stubs/pico/flash.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#define __no_inline_not_in_flash_func(function_name) function_name
|
||||
|
||||
constexpr int PICO_OK = 0;
|
||||
|
||||
int flash_safe_execute(void (*function)(void*), void* parameter,
|
||||
uint32_t enter_exit_timeout_ms);
|
||||
8
tests/bootsel_native_stubs/pico/time.h
Normal file
8
tests/bootsel_native_stubs/pico/time.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
using absolute_time_t = uint64_t;
|
||||
|
||||
absolute_time_t get_absolute_time();
|
||||
uint64_t to_ms_since_boot(absolute_time_t time);
|
||||
Loading…
Add table
Add a link
Reference in a new issue