Microchip® Advanced Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Configuration Change Protection

See Quick start guide for CCP driver.

Function for writing to protected IO registers.

Modules

 Quick Start Guide(s)
 In this section you can find a list of all Quick Start guides related to the Configuration Change Protection.
 

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 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().