YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
system_rp2040.h
1
2#ifndef _CMSIS_SYSTEM_RP2040_H_
3#define _CMSIS_SYSTEM_RP2040_H_
4
5#include <cstdint>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11// The RP2040 system clocks in Hz
12extern uint32_t CLK_SYS;
13extern uint32_t CLK_REF;
14extern uint32_t CLK_PERI;
15extern uint32_t CLK_TICK;
16extern uint32_t CLK_USB;
17extern uint32_t CLK_ADC;
18extern uint32_t CLK_RTC;
19extern uint32_t _ticks_per_millis;
20extern uint32_t _ticks_per_micros;
21
22// Set up the microcontroller system.
23// Initialize the System and finally
24// update the SystemCoreClock variable
25void SystemInit (void);
26
27// Updates the SystemCoreClock with current
28// core Clock retrieved from cpu registers.
29extern void ClockUpdate (void);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif // _CMSIS_SYSTEM_RP2040_H_