Problem understanding some BSRR assignment operations
BSRR is 32-bit register. Low 16 bits are the SET function, high 16 bits are the RESET function. IO pin defines are 16-bit bitmasks. Therefore to reset bits you write the mask to 16 higher bits.