MCUSW
Fls.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (C) 2024 Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62 
95 /*
96  * Below are the global requirements which are met by this FLS
97  * driver which can't be mapped to a particular source ID
98  */
99 /*
100  * Design : MCAL-7370,MCAL-7251,MCAL-7373,MCAL-7357,MCAL-7387,MCAL-7461,MCAL-7446,MCAL-7391,MCAL-7277,MCAL-7323,MCAL-7272,MCAL-7475,MCAL-7363.MCAL-7347,MCAL-7352,MCAL-7444,MCAL-7373,MCAL-7405,MCAL-7338,MCAL-7347,MCAL-7461,MCAL-7432,MCAL-7431,MCAL-7460,MCAL-7434,MCAL-7411
101  */
102 
103  #ifndef FLS_H_
104  #define FLS_H_
105 
106 /* ========================================================================== */
107 /* Include Files */
108 /* ========================================================================== */
109 
110 
111 #include "Std_Types.h"
112 #include "Os.h"
113 #include "Fls_Cfg.h"
114 #include "Fls_Irq.h"
115 #include "Fls_Cbk.h"
116 #include "MemIf_Types.h"
117 #include <SchM_Fls.h>
118 #include <Fls/fls_hw/ospi/V0/lldr_ospi.h>
119 
120 #ifdef __cplusplus
121 extern "C"
122 {
123 #endif
124 
125 /* ========================================================================== */
126 /* Macros & Typedefs */
127 /* ========================================================================== */
128 
129 /* None */
130 
138 #define FLS_SW_MAJOR_VERSION (12U)
139 
140 #define FLS_SW_MINOR_VERSION (0U)
141 
142 #define FLS_SW_PATCH_VERSION (0U)
143 /* @} */
144 
152 #define FLS_AR_RELEASE_MAJOR_VERSION (4U)
153 
154 #define FLS_AR_RELEASE_MINOR_VERSION (3U)
155 
156 #define FLS_AR_RELEASE_REVISION_VERSION (1U)
157 /* @} */
158 
164 #define FLS_VENDOR_ID ((uint16) 44U)
165 
166 #define FLS_MODULE_ID ((uint16) 92U)
167 
168 #define FLS_INSTANCE_ID ((uint8) 0U)
169 /* @} */
170 
171 
173 /*
174  * Design : MCAL-7457
175  */
176 typedef uint32 Fls_AddressType;
177 typedef uint32 Fls_LengthType;
178 
179 
186 /*
187  * Design : MCAL-7275,MCAL-7369,MCAL-7308,MCAL-7267,MCAL-7427,MCAL-7269,MCAL-7394,MCAL-7332,MCAL-7394,MCAL-7257,MCAL-7269,MCAL-7308,MCAL-7455,MCAL-7358
188  */
189 #ifndef FLS_E_PARAM_CONFIG
190 
191 #define FLS_E_PARAM_CONFIG ((uint8) 0x01U)
192 #endif
193 #ifndef FLS_E_PARAM_ADDRESS
194 
195 #define FLS_E_PARAM_ADDRESS ((uint8) 0x02U)
196 #endif
197 #ifndef FLS_E_PARAM_LENGTH
198 
199 #define FLS_E_PARAM_LENGTH ((uint8) 0x03U)
200 #endif
201 #ifndef FLS_E_PARAM_DATA
202 
203 #define FLS_E_PARAM_DATA ((uint8) 0x04U)
204 #endif
205 #ifndef FLS_E_UNINIT
206 
207 #define FLS_E_UNINIT ((uint8) 0x05U)
208 #endif
209 #ifndef FLS_E_BUSY
210 
211 #define FLS_E_BUSY ((uint8) 0x06U)
212 #endif
213 #ifndef FLS_E_PARAM_POINTER
214 
215 #define FLS_E_PARAM_POINTER ((uint8) 0x0AU)
216 #endif
217 #ifndef FLS_E_VERIFY_ERASE_FAILED
218 
219 #define FLS_E_VERIFY_ERASE_FAILED ((uint8) 0x07U)
220 #endif
221 #ifndef FLS_E_VERIFY_WRITE_FAILED
222 
223 #define FLS_E_VERIFY_WRITE_FAILED ((uint8) 0x08U)
224 #endif
225 #ifndef FLS_E_TIMEOUT
226 
227 #define FLS_E_TIMEOUT ((uint8) 0x09U)
228 #endif
229 
230 
231 /*TRANSIENT FAULTS WITH HW*/
232 #ifndef FLS_E_ERASE_FAILED
233 
234 #define FLS_E_ERASE_FAILED ((uint8) 0x01U)
235 #endif
236 #ifndef FLS_E_WRITE_FAILED
237 
238 #define FLS_E_WRITE_FAILED ((uint8) 0x02U)
239 #endif
240 #ifndef FLS_E_READ_FAILED
241 
242 #define FLS_E_READ_FAILED ((uint8) 0x03U)
243 #endif
244 #ifndef FLS_E_COMPARE_FAILED
245 
246 #define FLS_E_COMPARE_FAILED ((uint8) 0x04U)
247 #endif
248 #ifndef FLS_E_UNEXPECTED_FLASH_ID
249 
250 #define FLS_E_UNEXPECTED_FLASH_ID ((uint8) 0x05U)
251 #endif
252 
253 
262 #define FLS_SID_INIT ((uint8) 0x00U)
263 
264 #define FLS_SID_ERASE ((uint8) 0x01U)
265 
266 #define FLS_SID_WRITE ((uint8) 0x02U)
267 
268 #define FLS_SID_CANCEL ((uint8) 0x03U)
269 
270 #define FLS_SID_GET_STATUS ((uint8) 0x04U)
271 
272 #define FLS_SID_GET_JOB_RESULT ((uint8) 0x05U)
273 
274 #define FLS_SID_READ ((uint8) 0x07U)
275 
276 #define FLS_SID_COMPARE ((uint8) 0x08U)
277 
278 #define FLS_SID_SET_MODE ((uint8) 0x09U)
279 
280 #define FLS_SID_GET_VERSION_INFO ((uint8) 0x10U)
281 
282 #define FLS_SID_BLANK_CHECK ((uint8) 0x0AU)
283 
284 #define FLS_SID_MAIN_FUNCTION ((uint8) 0x06U)
285 
286 /* @} */
287 
288 /* ========================================================================== */
289 /* Structures and Enums */
290 /* ========================================================================== */
291 
300 /*
301  * Design : MCAL-7339,MCAL-7328,MCAL-7248,MCAL-7298,MCAL-7415,MCAL-7411,MCAL-7431,MCAL-7460,MCAL-7434
302  */
303 typedef struct
304 {
314 
318 typedef enum
319 {
329 
330 typedef enum
331 {
332  FLS_OSPI = 0U,
334  FLS_XSPI = 1U,
336  FLS_QSPI = 2U
342 /*
343  * Design : MCAL-7343,MCAL-7355,MCAL-7302,MCAL-7404,MCAL-7290,MCAL-7414,MCAL-7273,MCAL-7396,MCAL-7323,MCAL-7348,MCAL-7364,MCAL-7360,MCAL-7287,MCAL-7317,MCAL-7365,MCAL-7291,MCAL-7262
344  */
345 typedef struct Fls_ConfigType_s
346 {
347  Fls_JobEndNotifyType Fls_JobEndNotification;
350  Fls_JobErrorNotifyType Fls_JobErrorNotification;
368  boolean dacEnable;
370  boolean xipEnable;
372  uint64 ospiClkSpeed;
374  boolean dtrEnable;
376  boolean phyEnable;
382  uint32 blockSize;
385 
386 typedef struct
387 {
390 uint32 NOR_BLOCK_SIZE; /* NOR Block Size in bytes */
391 uint32 NOR_UNIFORM_SECTOR_SIZE; /* NOR Sector Size in bytes */
392 uint32 NOR_SECTOR_SIZE; /* NOR Hybrid Sector Size in bytes. Uniform Address space consists of all 256 KB Sectors */
393 uint32 NOR_SIZE; /* Total NOR Size in bytes */
394 /*na*/ uint32 NOR_NUM_4K_SECTORS; /* Number of 4K sectors in the NOR flash */
395 uint32 NOR_NUM_SECTORS; /* Total number of sectors in the NOR flash */
396 /*na*/ uint32 NOR_NUM_BLOCKS; /* Total number of blocks in the NOR flash */
397 uint32 NOR_PAGE_SIZE; /* Page size of the NOR flash in bytes */
398 /*na*/ uint32 NOR_NUM_PAGES_PER_SECTOR; /* Number of pages per sector */
399 uint32 NOR_NUM_PAGES_PER_BLOCK; /* Number of pages per block */
400 /*check*/uint8 NOR_ERASED_DATA; /* Value of erased data */
401 /*na*/ uint32 NOR_4K_SECT_BOT_END_OFFSET; /* Offset for the bottom of the 4K sector */
402 /*na*/ uint32 NOR_BE_SECTOR_NUM; /* Number of sectors in the BE (Block Erase) region */
403 /*na*/ uint32 NOR_CMD_BULK_ERASE; /* Bulk Erase command for the NOR flash */
404 uint8 NOR_CMD_WRREG; /* Write Register command */
405 uint8 NOR_CMD_WREN; /* Write Enable command */
406 /*na*/ uint32 NOR_CMD_WRDIS; /* Write Disable command */
407 uint8 NOR_CMD_RDSR; /* Read Status Register command */
408 /*na*/ uint32 NOR_CMD_RDSR2; /* Read Status Register 2 command */
409 uint8 NOR_CMD_RDREG; /* Register Read command */
410 /*na*/ uint32 NOR_CMD_RDCR; /* Read Configuration Register command */
412 uint8 NOR_CMD_SRSTE; /* Software Reset Enable command */
413 uint8 NOR_CMD_SFRST; /* Software Reset command */
414 uint8 NOR_CMD_BLOCK_ERASE; /* Block Erase command */
415 uint8 NOR_CMD_SECTOR_ERASE; /* Sector Erase command */
416 uint32 NOR_CMD_READ; /* Standard Read command */
417 /*na*/ uint32 NOR_CMD_FAST_READ; /* Fast Read command */
418 uint32 NOR_CMD_OCTAL_READ; /* Octal Read command (calculated based on sector size) */
419 uint32 NOR_CMD_OCTAL_DDR_READ; /* Octal DDR Read command (calculated based on NOR size and sector size) */
420 uint32 NOR_CMD_PAGE_PROG; /* Page Program command */
421 uint32 NOR_CMD_OCTAL_PROG; /* Octal Program command */
422 uint32 NOR_CMD_WRITE_VCR; /* Write VCR (Volatile Configuration Register) command */
423 /*na*/ uint32 NOR_CMD_READ_VCR; /* Read VCR (Volatile Configuration Register) command */
424 uint8 NOR_VREG_OFFSET; /* Offset for the volatile register */
425 /*na*/ uint32 NOR_NVREG_OFFSET; /* Offset for the non-volatile register */
426 /* Non-Volatile Status Register 1 address */
427 /*na*/ uint32 NOR_STS1_NVREG_ADDR;
428 /*na*/ uint32 NOR_STS2_NVREG_ADDR;
429 /* Non-Volatile Configuration Register 1 address */
430 /*na*/ uint32 NOR_CFG1_NVREG_ADDR;
431 /*na*/ uint32 NOR_CFG2_NVREG_ADDR;
432 /*na*/ uint32 NOR_CFG3_NVREG_ADDR;
433 /*na*/ uint32 NOR_CFG4_NVREG_ADDR;
434 /*na*/ uint32 NOR_CFG5_NVREG_ADDR;
435 /* Volatile Status Register address */
436 /*na*/ uint32 NOR_STS1_VREG_ADDR;
437 /*na*/ uint32 NOR_STS2_VREG_ADDR;
438 /* Volatile Configuration Register address */
439 /*na*/ uint32 NOR_CFG1_VREG_ADDR;
442 /*na*/ uint32 NOR_CFG4_VREG_ADDR;
443 /*na*/ uint32 NOR_CFG5_VREG_ADDR;
445 uint32 NOR_MANF_ID; /* Manufacturer ID */
446 uint32 NOR_DEVICE_ID; /* Device ID */
447 uint32 NOR_SR_WIP;
448 /*na*/uint32 NOR_SR_WRPGEN;
450 /*na*/uint32 NOR_CR_TBPARM;
451 /*na*/uint32 NOR_CMD_RDCR_VOL;
452 /*na*/uint32 NOR_CMD_RDCR_NVOL;
464 /*na*/uint32 NOR_CMD_READ_ENVCR;
465 /*na*/uint32 NOR_CMD_WRITE_NVCR;
466 /*na*/uint32 NOR_CMD_READ_NVCR;
489 }FlashConfig;
490 
491 typedef struct FlsNorDeviceConfig_t
492 {
495 
496 extern const FlsNorDeviceConfig FlsNorDevice;
497 /* @} */
498 
499 /* ========================================================================== */
500 /* Function Declarations */
501 /* ========================================================================== */
502 
509 FUNC(void, FLS_CODE) Fls_SwitchMode(boolean dacEnable, boolean xipEnable);
510 
528 FUNC(void, FLS_CODE) Fls_Init(
530 
554 FUNC(Std_ReturnType, FLS_CODE) Fls_Erase(Fls_AddressType TargetAddress, Fls_LengthType Length);
555 
581 FUNC(Std_ReturnType, FLS_CODE) Fls_Write(Fls_AddressType TargetAddress,
583 
609 FUNC(Std_ReturnType, FLS_CODE) Fls_Read(Fls_AddressType SourceAddress,
612 
641 #if (STD_ON == FLS_COMPARE_API)
642 FUNC(Std_ReturnType, FLS_CODE) Fls_Compare(Fls_AddressType SourceAddress, const uint8 *TargetAddressPtr, Fls_LengthType Length);
643 #endif
644 
674 #if (STD_ON == FLS_BLANK_CHECK_API)
675 FUNC(Std_ReturnType, FLS_CODE) Fls_BlankCheck(Fls_AddressType Address, Fls_LengthType Length);
676 #endif
677 
695 #if (STD_ON == FLS_GET_STATUS_API)
696 FUNC(MemIf_StatusType, FLS_CODE) Fls_GetStatus( void );
697 #endif
698 
719 #if (STD_ON == FLS_VERSION_INFO_API)
720 FUNC(Std_ReturnType, FLS_CODE) Fls_GetVersionInfo(Std_VersionInfoType *versioninfo);
721 #endif
722 
740 #if (STD_ON == FLS_GET_JOB_RESULT_API)
741 FUNC(MemIf_JobResultType, FLS_CODE) Fls_GetJobResult( void );
742 #endif
743 
755 FUNC(void, FLS_CODE) Fls_MainFunction(void);
756 
774 #if ( FLS_CANCEL_API == STD_ON )
775 FUNC(void, FLS_CODE) Fls_Cancel(void);
776 #endif
777 
778 #if (STD_ON == OSPI_REGISTER_READBACK_API)
779 
805 FUNC(Std_ReturnType, SPI_CODE) Ospi_RegisterReadback(
806  P2VAR(CSL_ospi_flash_cfgRegs, AUTOMATIC, SPI_APPL_DATA) RegRbPtr);
807 #endif /* #if (STD_ON == SPI_REGISTER_READBACK_API) */
808 
809 #ifdef __cplusplus
810 }
811 #endif
812 
813 #endif /* #ifndef FLS_H_ */
814 
815 /* @} */
ConfigPtr
FLS_CONFIG_DATA ConfigPtr
Definition: Fls.h:529
FlashConfig::NOR_CMD_EXT_QUAD_FAST_PROG
uint32 NOR_CMD_EXT_QUAD_FAST_PROG
Definition: Fls.h:461
FLS_OSPI
@ FLS_OSPI
Definition: Fls.h:332
FlashConfig::NOR_CMD_READ_ENVCR
uint32 NOR_CMD_READ_ENVCR
Definition: Fls.h:464
FlashConfig::NOR_SR_WIP
uint32 NOR_SR_WIP
Definition: Fls.h:447
FlashConfig::NOR_BE_SECTOR_NUM
uint32 NOR_BE_SECTOR_NUM
Definition: Fls.h:402
FlashConfig::NOR_BLOCK_SIZE
uint32 NOR_BLOCK_SIZE
Definition: Fls.h:390
FlashConfig::NOR_NVREG_OFFSET
uint32 NOR_NVREG_OFFSET
Definition: Fls.h:425
FlashConfig::NOR_CMD_OCTAL_DDR_IO_FAST_RD
uint32 NOR_CMD_OCTAL_DDR_IO_FAST_RD
Definition: Fls.h:463
Fls_SectorType::sectorSize
Fls_LengthType sectorSize
Definition: Fls.h:309
FlashConfig::NOR_SECTOR_SIZE
uint32 NOR_SECTOR_SIZE
Definition: Fls.h:392
FlashConfig::NOR_CFG5_NVREG_ADDR
uint32 NOR_CFG5_NVREG_ADDR
Definition: Fls.h:434
FlashConfig::NOR_SECTOR_ERASE_TIMEOUT
uint32 NOR_SECTOR_ERASE_TIMEOUT
Definition: Fls.h:486
FlashConfig::NOR_PAGE_SIZE
uint32 NOR_PAGE_SIZE
Definition: Fls.h:397
FlashConfig::NOR_CFG2_VREG_ADDR
uint32 NOR_CFG2_VREG_ADDR
Definition: Fls.h:440
FlashConfig::NOR_CMD_OCTAL_PROG
uint32 NOR_CMD_OCTAL_PROG
Definition: Fls.h:421
Fls_SectorType::numberOfSectors
Fls_LengthType numberOfSectors
Definition: Fls.h:305
FlashConfig::NOR_RDID_CMD_LENGTH_OCTAL
uint32 NOR_RDID_CMD_LENGTH_OCTAL
Definition: Fls.h:483
FlashConfig::NOR_STS1_VREG_ADDR
uint32 NOR_STS1_VREG_ADDR
Definition: Fls.h:436
FlashConfig::NOR_CMD_RDSR
uint8 NOR_CMD_RDSR
Definition: Fls.h:407
FlashConfig::NOR_QUAD_READ_DUMMY_CYCLE
uint32 NOR_QUAD_READ_DUMMY_CYCLE
Definition: Fls.h:477
Fls_ConfigType::dtrEnable
boolean dtrEnable
Definition: Fls.h:374
Fls_ConfigType::blockSize
uint32 blockSize
Definition: Fls.h:382
FLS_NUMBER_OF_SECTOR_CFG
#define FLS_NUMBER_OF_SECTOR_CFG
Number of Sectorlist configured.
Definition: Fls_Cfg.h:189
OSPI_XFER_LINES_SINGLE
@ OSPI_XFER_LINES_SINGLE
Definition: Fls.h:320
FLS_XSPI
@ FLS_XSPI
Definition: Fls.h:334
FlashConfig::NOR_CMD_WRITE_NVCR
uint32 NOR_CMD_WRITE_NVCR
Definition: Fls.h:465
FlashConfig::NOR_CMD_OCTAL_DDR_O_FAST_RD
uint32 NOR_CMD_OCTAL_DDR_O_FAST_RD
Definition: Fls.h:462
FlashConfig::NOR_OCTAL_READ_DUMMY_CYCLE
uint32 NOR_OCTAL_READ_DUMMY_CYCLE
Definition: Fls.h:473
OSPI_XFER_LINES_QUAD
@ OSPI_XFER_LINES_QUAD
Definition: Fls.h:324
FlashConfig::NOR_CMD_QUAD_PAGE_PROG
uint32 NOR_CMD_QUAD_PAGE_PROG
Definition: Fls.h:479
OSPI_XFER_LINES_DUAL
@ OSPI_XFER_LINES_DUAL
Definition: Fls.h:322
FlashConfig::NOR_CFG5_VREG_ADDR
uint32 NOR_CFG5_VREG_ADDR
Definition: Fls.h:443
Fls_ConfigType::dacEnable
boolean dacEnable
Definition: Fls.h:368
FlashConfig::NOR_CMD_WRITE_ENVCR
uint8 NOR_CMD_WRITE_ENVCR
Definition: Fls.h:467
FlashConfig::NOR_CMD_OCTAL_DDR_READ
uint32 NOR_CMD_OCTAL_DDR_READ
Definition: Fls.h:419
SourceAddressPtr
const uint8 * SourceAddressPtr
Definition: Fls.h:582
xipEnable
boolean xipEnable
Definition: Fls.h:509
FlashConfig::NOR_CMD_QUAD_DDR_O_FAST_RD
uint32 NOR_CMD_QUAD_DDR_O_FAST_RD
Definition: Fls.h:459
Fls_Irq.h
This file contains ISR function declaration for FLS MCAL driver.
FlashConfig::NOR_VREG_OFFSET
uint8 NOR_VREG_OFFSET
Definition: Fls.h:424
FlashConfig::FOUR_BYTE_ADDR_ENABLE
uint32 FOUR_BYTE_ADDR_ENABLE
Definition: Fls.h:389
FLASH_Protocol
FLASH_Protocol
Definition: Fls.h:331
FlashConfig::NOR_CMD_OCTAL_IO_FAST_RD
uint32 NOR_CMD_OCTAL_IO_FAST_RD
Definition: Fls.h:454
Fls_LengthType
uint32 Fls_LengthType
Definition: Fls.h:177
FlashConfig::NOR_CFG4_VREG_ADDR
uint32 NOR_CFG4_VREG_ADDR
Definition: Fls.h:442
FlashConfig::NOR_CMD_QUAD_READ
uint32 NOR_CMD_QUAD_READ
Definition: Fls.h:480
FlashConfig::NOR_PAGE_PROG_TIMEOUT
uint32 NOR_PAGE_PROG_TIMEOUT
Definition: Fls.h:485
FlashConfig::NOR_CMD_QUAD_DDR_IO_READ
uint32 NOR_CMD_QUAD_DDR_IO_READ
Definition: Fls.h:478
FlashConfig::NOR_CMD_BULK_ERASE
uint32 NOR_CMD_BULK_ERASE
Definition: Fls.h:403
FlashConfig::NOR_NUM_PAGES_PER_SECTOR
uint32 NOR_NUM_PAGES_PER_SECTOR
Definition: Fls.h:398
Fls_ConfigType::maxWriteNormalMode
uint32 maxWriteNormalMode
Definition: Fls.h:356
FlashConfig::NOR_CFG4_NVREG_ADDR
uint32 NOR_CFG4_NVREG_ADDR
Definition: Fls.h:433
FlashConfig::NOR_OCTAL_READ_DUMMY_CYCLE_INDAC
uint32 NOR_OCTAL_READ_DUMMY_CYCLE_INDAC
Definition: Fls.h:475
FlashConfig::NOR_CFG3_NVREG_ADDR
uint32 NOR_CFG3_NVREG_ADDR
Definition: Fls.h:432
FlashConfig::NOR_CMD_FAST_READ
uint32 NOR_CMD_FAST_READ
Definition: Fls.h:417
OSPI_xferLines
OSPI_xferLines
Number of lines used for OSPI read/write transaction.
Definition: Fls.h:319
Fls_AddressType
uint32 Fls_AddressType
Type of address type.
Definition: Fls.h:176
FlashConfig::NOR_STS1_NVREG_ADDR
uint32 NOR_STS1_NVREG_ADDR
Definition: Fls.h:427
FlashConfig::NOR_CMD_RDCR_VOL
uint32 NOR_CMD_RDCR_VOL
Definition: Fls.h:451
FlashConfig::NOR_CR_TBPARM
uint32 NOR_CR_TBPARM
Definition: Fls.h:450
FUNC
FUNC(void, FLS_CODE) Fls_SwitchMode(boolean dacEnable
Switch Mode of the OSPI Driver Parameters (in) : boolean dacEnable - should DAC mode be enaled or dis...
FlashConfig::NOR_CFG1_VREG_ADDR
uint32 NOR_CFG1_VREG_ADDR
Definition: Fls.h:439
FlashConfig::NOR_CMD_WRREG
uint8 NOR_CMD_WRREG
Definition: Fls.h:404
FlashConfig::NOR_CMD_BLOCK_ERASE
uint8 NOR_CMD_BLOCK_ERASE
Definition: Fls.h:414
RegRbPtr
SPI_APPL_DATA RegRbPtr
Definition: Fls.h:806
FlashConfig::NOR_NUM_PAGES_PER_BLOCK
uint32 NOR_NUM_PAGES_PER_BLOCK
Definition: Fls.h:399
Fls_ConfigType::maxReadNormalMode
uint32 maxReadNormalMode
Definition: Fls.h:353
FlashConfig::NOR_BULK_ERASE_TIMEOUT
uint32 NOR_BULK_ERASE_TIMEOUT
Definition: Fls.h:488
FlashConfig::NOR_ERASED_DATA
uint8 NOR_ERASED_DATA
Definition: Fls.h:400
FlashConfig::NOR_CMD_QUAD_IO_FAST_RD
uint32 NOR_CMD_QUAD_IO_FAST_RD
Definition: Fls.h:458
FlashConfig::NOR_CMD_RDREG
uint8 NOR_CMD_RDREG
Definition: Fls.h:409
FlsNorDeviceConfig
Definition: Fls.h:492
FlashConfig::NOR_NUM_4K_SECTORS
uint32 NOR_NUM_4K_SECTORS
Definition: Fls.h:394
FlashConfig::NOR_CMD_QUAD_FAST_PROG
uint32 NOR_CMD_QUAD_FAST_PROG
Definition: Fls.h:460
FlashConfig::NOR_STS2_VREG_ADDR
uint32 NOR_STS2_VREG_ADDR
Definition: Fls.h:437
FlashConfig::NOR_STS2_NVREG_ADDR
uint32 NOR_STS2_NVREG_ADDR
Definition: Fls.h:428
P2CONST
P2CONST(void, AUTOMATIC, DIO_CONST) DioConfig_WKUP_GPIO0_B01_ChannelGroupRef[1]
Reference to channel group structure for WKUP_GPIO0_B01 created at config time.
FlashConfig::NOR_CFG3_VREG_ADDR
uint32 NOR_CFG3_VREG_ADDR
Definition: Fls.h:441
FlashConfig::NOR_CMD_RDCR_NVOL
uint32 NOR_CMD_RDCR_NVOL
Definition: Fls.h:452
FlashConfig::FLS_PROTOCOL
FLASH_Protocol FLS_PROTOCOL
Definition: Fls.h:388
versioninfo
DIO_APPL_DATA versioninfo
Definition: Dio.h:478
Fls_SectorType::sectorStartaddress
Fls_AddressType sectorStartaddress
Definition: Fls.h:311
FlashConfig::NOR_4K_SECT_BOT_END_OFFSET
uint32 NOR_4K_SECT_BOT_END_OFFSET
Definition: Fls.h:401
Fls_ConfigType::Fls_JobErrorNotification
Fls_JobErrorNotifyType Fls_JobErrorNotification
Definition: Fls.h:350
FLS_QSPI
@ FLS_QSPI
Definition: Fls.h:336
Fls_ConfigType::ospixferlines
OSPI_xferLines ospixferlines
Definition: Fls.h:378
FlashConfig::NOR_CMD_READ_NVCR
uint32 NOR_CMD_READ_NVCR
Definition: Fls.h:466
OSPI_XFER_LINES_OCTAL
@ OSPI_XFER_LINES_OCTAL
Definition: Fls.h:326
Fls_Cfg.h
This file contains generated pre compile configuration file for FLS MCAL driver.
FlashConfig::NOR_NUM_BLOCKS
uint32 NOR_NUM_BLOCKS
Definition: Fls.h:396
Length
Fls_LengthType Length
Definition: Fls.h:554
FlashConfig::NOR_SINGLE_READ_DUMMY_CYCLE
uint32 NOR_SINGLE_READ_DUMMY_CYCLE
Definition: Fls.h:469
FlashConfig::NOR_CFG1_NVREG_ADDR
uint32 NOR_CFG1_NVREG_ADDR
Definition: Fls.h:430
FlashConfig
Definition: Fls.h:387
Fls_SectorType::sectorPageSize
Fls_LengthType sectorPageSize
Definition: Fls.h:307
FlashConfig::NOR_CMD_OCTAL_O_FAST_RD
uint32 NOR_CMD_OCTAL_O_FAST_RD
Definition: Fls.h:453
Fls_ConfigType::phyEnable
boolean phyEnable
Definition: Fls.h:376
NOR_NUMBER_FLASH
#define NOR_NUMBER_FLASH
Definition: Fls_Cfg.h:192
FlashConfig::NOR_CMD_SECTOR_ERASE
uint8 NOR_CMD_SECTOR_ERASE
Definition: Fls.h:415
FlashConfig::NOR_SINGLE_CMD_READ_DUMMY_CYCLE
uint32 NOR_SINGLE_CMD_READ_DUMMY_CYCLE
Definition: Fls.h:470
Fls_ConfigType::xipEnable
boolean xipEnable
Definition: Fls.h:370
FlashConfig::NOR_CMD_PAGE_PROG
uint32 NOR_CMD_PAGE_PROG
Definition: Fls.h:420
FlashConfig::NOR_CMD_SFRST
uint8 NOR_CMD_SFRST
Definition: Fls.h:413
AUTOMATIC
AUTOMATIC
Definition: Fls.h:529
FlashConfig::NOR_CMD_WREN
uint8 NOR_CMD_WREN
Definition: Fls.h:405
TargetAddressPtr
uint8 * TargetAddressPtr
Definition: Fls.h:610
FlashConfig::NOR_OCTAL_READ_DUMMY_CYCLE_LC_INDAC
uint32 NOR_OCTAL_READ_DUMMY_CYCLE_LC_INDAC
Definition: Fls.h:476
FlashConfig::NOR_CMD_QUAD_O_FAST_RD
uint32 NOR_CMD_QUAD_O_FAST_RD
Definition: Fls.h:457
FlashConfig::NOR_CMD_RDCR
uint32 NOR_CMD_RDCR
Definition: Fls.h:410
FlashConfig::NOR_CMD_WRITE_VCR
uint32 NOR_CMD_WRITE_VCR
Definition: Fls.h:422
FlashConfig::NOR_CMD_READ
uint32 NOR_CMD_READ
Definition: Fls.h:416
Fls_ConfigType
FLS Module Configuration Structure.
Definition: Fls.h:346
FlashConfig::NOR_SIZE
uint32 NOR_SIZE
Definition: Fls.h:393
Fls_ConfigType::flsBaudRateDiv
uint32 flsBaudRateDiv
Definition: Fls.h:380
FlashConfig::NOR_RDID_NUM_BYTES
uint32 NOR_RDID_NUM_BYTES
Definition: Fls.h:444
FlashConfig::NOR_OCTAL_READ_DUMMY_CYCLE_LC
uint32 NOR_OCTAL_READ_DUMMY_CYCLE_LC
Definition: Fls.h:474
Fls_ConfigType::Fls_JobEndNotification
Fls_JobEndNotifyType Fls_JobEndNotification
Definition: Fls.h:347
FlashConfig::NOR_DEVICE_ID
uint32 NOR_DEVICE_ID
Definition: Fls.h:446
FlashConfig::NOR_WRR_WRITE_TIMEOUT
uint32 NOR_WRR_WRITE_TIMEOUT
Definition: Fls.h:487
FlashConfig::NOR_CMD_WRDIS
uint32 NOR_CMD_WRDIS
Definition: Fls.h:406
FlashConfig::NOR_OCTAL_SDR_CMD_READ_DUMMY_CYCLE
uint32 NOR_OCTAL_SDR_CMD_READ_DUMMY_CYCLE
Definition: Fls.h:471
Fls_ConfigType::currentSectorIndex
uint32 currentSectorIndex
Definition: Fls.h:363
FlashConfig::NOR_CMD_OCTAL_READ
uint32 NOR_CMD_OCTAL_READ
Definition: Fls.h:418
FlashConfig::NOR_CMD_READ_VCR
uint32 NOR_CMD_READ_VCR
Definition: Fls.h:423
FlashConfig::NOR_CFG2_NVREG_ADDR
uint32 NOR_CFG2_NVREG_ADDR
Definition: Fls.h:431
Fls_SectorType
FLS Module Flashable Sectors and pages.
Definition: Fls.h:304
FlashConfig::NOR_CMD_EXT_OCTAL_FAST_PROG
uint32 NOR_CMD_EXT_OCTAL_FAST_PROG
Definition: Fls.h:456
FlashConfig::NOR_CMD_RDID
uint8 NOR_CMD_RDID
Definition: Fls.h:411
FlashConfig::NOR_CMD_SRSTE
uint8 NOR_CMD_SRSTE
Definition: Fls.h:412
FlashConfig::NOR_MANF_ID
uint32 NOR_MANF_ID
Definition: Fls.h:445
FlashConfig::NOR_UNIFORM_SECTOR_SIZE
uint32 NOR_UNIFORM_SECTOR_SIZE
Definition: Fls.h:391
FlashConfig::NOR_OCTAL_DDR_CMD_READ_DUMMY_CYCLE
uint32 NOR_OCTAL_DDR_CMD_READ_DUMMY_CYCLE
Definition: Fls.h:472
P2VAR
P2VAR(Eth_ModeType, AUTOMATIC, ETH_APPL_DATA) CtrlModePtr)
FlashConfig::NOR_CMD_RDSR2
uint32 NOR_CMD_RDSR2
Definition: Fls.h:408
FlashConfig::NOR_NUM_SECTORS
uint32 NOR_NUM_SECTORS
Definition: Fls.h:395
FlashConfig::NOR_CMD_OCTAL_FAST_PROG
uint32 NOR_CMD_OCTAL_FAST_PROG
Definition: Fls.h:455
FlsNorDevice
const FlsNorDeviceConfig FlsNorDevice
FlashConfig::NOR_SR_WRPGEN
uint32 NOR_SR_WRPGEN
Definition: Fls.h:448
FlashConfig::NOR_RDID_CMD_LENGTH_SINGLE
uint32 NOR_RDID_CMD_LENGTH_SINGLE
Definition: Fls.h:482
Fls_ConfigType::ospiClkSpeed
uint64 ospiClkSpeed
Definition: Fls.h:372