whiskers
0.4.0
RP2350 BadUSB Tool
Toggle main menu visibility
Loading...
Searching...
No Matches
standard.h
Go to the documentation of this file.
1
/* Copyright (c) 2026 Zane A. Maples
2
Licensed under the MIT license. See LICENSE in the main repository for more information. */
3
14
#ifndef W_HAL_STANDARD_H
15
#define W_HAL_STANDARD_H
16
17
#include <stdint.h>
18
#include "
shared.h
"
19
23
void
hal_init
();
28
void
hal_init_watchdog
(uint32_t ms_timeout);
32
void
hal_deinit_watchdog
();
36
void
hal_watchdog_update
();
41
void
hal_sleep_ms
(uint32_t ms);
46
uint32_t
hal_get_ms_since_boot
();
47
54
void
hal_core1_entry
(
void
(*entry)(
void
));
55
60
void
get_board_serial
(
char
out[13]);
61
66
uint32_t
get_random_32
();
71
uint64_t
get_random_64
();
72
#endif
shared.h
Shared structs, error codes, and functions for all HAL files.
hal_init_watchdog
void hal_init_watchdog(uint32_t ms_timeout)
Initializes the watchdog.
hal_watchdog_update
void hal_watchdog_update()
Updates the watchdog and refreshes it's timer.
get_random_32
uint32_t get_random_32()
Gets random unsigned 32 bit number.
get_board_serial
void get_board_serial(char out[13])
Gets the serial number of the board vll_wsk_01**.
hal_core1_entry
void hal_core1_entry(void(*entry)(void))
Launches an entry function on core1.
hal_deinit_watchdog
void hal_deinit_watchdog()
De-initializes the watchdog.
hal_sleep_ms
void hal_sleep_ms(uint32_t ms)
Suspends the active core for specified amount of milliseconds.
hal_get_ms_since_boot
uint32_t hal_get_ms_since_boot()
Gets amount of time since boot.
hal_init
void hal_init()
Initializes the HAL. Must be called first in any program.
get_random_64
uint64_t get_random_64()
Gets random unsigned 64 bit number.
code
hal
standard.h
Generated by
1.18.0