/* param base GPIO base pointer. param pin GPIO port pin number. param output GPIOpin output logic level. */
void GPIO_PinWrite(GPIO_Type *base, uint32_t pin, uint8_t output)
/* param base GPIO base pointer. param pin GPIO port pin number. param output GPIOpin output logic level. */
void GPIO_PinWrite(GPIO_Type *base, uint32_t pin, uint8_t output)
{
    assert(pin < 32U);
    if (output == 0U)
    {
        base->DR &= ~(1UL << pin);
    }
    else
    {
        base->DR |= (1UL << pin);
    }
}