DOKK / manpages / debian 10 / avr-libc / ccp_write_io.3avr.en
avr_cpufunc(3avr) avr-libc avr_cpufunc(3avr)

avr_cpufunc


#define _NOP()
#define _MemoryBarrier()


void ccp_write_io (uint8_t *__ioaddr, uint8_t __value)

#include <avr/cpufunc.h> 

This header file contains macros that access special functions of the AVR CPU which do not fit into any of the other header files.

Implement a read/write memory barrier. A memory barrier instructs the compiler to not cache any memory data in registers beyond the barrier. This can sometimes be more effective than blocking certain optimizations by declaring some object with a volatile qualifier.

See Problems with reordering code for things to be taken into account with respect to compiler optimizations.

Execute a no operation (NOP) CPU instruction. This should not be used to implement delays, better use the functions from <util/delay_basic.h> or <util/delay.h> for this. For debugging purposes, a NOP can be useful to have an instruction that is guaranteed to be not optimized away by the compiler, so it can always become a breakpoint in the debugger.

Write __value to Configuration Change Protected (CCP) IO register at __ioaddr.

Generated automatically by Doxygen for avr-libc from the source code.

Sat Feb 16 2019 Version 2.0.0