I recently started playing around with a "Blue Pill" board that uses the STM32F103 MCU. The board has an onboard user LED, that is driven by sinking current into the PC13 pin. This is done because the PC13 pin should not be used for sourcing current higher than 3mA. This is a known property of the BP board.
However, while reading up on the MCU manual, I discovered this:
The GPIOs (general-purpose inputs/outputs) can sink or source up to ±8mA, and sink or source up to ±20mA (with a relaxed VOL/VOH) except PC13, PC14 and PC15 which can sink or source up to +/-3mA. When using the GPIOs PC13 to PC15 in output mode, the speed should not exceed 2 MHz with a maximum load of 30 pF.
Form this, it seems, that PC13 (along with PC14 and PC15) can not sink current above 3mA.
My question:
Is the "Blue Pill" violating the STM32F103 spec by sinking more than 3mA into the PC13 pin?