whiskers 0.2.0
RP2350 BadUSB Tool
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
23void hal_init();
28void hal_init_watchdog(uint32_t ms_timeout);
41void hal_sleep_ms(uint32_t ms);
47
54void hal_core1_entry(void (*entry)(void));
55
60
65void get_board_serial(char out[13]);
66#endif
Shared structs, error codes, and functions for all HAL files.
void hal_init_watchdog(uint32_t ms_timeout)
Initializes the watchdog.
void hal_watchdog_update()
Updates the watchdog and refreshes it's timer.
void print_chip_info()
Prints out chip information.
void get_board_serial(char out[13])
Gets the serial number of the board vll_wsk_01**.
void hal_core1_entry(void(*entry)(void))
Launches an entry function on core1.
void hal_deinit_watchdog()
De-initializes the watchdog.
void hal_sleep_ms(uint32_t ms)
Suspends the active core for specified amount of milliseconds.
uint32_t hal_get_ms_since_boot()
Gets amount of time since boot.
void hal_init()
Initializes the HAL. Must be called first in any program.