MCPcopy Create free account
hub / github.com/FastLED/FastLED / reg32

Function reg32

src/platforms/arm/lpc/clockless_arm_lpc_plu.h:129–131  ·  view source on GitHub ↗

Volatile access helpers. C-style cast is the canonical embedded-register access pattern (compare ARM_DEMCR / ARM_DWT_CTRL in clockless_arm_giga.h); the FastLED reinterpret_cast linter explicitly allows C-style casts for MMIO addresses.

Source from the content-addressed store, hash-verified

127// the FastLED reinterpret_cast linter explicitly allows C-style casts for
128// MMIO addresses.
129static inline volatile fl::u32* reg32(fl::u32 base, fl::u32 off) FL_NOEXCEPT {
130 return (volatile fl::u32*)(base + off); // MMIO register address
131}
132
133// LUTn_TRUTH[n] write helper.
134static inline void writeLutTruth(fl::u8 lut, fl::u32 truth_table) FL_NOEXCEPT {

Callers 5

writeLutTruthFunction · 0.85
writeLutInputMuxFunction · 0.85
writeOutputMuxFunction · 0.85
enablePluClockFunction · 0.85
initPluGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected