You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On STM32, it seems that unshifted port inversion mask applied to the shifted value upon PinRead() function. For example, if the following pin list used:
Pa1Inv, Pb2Inv, Pb3Inv, Pb4Inv, Pb5Inv, Pc10Inv, Pc11Inv, Pc12Inv,
it could be noted, that after read of PortC, value of three bits copied to the right position, then masked (we get 0xe0 in the case of all ones) and then inverted using 0x1c00 mask which is wrong and looks like unshifted PortC mask.
Compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (release) [ARM/embedded-4_9-branch revision 221220]
The text was updated successfully, but these errors were encountered:
On STM32, it seems that unshifted port inversion mask applied to the shifted value upon PinRead() function. For example, if the following pin list used:
Pa1Inv, Pb2Inv, Pb3Inv, Pb4Inv, Pb5Inv, Pc10Inv, Pc11Inv, Pc12Inv,
it could be noted, that after read of PortC, value of three bits copied to the right position, then masked (we get 0xe0 in the case of all ones) and then inverted using 0x1c00 mask which is wrong and looks like unshifted PortC mask.
Compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (release) [ARM/embedded-4_9-branch revision 221220]
The text was updated successfully, but these errors were encountered: