![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <io.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <timer.h>#include <log.h>#include <sys-clk.h>
Functions | |
| void | sunxi_clk_init (void) |
| Initialize the global clocks. | |
| void | sunxi_clk_reset (void) |
| Reset the global clocks. | |
| uint32_t | sunxi_clk_get_peri1x_rate () |
| Get the clock rate of the PERI1X bus. | |
| void | sunxi_clk_dump () |
| Dump all clock-related register values. | |
| void | sunxi_usb_clk_init (void) |
| void | sunxi_usb_clk_deinit (void) |
| Deinitialize USB clock. | |
| void sunxi_clk_dump | ( | void | ) |
Dump all clock-related register values.
This function prints out all clock-related register values for debugging and observation.
| uint32_t sunxi_clk_get_peri1x_rate | ( | ) |
Get the clock rate of the PERI1X bus.
| void sunxi_clk_init | ( | void | ) |
Initialize the global clocks.
This function initializes the global clocks, including PLLs and clock dividers.
Initialize the global clocks.
This function configures various clock sources for the CPU, AXI, APB, NSI, and MBUS based on the Sunxi platform's requirements. The function also prints debug messages to track the initialization process.
It performs the following tasks:
set_pll_cpux_axi() function.set_apb() function.set_pll_nsi() function.set_pll_mbus() function.| void sunxi_clk_reset | ( | void | ) |
Reset the global clocks.
This function resets all global clocks to their default values.
| void sunxi_usb_clk_deinit | ( | void | ) |
Deinitialize USB clock.
| void sunxi_usb_clk_init | ( | void | ) |