#include "types.h"
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_nvic.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_flash.h"
#include "cpu.h"
#include "debug.h"
#include "interrupt.h"
#include "sysctl.h"
Macros | |
#define | FLASH_PP_MAINSS_S 16 |
#define | SysCtlXtalCfgToIndex(a) ((a & 0x7c0) >> 6) |
#define | MAX_VCO_ENTRIES 2 |
#define | MAX_XTAL_ENTRIES 18 |
#define | PLL_M_TO_REG(mi, mf) ((uint32_t)mi | (uint32_t)(mf << SYSCTL_PLLFREQ0_MFRAC_S)) |
#define | PLL_N_TO_REG(n) ((uint32_t)(n - 1) << SYSCTL_PLLFREQ1_N_S) |
#define | PLL_Q_TO_REG(q) ((uint32_t)(q - 1) << SYSCTL_PLLFREQ1_Q_S) |
#define | SYSCTL_PPBASE 0x400fe300 |
#define | SYSCTL_SRBASE 0x400fe500 |
#define | SYSCTL_RCGCBASE 0x400fe600 |
#define | SYSCTL_SCGCBASE 0x400fe700 |
#define | SYSCTL_DCGCBASE 0x400fe800 |
#define | SYSCTL_PCBASE 0x400fe900 |
#define | SYSCTL_PRBASE 0x400fea00 |
Functions | |
uint32_t | SysCtlSRAMSizeGet (void) |
uint32_t | SysCtlFlashSizeGet (void) |
uint32_t | SysCtlFlashSectorSizeGet (void) |
bool | SysCtlPeripheralPresent (uint32_t ui32Peripheral) |
bool | SysCtlPeripheralReady (uint32_t ui32Peripheral) |
void | SysCtlPeripheralPowerOn (uint32_t ui32Peripheral) |
void | SysCtlPeripheralPowerOff (uint32_t ui32Peripheral) |
void | SysCtlPeripheralReset (uint32_t ui32Peripheral) |
void | SysCtlPeripheralEnable (uint32_t ui32Peripheral) |
void | SysCtlPeripheralDisable (uint32_t ui32Peripheral) |
void | SysCtlPeripheralSleepEnable (uint32_t ui32Peripheral) |
void | SysCtlPeripheralSleepDisable (uint32_t ui32Peripheral) |
void | SysCtlPeripheralDeepSleepEnable (uint32_t ui32Peripheral) |
void | SysCtlPeripheralDeepSleepDisable (uint32_t ui32Peripheral) |
void | SysCtlPeripheralClockGating (bool bEnable) |
void | SysCtlIntRegister (void(*pfnHandler)(void)) |
void | SysCtlIntUnregister (void) |
void | SysCtlIntEnable (uint32_t ui32Ints) |
void | SysCtlIntDisable (uint32_t ui32Ints) |
void | SysCtlIntClear (uint32_t ui32Ints) |
uint32_t | SysCtlIntStatus (bool bMasked) |
void | SysCtlLDODeepSleepSet (uint32_t ui32Voltage) |
uint32_t | SysCtlLDODeepSleepGet (void) |
void | SysCtlSleepPowerSet (uint32_t ui32Config) |
void | SysCtlDeepSleepPowerSet (uint32_t ui32Config) |
void | SysCtlReset (void) |
void | SysCtlSleep (void) |
void | SysCtlDeepSleep (void) |
uint32_t | SysCtlResetCauseGet (void) |
void | SysCtlResetCauseClear (uint32_t ui32Causes) |
void | SysCtlMOSCConfigSet (uint32_t ui32Config) |
uint32_t | SysCtlPIOSCCalibrate (uint32_t ui32Type) |
void | SysCtlResetBehaviorSet (uint32_t ui32Behavior) |
uint32_t | SysCtlResetBehaviorGet (void) |
uint32_t | SysCtlClockFreqSet (uint32_t ui32Config, uint32_t ui32SysClock) |
void | SysCtlDeepSleepClockConfigSet (uint32_t ui32Div, uint32_t ui32Config) |
void | SysCtlVoltageEventConfig (uint32_t ui32Config) |
uint32_t | SysCtlVoltageEventStatus (void) |
void | SysCtlVoltageEventClear (uint32_t ui32Status) |
bool | SysCtlVCOGet (uint32_t ui32Crystal, uint32_t *pui32VCOFrequency) |
uint32_t | SysCtlNMIStatus (void) |
void | SysCtlNMIClear (uint32_t ui32Ints) |
void | SysCtlClockOutConfig (uint32_t ui32Config, uint32_t ui32Div) |
void | SysCtlAltClkConfig (uint32_t ui32Config) |
uint32_t ui32Frequency |
uint32_t ui32MemTiming |