I’m working in the Particle online IDE. When I don’t select (star) any Photon device BSRRL and BSRRH give an error message.
gpioblink.ino:11:12: error: ‘struct GPIO_TypeDef’ has no member named 'BSRRL’
GPIOA->BSRRL = 0b0010000000000000; // HIGH
gpioblink.ino:16:12: error: ‘struct GPIO_TypeDef’ has no member named 'BSRRH’
GPIOA->BSRRH = 0b0010000000000000; // LOW
While BSRR doesn’t throw any error int that case.
However when I select my device (with the latest 0.6.3 firmware) the error is throw for BSRR and not for BSRRL/BSRRH.
gpioblink.ino:39:12: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
GPIOA->BSRR = valueHigh + ((valueHigh ^ pinMaskD7) << 16);
gpioblink.ino:43:12: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
GPIOA->BSRR = valueLow + ((valueLow ^ pinMaskD7) << 16);
Any idea’s if something has changed in the firmware/IDE related to this? Selecting latest 0.8.0RC1 didn’t work either to prevent an error for BSRR (although I couldn’t update my device firmware).
I’m curious why validating works different in both cases.