AnsweredAssumed Answered

Output word into two bytes on different ports. Is there a faster way?

Question asked by buslik on Jun 26, 2014
Latest reply on Jun 26, 2014 by buslik
I would like to optimize next snippet:
void write16Data(u16 data) {
    GPIOA->BSRR = 0x00ff0000 | (u8)(data & 0xff);
    GPIOB->BSRR = 0x00ff0000 | (u8)(data >> 8);
}
Any ideas?

Outcomes