#include "fsl_ocotp.h"
Go to the source code of this file.
Macros | |
#define | FSL_COMPONENT_ID "platform.drivers.ocotp" |
#define | OCOTP_TIMING_PROGRAM_NS (uint64_t)10000 |
#define | OCOTP_TIMING_READ_NS (uint64_t)40 |
#define | OCOTP_TIMING_RELEX_NS (uint64_t)100 |
#define | OCOTP_TIMING_WAIT_NS (uint64_t)150 |
#define | OCOTP_WRITE_UNLOCK_KEY (0x3E77) |
Functions | |
void | OCOTP_Deinit (OCOTP_Type *base) |
De-initializes OCOTP controller. More... | |
void | OCOTP_Init (OCOTP_Type *base, uint32_t srcClock_Hz) |
Initializes OCOTP controller. More... | |
uint32_t | OCOTP_ReadFuseShadowRegister (OCOTP_Type *base, uint32_t address) |
Read the fuse shadow register with the fuse addess. More... | |
void | OCOTP_ReloadShadowRegister (OCOTP_Type *base) |
Reload the shadow register. This function will help reload the shadow register without reseting the OCOTP module. Please make sure the OCOTP has been initialized before calling this API. More... | |
static void | OCOTP_SetReadTiming (OCOTP_Type *base, ocotp_timing_t timingConfig) |
Set read timing configuration. More... | |
static void | OCOTP_SetWriteTiming (OCOTP_Type *base, ocotp_timing_t timingConfig) |
Set write timing configuration. More... | |
status_t | OCOTP_WriteFuseShadowRegister (OCOTP_Type *base, uint32_t address, uint32_t data) |
Write the fuse shadow register with the fuse addess and data. Please make sure the wrtie address is not locked while calling this API. More... | |
Variables | |
ocotp_timing_t | s_timingConfig |
#define FSL_COMPONENT_ID "platform.drivers.ocotp" |
Definition at line 15 of file fsl_ocotp.c.
#define OCOTP_TIMING_PROGRAM_NS (uint64_t)10000 |
Definition at line 23 of file fsl_ocotp.c.
#define OCOTP_TIMING_READ_NS (uint64_t)40 |
Definition at line 25 of file fsl_ocotp.c.
#define OCOTP_TIMING_RELEX_NS (uint64_t)100 |
Definition at line 21 of file fsl_ocotp.c.
#define OCOTP_TIMING_WAIT_NS (uint64_t)150 |
Definition at line 19 of file fsl_ocotp.c.
#define OCOTP_WRITE_UNLOCK_KEY (0x3E77) |
Definition at line 28 of file fsl_ocotp.c.
|
static |
Set read timing configuration.
base | OCOTP peripheral base addess. |
timingConfig | configuration of timing. |
Definition at line 92 of file fsl_ocotp.c.
|
static |
Set write timing configuration.
base | OCOTP peripheral base addess. |
timingConfig | configuration of timing. |
Definition at line 102 of file fsl_ocotp.c.
ocotp_timing_t s_timingConfig |
Definition at line 53 of file fsl_ocotp.c.