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.
| 127 | // the FastLED reinterpret_cast linter explicitly allows C-style casts for |
| 128 | // MMIO addresses. |
| 129 | static 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. |
| 134 | static inline void writeLutTruth(fl::u8 lut, fl::u32 truth_table) FL_NOEXCEPT { |
no outgoing calls
no test coverage detected