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