Prusa MINI Firmware overview
|
Macros | |
#define | __HAL_FLASH_SET_LATENCY(__LATENCY__) (*(__IO uint8_t *)ACR_BYTE0_ADDRESS = (uint8_t)(__LATENCY__)) |
Set the FLASH Latency. More... | |
#define | __HAL_FLASH_GET_LATENCY() (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)) |
Get the FLASH Latency. More... | |
#define | __HAL_FLASH_PREFETCH_BUFFER_ENABLE() (FLASH->ACR |= FLASH_ACR_PRFTEN) |
Enable the FLASH prefetch buffer. More... | |
#define | __HAL_FLASH_PREFETCH_BUFFER_DISABLE() (FLASH->ACR &= (~FLASH_ACR_PRFTEN)) |
Disable the FLASH prefetch buffer. More... | |
#define | __HAL_FLASH_INSTRUCTION_CACHE_ENABLE() (FLASH->ACR |= FLASH_ACR_ICEN) |
Enable the FLASH instruction cache. More... | |
#define | __HAL_FLASH_INSTRUCTION_CACHE_DISABLE() (FLASH->ACR &= (~FLASH_ACR_ICEN)) |
Disable the FLASH instruction cache. More... | |
#define | __HAL_FLASH_DATA_CACHE_ENABLE() (FLASH->ACR |= FLASH_ACR_DCEN) |
Enable the FLASH data cache. More... | |
#define | __HAL_FLASH_DATA_CACHE_DISABLE() (FLASH->ACR &= (~FLASH_ACR_DCEN)) |
Disable the FLASH data cache. More... | |
#define | __HAL_FLASH_INSTRUCTION_CACHE_RESET() |
Resets the FLASH instruction Cache. More... | |
#define | __HAL_FLASH_DATA_CACHE_RESET() |
Resets the FLASH data Cache. More... | |
#define | __HAL_FLASH_ENABLE_IT(__INTERRUPT__) (FLASH->CR |= (__INTERRUPT__)) |
Enable the specified FLASH interrupt. More... | |
#define | __HAL_FLASH_DISABLE_IT(__INTERRUPT__) (FLASH->CR &= ~(uint32_t)(__INTERRUPT__)) |
Disable the specified FLASH interrupt. More... | |
#define | __HAL_FLASH_GET_FLAG(__FLAG__) ((FLASH->SR & (__FLAG__))) |
Get the specified FLASH flag status. More... | |
#define | __HAL_FLASH_CLEAR_FLAG(__FLAG__) (FLASH->SR = (__FLAG__)) |
Clear the specified FLASH flags. More... | |
#define __HAL_FLASH_SET_LATENCY | ( | __LATENCY__ | ) | (*(__IO uint8_t *)ACR_BYTE0_ADDRESS = (uint8_t)(__LATENCY__)) |
Set the FLASH Latency.
<strong>LATENCY</strong> | FLASH Latency The value of this parameter depend on device used within the same series |
none |
#define __HAL_FLASH_GET_LATENCY | ( | ) | (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)) |
Get the FLASH Latency.
FLASH | Latency The value of this parameter depend on device used within the same series |
#define __HAL_FLASH_PREFETCH_BUFFER_ENABLE | ( | ) | (FLASH->ACR |= FLASH_ACR_PRFTEN) |
Enable the FLASH prefetch buffer.
none |
#define __HAL_FLASH_PREFETCH_BUFFER_DISABLE | ( | ) | (FLASH->ACR &= (~FLASH_ACR_PRFTEN)) |
Disable the FLASH prefetch buffer.
none |
#define __HAL_FLASH_INSTRUCTION_CACHE_ENABLE | ( | ) | (FLASH->ACR |= FLASH_ACR_ICEN) |
Enable the FLASH instruction cache.
none |
#define __HAL_FLASH_INSTRUCTION_CACHE_DISABLE | ( | ) | (FLASH->ACR &= (~FLASH_ACR_ICEN)) |
Disable the FLASH instruction cache.
none |
#define __HAL_FLASH_DATA_CACHE_ENABLE | ( | ) | (FLASH->ACR |= FLASH_ACR_DCEN) |
Enable the FLASH data cache.
none |
#define __HAL_FLASH_DATA_CACHE_DISABLE | ( | ) | (FLASH->ACR &= (~FLASH_ACR_DCEN)) |
Disable the FLASH data cache.
none |
#define __HAL_FLASH_INSTRUCTION_CACHE_RESET | ( | ) |
Resets the FLASH instruction Cache.
None |
#define __HAL_FLASH_DATA_CACHE_RESET | ( | ) |
Resets the FLASH data Cache.
None |
#define __HAL_FLASH_ENABLE_IT | ( | __INTERRUPT__ | ) | (FLASH->CR |= (__INTERRUPT__)) |
Enable the specified FLASH interrupt.
<strong>INTERRUPT</strong> | FLASH interrupt This parameter can be any combination of the following values:
|
none |
#define __HAL_FLASH_DISABLE_IT | ( | __INTERRUPT__ | ) | (FLASH->CR &= ~(uint32_t)(__INTERRUPT__)) |
Disable the specified FLASH interrupt.
<strong>INTERRUPT</strong> | FLASH interrupt This parameter can be any combination of the following values:
|
none |
#define __HAL_FLASH_GET_FLAG | ( | __FLAG__ | ) | ((FLASH->SR & (__FLAG__))) |
Get the specified FLASH flag status.
<strong>FLAG</strong> | specifies the FLASH flags to check. This parameter can be any combination of the following values:
|
The | new state of FLAG (SET or RESET). |
#define __HAL_FLASH_CLEAR_FLAG | ( | __FLAG__ | ) | (FLASH->SR = (__FLAG__)) |
Clear the specified FLASH flags.
<strong>FLAG</strong> | specifies the FLASH flags to clear. This parameter can be any combination of the following values:
|
none |