[Stub] support.
Bit-banding utility functions.
DefinesFunctions
- BB_SRAM_REF
- BB_SRAM_BASE
- BB_PERI_REF
- BB_PERI_BASE
- __io uint32 * __bb_addr(__io void * address, uint32 bit, uint32 bb_base, uint32 bb_ref)
- __io uint32 * bb_sramp(__io void * address, uint32 bit)
Obtain a pointer to the bit-band address corresponding to a bit in a volatile SRAM address.
Parameters:
- address -
Address in the bit-banded SRAM region
- bit -
Bit in address to bit-band
- uint8 bb_sram_get_bit(__io void * address, uint32 bit)
Get a bit from an address in the SRAM bit-band region.
Parameters:
- address -
Address in the SRAM bit-band region to read from
- bit -
Bit in address to read
Return: bit’s value in address.
- void bb_sram_set_bit(__io void * address, uint32 bit, uint8 val)
Set a bit in an address in the SRAM bit-band region.
Parameters:
- address -
Address in the SRAM bit-band region to write to
- bit -
Bit in address to write to
- val -
Value to write for bit, either 0 or 1.
- __io uint32 * bb_perip(__io void * address, uint32 bit)
Obtain a pointer to the bit-band address corresponding to a bit in a peripheral address.
Parameters:
- address -
Address in the bit-banded peripheral region
- bit -
Bit in address to bit-band
- uint8 bb_peri_get_bit(__io void * address, uint32 bit)
Get a bit from an address in the peripheral bit-band region.
Parameters:
- address -
Address in the peripheral bit-band region to read from
- bit -
Bit in address to read
Return: bit’s value in address.
- void bb_peri_set_bit(__io void * address, uint32 bit, uint8 val)
Set a bit in an address in the peripheral bit-band region.
Parameters:
- address -
Address in the peripheral bit-band region to write to
- bit -
Bit in address to write to
- val -
Value to write for bit, either 0 or 1.