@@ -54,7 +54,7 @@ static ssize_t _iowr(void *_cookie, const char *_buf, size_t _n)
5454
5555static FILE * usart_setup (uint32_t dev )
5656{
57- /* Setup USART2 parameters. */
57+ /* Setup USART parameters. */
5858 usart_set_baudrate (dev , 115200 );
5959 usart_set_databits (dev , 8 );
6060 usart_set_parity (dev , USART_PARITY_NONE );
@@ -79,7 +79,7 @@ static void clock_setup(void)
7979 rcc_periph_clock_enable (RCC_GPIOC );
8080 rcc_periph_clock_enable (RCC_GPIOA );
8181
82- /* Enable clocks for USART2 . */
82+ /* Enable clocks for USART . */
8383 rcc_periph_clock_enable (RCC_USART1 );
8484}
8585
@@ -88,10 +88,10 @@ static void gpio_setup(void)
8888 /* Setup GPIO pin GPIO8/9 on GPIO port C for LEDs. */
8989 gpio_mode_setup (GPIOC , GPIO_MODE_OUTPUT , GPIO_PUPD_NONE , GPIO8 | GPIO9 );
9090
91- /* Setup GPIO pins for USART2 transmit. */
91+ /* Setup GPIO pins for USART transmit. */
9292 gpio_mode_setup (GPIOA , GPIO_MODE_AF , GPIO_PUPD_NONE , GPIO9 );
9393
94- /* Setup USART1 TX pin as alternate function. */
94+ /* Setup USART TX pin as alternate function. */
9595 gpio_set_af (GPIOA , GPIO_AF1 , GPIO9 );
9696}
9797
@@ -104,7 +104,7 @@ int main(void)
104104 gpio_setup ();
105105 fp = usart_setup (USART1 );
106106
107- /* Blink the LED (PD12) on the board with every transmitted byte. */
107+ /* Blink the LED on the board with every transmitted byte. */
108108 while (1 ) {
109109 gpio_toggle (GPIOC , GPIO8 ); /* LED on/off */
110110
0 commit comments