|
whiskers 0.2.0
RP2350 BadUSB Tool
|
Miscellaneous/Utility HAL functions.
This file contains stuff like sleeps, timing functions, watchdog functions.
It also contains hal_init() which sets stuff up required for the HAL. Mainly the serial connection for printf.
Go to the source code of this file.
Functions | |
| void | hal_init () |
| Initializes the HAL. Must be called first in any program. | |
| void | hal_init_watchdog (uint32_t ms_timeout) |
| Initializes the watchdog. | |
| void | hal_deinit_watchdog () |
| De-initializes the watchdog. | |
| void | hal_watchdog_update () |
| Updates the watchdog and refreshes it's timer. | |
| 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_core1_entry (void(*entry)(void)) |
| Launches an entry function on core1. | |
| 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 get_board_serial | ( | char | out[13] | ) |
Gets the serial number of the board vll_wsk_01**.
| out | Out buffer for the returned string. |
| void hal_core1_entry | ( | void(* | entry )(void) | ) |
Launches an entry function on core1.
| entry | The pointer to the entry function. This must be a function with no parameters with a void return type. |
Note this function only does anything on multicore enabled chips.
| uint32_t hal_get_ms_since_boot | ( | ) |
Gets amount of time since boot.
| void hal_init_watchdog | ( | uint32_t | ms_timeout | ) |
Initializes the watchdog.
| ms_timeout | How many milliseconds of timeout before the watchdog resets the chip. |
| void hal_sleep_ms | ( | uint32_t | ms | ) |
Suspends the active core for specified amount of milliseconds.
| ms | Milliseconds to sleep for. |