Skip to content

Instantly share code, notes, and snippets.

View AnttiNykanen's full-sized avatar

Antti Nykänen AnttiNykanen

View GitHub Profile
@AnttiNykanen
AnttiNykanen / main.c
Created September 29, 2014 09:45
STM32F103C8 USART example
#include "stm32f10x.h"
#include "stm32f10x_conf.h"
int main(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
USART_InitTypeDef USART_InitStructure;
uint16_t rxbuf[64];
int rxbuf_pos = 0;