Example:
/**
* @brief This function enables the peripheral clocks on GPIO port C,
* configures GPIO PC9 in output mode for the Green LED pin,
* configures GPIO PC8 in output mode for the orange LED pin,
* @param None
* @retval None
*/
__INLINE void ConfigureGPIO(void)
{
/* (1) Enable the peripheral clock of GPIOC */
/* (2) Select output mode (01) on GPIOC pin 8 and 9 */
RCC->AHBENR |= RCC_AHBENR_GPIOCEN; /* (1) */
GPIOC->MODER = (GPIOC->MODER & ~(GPIO_MODER_MODER8|GPIO_MODER_MODER9)) \
| (GPIO_MODER_MODER8_0|GPIO_MODER_MODER9_0); /* (2) */
}