Atmel Software Framework

Configuration Change Protection

See Quick start guide for CCP driver.

Function for writing to protected IO registers.

Functions

void ccp_write_io (void *addr, uint8_t value)
 Write to a CCP-protected 8-bit I/O register. More...
 

IAR Memory Model defines.

#define CONFIG_MEMORY_MODEL_TINY
 Configuration symbol to enable 8 bit pointers. More...
 
#define CONFIG_MEMORY_MODEL_SMALL
 Configuration symbol to enable 16 bit pointers. More...
 
#define CONFIG_MEMORY_MODEL_LARGE
 Configuration symbol to enable 24 bit pointers. 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
addrAddress of the I/O register
valueValue 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 nvm_exec(), nvm_issue_command(), nvm_issue_flash_range_crc(), pmic_set_vector_location(), reset_do_soft_reset(), sysclk_disable_module(), sysclk_init(), sysclk_lock(), sysclk_set_prescalers(), and sysclk_set_source().