See Quick start guide for CCP driver.
Function for writing to protected IO registers.
|
void | ccp_write_io (void *addr, uint8_t value) |
| Write to a CCP-protected 8-bit I/O register. More...
|
|
#define CONFIG_MEMORY_MODEL_LARGE |
Configuration symbol to enable 24 bit pointers.
#define CONFIG_MEMORY_MODEL_SMALL |
Configuration symbol to enable 16 bit pointers.
- Note
- If no memory model is defined, SMALL is default.
#define CONFIG_MEMORY_MODEL_TINY |
Configuration symbol to enable 8 bit pointers.
void ccp_write_io |
( |
void * |
addr, |
|
|
uint8_t |
value |
|
) |
| |
Write to a CCP-protected 8-bit I/O register.
- Parameters
-
addr | Address of the I/O register |
value | Value to be written |
- Note
- Using IAR Embedded workbench, the choice of memory model has an impact on calling convention. The memory model is not visible to the preprocessor, so it must be defined in the Assembler preprocessor directives.
Referenced by lowpower_init(), nvm_exec(), nvm_issue_command(), nvm_issue_flash_range_crc(), pmic_set_vector_location(), reset_do_soft_reset(), sysclk_disable_usb(), sysclk_enable_usb(), sysclk_init(), sysclk_lock(), sysclk_set_prescalers(), sysclk_set_source(), vbat_init(), wdt_disable(), wdt_disable_window_mode(), wdt_enable(), wdt_enable_window_mode(), wdt_reset_mcu(), wdt_set_timeout_period(), and wdt_set_window_period().