Periphmeminvbitset - Invert Memory Content And Set Selected Bits; Periphbitclear - Clear Selected Bits; Periphmeminvbitset Arguments; Periphbitclear Arguments - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

2.4.2.4
periphMemInvBitSet - invert memory content and set selected
bits
Call(s):
void periphMemInvBitSet(UWord16 Mask, UWord16 *pAddr);
Arguments:
Mask
pAddr
Description: The periphMemInvBitSet macro reads the memory content, inverts its value and sets
the selected bits in a memory location addressed by parameter pAddr.
Note, that this macro can be used in some special purposes, e.g. for clearing the pending flags.
Example 2-21. periphMemInvBitSet macro usage
periphMemInvBitSet(0x0004, &ArchIO.Sim.rststs);
This code clears the Power On Reset flag in the RSTSTS register.
2.4.2.5

periphBitClear - clear selected bits

Call(s):
void periphBitClear(UWord16 Mask, UWord16 *pAddr);
Arguments:
Mask
pAddr
Description: The periphBitClear macro clears the selected bits in a memory location addressed
by parameter pAddr.
Example 2-22. periphBitClear macro usage
periphBitClear(0xC000, &ArchIO.TimerD.ch0.scr);
This code clears bits 15 and 14 in the timer/counter D0 Status and Control Register (SCR).
FREESCALE SEMICONDUCTOR
Table 2-6. periphMemInvBitSet arguments
in
Bit mask.
in
The memory address.
Table 2-7. periphBitClear arguments
in
Bit mask.
in
The memory address.
Targeting 56F8xxx Platform
Boot Sequence
2-15

Advertisement

Table of Contents
loading

Table of Contents