Question.5
A developer uses a non-type template parameter for hardware addressing:
template<uint32_t BaseAddr>
class GPIO {
public:
static void setHigh() {
*(volatile uint32_t*)(BaseAddr + 0x18) = 1;
}
};
using LED = GPIO<0x40021000>;
LED::setHigh();What instruction does LED::setHigh() compile to?