RTEMS 6.1-rc1
|
#include <stdint.h>
#include <stdbool.h>
#include <bsp/tms570.h>
#include <bsp/tms570-pinmux.h>
#include <bsp/tms570_selftest.h>
#include <bsp/tms570_hwinit.h>
Enumerations | |
enum | tms570_flash_power_modes { TMS570_FLASH_SYS_SLEEP = 0U , TMS570_FLASH_SYS_STANDBY = 1U , TMS570_FLASH_SYS_ACTIVE = 3U } |
enum | tms570_system_clock_source { TMS570_SYS_CLK_SRC_OSC = 0U , TMS570_SYS_CLK_SRC_PLL1 = 1U , TMS570_SYS_CLK_SRC_EXTERNAL1 = 3U , TMS570_SYS_CLK_SRC_LPO_LOW = 4U , TMS570_SYS_CLK_SRC_LPO_HIGH = 5U , TMS570_SYS_CLK_SRC_PLL2 = 6U , TMS570_SYS_CLK_SRC_EXTERNAL2 = 7U , TMS570_SYS_CLK_SRC_VCLK = 9U } |
Functions | |
void | tms570_pll_init (void) |
Setup all system PLLs (HCG:setupPLL) More... | |
void | tms570_trim_lpo_init (void) |
Adjust Low-Frequency (LPO) oscilator (HCG:trimLPO) More... | |
void | tms570_flash_init (void) |
Setup Flash memory parameters and timing (HCG:setupFlash) More... | |
void | tms570_periph_init (void) |
Power-up all peripherals and enable their clocks (HCG:periphInit) More... | |
void | tms570_map_clock_init (void) |
Setup chip clocks including to wait for PLLs locks (HCG:mapClocks) More... | |
void | tms570_system_hw_init (void) |
TMS570 system hardware initialization (HCG:systemInit) More... | |
based on Ti HalCoGen generated file
void tms570_flash_init | ( | void | ) |
Setup Flash memory parameters and timing (HCG:setupFlash)
void tms570_map_clock_init | ( | void | ) |
Setup chip clocks including to wait for PLLs locks (HCG:mapClocks)
Initialize Clock Tree:
void tms570_periph_init | ( | void | ) |
Power-up all peripherals and enable their clocks (HCG:periphInit)
void tms570_pll_init | ( | void | ) |
Setup all system PLLs (HCG:setupPLL)
Initialize Pll1:
Initialize Pll2:
void tms570_system_hw_init | ( | void | ) |
TMS570 system hardware initialization (HCG:systemInit)
void tms570_trim_lpo_init | ( | void | ) |
Adjust Low-Frequency (LPO) oscilator (HCG:trimLPO)
Initialize Lpo:
Load TRIM values from OTP if present else load user defined values