The regular firmware now answers the EP0 vendor INFO and BOOTSEL reboot requests with the AIO wire protocol, so switch-pico-config reboot bootsel works when the Pico's USB side is on a PC. Wire constants move to usb_management_protocol.h; other operations stall.
21 lines
381 B
C
21 lines
381 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
uint64_t milliseconds;
|
|
} absolute_time_t;
|
|
|
|
absolute_time_t get_absolute_time(void);
|
|
uint32_t to_ms_since_boot(absolute_time_t time);
|
|
absolute_time_t make_timeout_time_ms(uint32_t milliseconds);
|
|
bool time_reached(absolute_time_t time);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|