![]() |
RAFW Flexible Software Package Documentation
Release v2.0.1
|
|
Functions | |
| void | pll_off (void) |
| Disable PLL. | |
Platform definitions.
Files | |
| file | sdk_defs.h |
| Central include header file with platform definitions. | |
Macros | |
| #define | MEMORY_REMAPPED_BASE |
| Remapped device base address. | |
| #define | MEMORY_REMAPPED_SIZE |
| Remapped device memory size. | |
| #define | MEMORY_ROM_BASE |
| ROM base address. | |
| #define | MEMORY_ROM_SIZE |
| ROM memory size. | |
| #define | MEMORY_OTP_BASE |
| OTP memory base address. | |
| #define | MEMORY_OTP_SIZE |
| OTP memory size. | |
| #define | MEMORY_SYSRAM_BASE |
| SYSTEM RAM base address. | |
| #define | MEMORY_SYSRAM_SIZE |
| SYSTEM RAM size. | |
| #define | MEMORY_CACHERAM_BASE |
| CACHE RAM base address. | |
| #define | MEMORY_CACHERAM_SIZE |
| CACHE RAM size. | |
| #define | MEMORY_OQSPIC_BASE |
| QSPI Flash base address. | |
| #define | MEMORY_QSPIF_SIZE |
| QSPI Flash memory size. | |
| #define | FLASH_SECTOR_SIZE |
| The Sector Size of the OQSPI and QSPI flash memories. | |
| #define | OQSPI_MEM1_VIRTUAL_BASE_ADDR |
| The base address for accessing the Flash memory connected to OQSPI. More... | |
| #define | IS_OQSPI_MEM1_VIRTUAL_ADDRESS(_a) |
| Address is in OQSPI_MEM1 virtual memory region. | |
| #define | QSPI_MEM1_VIRTUAL_BASE_ADDR |
| The base address for accessing the Flash memory connected to QSPIC. More... | |
| #define | WITHIN_RANGE(_a, _s, _e) |
| OTP User Data Encryption Keys memory base address. | |
| #define | IS_REMAPPED_ADDRESS(_a) |
| Address is in the remapped memory region. | |
| #define | IS_ROM_ADDRESS(_a) |
| Address is in the ROM region. | |
| #define | IS_SYSRAM_ADDRESS(_a) |
| Address is in the SYSTEM RAM region. | |
| #define | IS_CACHERAM_ADDRESS(_a) |
| Address is in the CACHE RAM region. | |
| #define | IS_QSPIF_ADDRESS(_a) |
| Address is in the QSPI Flash memory region. | |
| #define | IS_QSPIF_S_ADDRESS(_a) |
| Address is in the QSPI AHB-S(ystem) memory region. | |
| #define | IS_OQSPIC_ADDRESS(_a) |
| Address is in the OQSPI Flash memory region. | |
| #define | IS_OQSPIC_S_ADDRESS(_a) |
| Address is in the OQSPI AHB-S(ystem) memory region. | |
| #define | __RETAINED |
| Zero-initialized data retained memory attribute. | |
| #define | __RETAINED_RW |
| Initialized data retained memory attribute. | |
| #define | __RETAINED_UNINIT |
| Uninitialized data retained memory attribute. Used for variables that should not be initialized during startup. | |
| #define | __RETAINED_CONST_INIT |
| Constant data retained memory attribute. | |
| #define | __RETAINED_CODE |
| Text retained memory attribute. | |
| #define | __UNUSED |
| Attribute to silence warnings about unused parameters/variables/function. | |
| #define | __LTO_EXT |
| Attribute to tell the compiler to consider a symbol as externally visible (for LTO) | |
| #define | ASSERT_WARNING(a) |
| Assert as warning macro. More... | |
| #define | ASSERT_ERROR(a) |
| Assert as error macro. | |
| #define | ASSERT_WARNING_UNINIT(a) |
| Assert as warning macro when the system is still uninitialized. More... | |
| #define | ASSERT_ERROR_UNINIT(a) |
| Assert as error macro when the system is still uninitialized. More... | |
| #define | GLOBAL_INT_DISABLE() |
| Macro to disable all interrupts. More... | |
| #define | GLOBAL_INT_RESTORE() |
| Macro to restore all interrupts. More... | |
| #define | MIN(a, b) |
| Macro the minimum of two values. More... | |
| #define | MAX(a, b) |
| Macro the maximum of two values. More... | |
| #define | SWAP16(a) |
| Macro to swap the bytes of a 16-bit variable. More... | |
| #define | SWAP32(a) |
| Macro to swap the bytes of a 32-bit variable. More... | |
| #define | OPT_MEMCPY |
| Optimized memcpy. | |
| #define | OPT_MEMMOVE |
| Optimized memmove. | |
| #define | OPT_MEMSET(s, c, n) |
| Optimized memset. | |
| #define | REG_MSK(base, reg, field) |
| Access register field mask. More... | |
| #define | REG_POS(base, reg, field) |
| Access register field position. More... | |
| #define | REG_GET_FIELD(base, reg, field, var) |
| Access register field value. More... | |
| #define | REG_SET_FIELD(base, reg, field, var, val) |
| Set register field value. More... | |
| #define | RAW_SET_FIELD(mem, mask, val) |
| Set memory field value. More... | |
| #define | REG_CLR_FIELD(base, reg, field, var) |
| Clear register field value. More... | |
| #define | REG_GET_ADDR_INDEXED(base, reg, interval, index) |
| Get the address of a register value by index (provided a register interval) More... | |
| #define | REG_GETF_INDEXED(base, reg, field, interval, index) |
| Return the value of a register field by index (provided a register interval). More... | |
| #define | REG_GETF(base, reg, field) |
| Return the value of a register field. More... | |
| #define | RAW_GETF(addr, mask) |
| Return the value of a memory field using a mask. More... | |
| #define | REG_SETF(base, reg, field, new_val) |
| Set the value of a register field. More... | |
| #define | RAW_SETF(addr, mask, val) |
| Set the value of a memory field. More... | |
| #define | REG_SET_BIT(base, reg, field) |
| Set a bit of a register. More... | |
| #define | REG_CLR_BIT(base, reg, field) |
| Clear a bit of a register. More... | |
| #define | REG_SET_MASKED(base, reg, mask, value) |
| Sets register bits, indicated by the mask, to a value. More... | |
| #define | RAW_SET_MASKED(addr, mask, value) |
| Sets memory bits, indicated by the mask, to a value. More... | |
| #define | BITS16(base, reg, field, v) |
| Sets 16-bit wide register bits, indicated by the field, to a value v. | |
| #define | BITS32(base, reg, field, v) |
| Sets 32-bit wide register bits, indicated by the field, to a value v. | |
| #define | GETBITS16(base, reg, v, field) |
| Reads 16-bit wide register bits, indicated by the field, to a variable v. | |
| #define | GETBITS32(base, reg, v, field) |
| Reads 32-bit wide register bits, indicated by the field, to a variable v. | |
| #define | ENABLE_DEBUGGER |
| Macro to enable the debugger. | |
| #define | DISABLE_DEBUGGER |
| Macro to disable the debugger. | |
| #define | SWRESET |
| Macro to cause a software reset. | |
| #define | PORRESET |
| Macro to cause a POR reset. it reset the DCORE. | |
| #define OQSPI_MEM1_VIRTUAL_BASE_ADDR |
The base address for accessing the Flash memory connected to OQSPI.
The base address is used in oqspi_automode. Automode is using a single zero-based address region for accessing the Flash devices connected to OQSPI and QSPI controllers (OQSPIC and QSPIC). The defined address sub-regions are: Address region 1: starting at OQSPI_MEM1_VIRTUAL_BASE_ADDR When Flash address is in region 1 then the device connected to OQSPIC is accessed. The maximum region size handled by each QSPI controller in automode is 128MBytes. The default value of each region size is 0x8000000, allowing 128MBytes region for each controller.
| #define QSPI_MEM1_VIRTUAL_BASE_ADDR |
The base address for accessing the Flash memory connected to QSPIC.
The base address is used in qspi_automode.
| #define ASSERT_WARNING | ( | a | ) |
Assert as warning macro.
| #define ASSERT_WARNING_UNINIT | ( | a | ) |
Assert as warning macro when the system is still uninitialized.
| #define ASSERT_ERROR_UNINIT | ( | a | ) |
Assert as error macro when the system is still uninitialized.
| #define GLOBAL_INT_DISABLE | ( | ) |
Macro to disable all interrupts.
This macro must always be used with GLOBAL_INT_RESTORE(). E.g.
| #define GLOBAL_INT_RESTORE | ( | ) |
Macro to restore all interrupts.
This macro must always be used after GLOBAL_INT_DISABLE(). E.g.
| #define MIN | ( | a, | |
| b | |||
| ) |
Macro the minimum of two values.
| [in] | a | First value |
| [in] | b | Second value |
| #define MAX | ( | a, | |
| b | |||
| ) |
Macro the maximum of two values.
| [in] | a | First value |
| [in] | b | Second value |
| #define SWAP16 | ( | a | ) |
Macro to swap the bytes of a 16-bit variable.
| [in] | a | The 16-bit variable |
| #define SWAP32 | ( | a | ) |
Macro to swap the bytes of a 32-bit variable.
| [in] | a | The 32-bit variable |
| #define REG_MSK | ( | base, | |
| reg, | |||
| field | |||
| ) |
Access register field mask.
Returns a register field mask (aimed to be used with local variables). e.g.
| #define REG_POS | ( | base, | |
| reg, | |||
| field | |||
| ) |
Access register field position.
Returns a register field position (aimed to be used with local variables).
| #define REG_GET_FIELD | ( | base, | |
| reg, | |||
| field, | |||
| var | |||
| ) |
Access register field value.
Returns a register field value (aimed to be used with local variables). e.g.
| #define REG_SET_FIELD | ( | base, | |
| reg, | |||
| field, | |||
| var, | |||
| val | |||
| ) |
Set register field value.
Sets a register field value (aimed to be used with local variables). e.g.
| #define RAW_SET_FIELD | ( | mem, | |
| mask, | |||
| val | |||
| ) |
Set memory field value.
Sets a memory field value using a mask (aimed to be used with local variables). e.g.
| #define REG_CLR_FIELD | ( | base, | |
| reg, | |||
| field, | |||
| var | |||
| ) |
Clear register field value.
Clears a register field value (aimed to be used with local variables). e.g.
| #define REG_GET_ADDR_INDEXED | ( | base, | |
| reg, | |||
| interval, | |||
| index | |||
| ) |
Get the address of a register value by index (provided a register interval)
Returns a register address value by index
| #define REG_GETF_INDEXED | ( | base, | |
| reg, | |||
| field, | |||
| interval, | |||
| index | |||
| ) |
Return the value of a register field by index (provided a register interval).
e.g.
| #define REG_GETF | ( | base, | |
| reg, | |||
| field | |||
| ) |
Return the value of a register field.
e.g.
| #define RAW_GETF | ( | addr, | |
| mask | |||
| ) |
Return the value of a memory field using a mask.
e.g.
| #define REG_SETF | ( | base, | |
| reg, | |||
| field, | |||
| new_val | |||
| ) |
Set the value of a register field.
e.g.
| #define RAW_SETF | ( | addr, | |
| mask, | |||
| val | |||
| ) |
| #define REG_SET_BIT | ( | base, | |
| reg, | |||
| field | |||
| ) |
| #define REG_CLR_BIT | ( | base, | |
| reg, | |||
| field | |||
| ) |
| #define REG_SET_MASKED | ( | base, | |
| reg, | |||
| mask, | |||
| value | |||
| ) |
Sets register bits, indicated by the mask, to a value.
e.g.
| #define RAW_SET_MASKED | ( | addr, | |
| mask, | |||
| value | |||
| ) |
Sets memory bits, indicated by the mask, to a value.
e.g.