/* Clear a Group of Pins Atomic. 
Clear one or more pins of the given GPIO port to 0 in an atomic operation. */
void gpio_clear(uint32_t gpioport, uint16_t gpios)
/* Clear a Group of Pins Atomic. 
Clear one or more pins of the given GPIO port to 0 in an atomic operation. */
void gpio_clear(uint32_t gpioport, uint16_t gpios)
{
	GPIO_BSRR(gpioport) = (gpios << 16);
}