firmware/Temperature/src/MCU/led.c
/////////////////////////////////////////////////////////////////////////
///	\brief	Setup the LED IO
/////////////////////////////////////////////////////////////////////////
\brief  Setup the LED IO
\ brief Setup the LED IO
void Led_Init(void)
{
	RCC->AHBENR |= ((uint32_t)1<<17); 
	GPIOA->MODER  &= ~((uint32_t)0x3 << 10);    
	GPIOA->MODER |= ((uint32_t)1 << 10); 	
	GPIOA->OTYPER &= ~((uint32_t)1 << 5); 	
	GPIOA->OSPEEDR |= ((uint32_t)3 << 10);	
	GPIOA->PUPDR &= ~((uint32_t)2 << 10);	
	Led_Off();
}
void Led_Init ( void ) { RCC -> AHBENR |= ( ( uint32_t ) 1 << 17 ) ; GPIOA -> MODER &= ~ ( ( uint32_t ) 0x3 << 10 ) ; GPIOA -> MODER |= ( ( uint32_t ) 1 << 10 ) ; GPIOA -> OTYPER &= ~ ( ( uint32_t ) 1 << 5 ) ; GPIOA -> OSPEEDR |= ( ( uint32_t ) 3 << 10 ) ; GPIOA -> PUPDR &= ~ ( ( uint32_t ) 2 << 10 ) ; Led_Off ( ) ; }
\brief  Setup the LED IO
\ brief Setup the LED IO
// enable port A clock // configure port // clear the related bits before we set them. Comment the next call will set all bits. // the pin as output // set it to push-pull // set to 50Mhz // no pull up/down resistor