Posted on February 18, 2014 at 11:59I'm working with the STM32F051 I have this code which works for usart1 but not for usart2.appreciate any help-Gilad#include ''stm32f0xx.h''#define UART2#ifdef UART1 #define USARTx USART1 #define DATA 0x31#else...
Posted on February 18, 2014 at 14:31Hi,According to the driver this line should do it: /* Enable USART2 clock */ RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);