NOR_ADDR_SHIFT macro
NOR memory address shifting.
Syntax
#define NOR_ADDR_SHIFT(__NOR_ADDRESS, __NOR_MEMORY_WIDTH_, __ADDRESS__) \
((uint32_t)(((__NOR_MEMORY_WIDTH_) == NOR_MEMORY_16B)? \
((uint32_t)((__NOR_ADDRESS) + (2U * (__ADDRESS__)))): \
((uint32_t)((__NOR_ADDRESS) + (__ADDRESS__)))))
Arguments
__NOR_ADDRESS
NOR base address
__NOR_MEMORY_WIDTH_
NOR memory width
__ADDRESS__
NOR memory address
Return value
NOR shifted address value