45 #include "sw/modules/types/src/types.h"
67 #define FLASH_BASE_ADDR (0x00000A80)
72 #define FLASH_ACTIVE_WAIT_COUNT_DEFAULT (0x01FF)
77 #define FLASH_STANDBY_WAIT_COUNT_DEFAULT (0x01FF)
82 #define FLASH_FOPT_ENPIPE_BITS (1 << 0)
87 #define FLASH_FACTIVEWAIT_ACTIVEWAIT_BITS (255 << 0)
92 #define FLASH_FBANKWAIT_RANDWAIT_BITS (15 << 0)
96 #define FLASH_FBANKWAIT_PAGEWAIT_BITS (15 << 8)
101 #define FLASH_FOTPWAIT_OTPWAIT_BITS (31 << 0)
106 #define FLASH_FPWR_PWR_BITS (3 << 0)
111 #define FLASH_FSTATUS_PWRS_BITS (3 << 0)
115 #define FLASH_FSTATUS_STDBYWAITS_BITS (1 << 2)
119 #define FLASH_FSTATUS_ACTIVEWAITS_BITS (1 << 3)
123 #define FLASH_FSTATUS_3VSTAT_BITS (1 << 8)
128 #define FLASH_FSTDBYWAIT_STDBYWAIT_BITS (255 << 0)
312 extern FLASH_Handle
FLASH_init(
void *pMemory,
const size_t numBytes);
356 #endif // end of _FLASH_H_ definition
Denotes the number of paged read wait states is 7.
Denotes the number of randowm read wait states is 9.
void FLASH_setOtpWaitStates(FLASH_Handle flashHandle, const FLASH_NumOtpWaitStates_e numStates)
Sets the number of one-time programmable (OTP) wait states.
Denotes the number of one-time programmable (OTP) wait states is 10.
FLASH_3VStatus_e FLASH_get3VStatus(FLASH_Handle flashHandle)
Gets the 3V status.
Denotes the number of one-time programmable (OTP) wait states is 2.
Denotes the number of one-time programmable (OTP) wait states is 12.
Denotes the number of paged read wait states is 12.
Denotes the number of randowm read wait states is 5.
Denotes the number of one-time programmable (OTP) wait states is 11.
Denotes the number of randowm read wait states is 13.
Denotes the number of randowm read wait states is 14.
Denotes the number of paged read wait states is 6.
void FLASH_setActiveWaitCount(FLASH_Handle flashHandle, const uint16_t count)
Sets the active wait count.
Denotes the number of one-time programmable (OTP) wait states is 7.
Denotes the number of randowm read wait states is 7.
Denotes the number of one-time programmable (OTP) wait states is 4.
Denotes the number of paged read wait states is 2.
Denotes a pump and bank sleep power mode.
Denotes the number of randowm read wait states is 15.
Denotes the number of paged read wait states is 14.
Denotes the number of randowm read wait states is 4.
Denotes a pump and bank active power mode.
FLASH_CounterStatus_e
Enumeration to define the counter status.
struct _FLASH_Obj_ FLASH_Obj
Defines the flash (FLASH) object.
Denotes the 3V flash voltage is in range.
Denotes the number of one-time programmable (OTP) wait states is 13.
Denotes the number of randowm read wait states is 10.
Denotes the number of one-time programmable (OTP) wait states is 15.
void FLASH_disablePipelineMode(FLASH_Handle flashHandle)
Disables the pipeline mode.
volatile uint16_t FSTDBYWAIT
Flash Sleep To Standby Wait Register.
Denotes the number of one-time programmable (OTP) wait states is 5.
volatile uint16_t FACTIVEWAIT
Flash Standby to Active Wait Register.
FLASH_CounterStatus_e FLASH_getStandbyWaitStatus(FLASH_Handle flashHandle)
Gets the standby wait counter status.
Denotes the flash counter is not counting.
Denotes the number of paged read wait states is 11.
Denotes the number of randowm read wait states is 11.
Denotes the number of paged read wait states is 4.
void FLASH_setNumPagedReadWaitStates(FLASH_Handle flashHandle, const FLASH_NumPagedWaitStates_e numStates)
Sets the number of paged read wait states.
FLASH_NumOtpWaitStates_e
Enumeration to define the number of one-time programmable wait states.
Denotes the number of randowm read wait states is 12.
uint16_t FLASH_getActiveWaitCount(FLASH_Handle flashHandle)
Gets the active wait count.
volatile uint16_t FBANKWAIT
Flash Read Access Wait State Register.
FLASH_CounterStatus_e FLASH_getActiveWaitStatus(FLASH_Handle flashHandle)
Gets the active wait counter status.
Denotes the number of paged read wait states is 10.
FLASH_Handle FLASH_init(void *pMemory, const size_t numBytes)
Initializes the flash (FLASH) handle.
Denotes the number of one-time programmable (OTP) wait states is 3.
FLASH_3VStatus_e
Enumeration to define the 3V status.
Denotes the number of paged read wait states is 5.
volatile uint16_t FOPT
Flash Option Register.
Contains public interface to various functions related to the central processing unit (CPU) object...
void FLASH_setPowerMode(FLASH_Handle flashHandle, const FLASH_PowerMode_e mode)
Sets the power mode.
void FLASH_enablePipelineMode(FLASH_Handle flashHandle)
Enables the pipeline mode.
Denotes the number of randowm read wait states is 1.
volatile uint16_t FOTPWAIT
OTP Read Access Wait State Register.
Denotes the number of one-time programmable (OTP) wait states is 9.
Denotes the number of randowm read wait states is 3.
volatile uint16_t FSTATUS
Status Register.
FLASH_NumPagedWaitStates_e
Enumeration to define the number of paged wait states.
Denotes the number of randowm read wait states is 2.
volatile uint16_t rsvd_1
Reserved.
Defines the flash (FLASH) object.
Denotes a pump and bank standby power mode.
Denotes the number of paged read wait states is 1.
Denotes the number of one-time programmable (OTP) wait states is 14.
void FLASH_setStandbyWaitCount(FLASH_Handle flashHandle, const uint16_t count)
Sets the standby wait count.
volatile uint16_t FPWR
Flash Power Modes Register.
Denotes the number of one-time programmable (OTP) wait states is 1.
uint16_t FLASH_getStandbyWaitCount(FLASH_Handle flashHandle)
Gets the standby wait count.
FLASH_NumRandomWaitStates_e
Enumeration to define the number of random wait states.
Denotes the number of one-time programmable (OTP) wait states is 8.
Denotes the number of randowm read wait states is 8.
Denotes the flash counter is counting.
Denotes the number of randowm read wait states is 6.
Denotes the number of paged read wait states is 13.
Denotes the number of paged read wait states is 9.
void FLASH_setNumRandomReadWaitStates(FLASH_Handle flashHandle, const FLASH_NumRandomWaitStates_e numStates)
Sets the number of random read wait states.
FLASH_PowerMode_e FLASH_getPowerMode(FLASH_Handle flashHandle)
Gets the power mode.
Denotes the number of paged read wait states is 15.
Denotes the number of one-time programmable (OTP) wait states is 6.
struct _FLASH_Obj_ * FLASH_Handle
Defines the flash (FLASH) handle.
FLASH_PowerMode_e
Enumeration to define the power modes.
Denotes the 3V flash voltage went out of range.
Denotes the number of paged read wait states is 3.
void FLASH_clear3VStatus(FLASH_Handle flashHandle)
Clears the 3V status.
Denotes the number of paged read wait states is 8.
Denotes the number of paged read wait states is 0.