Skip to content

Instantly share code, notes, and snippets.

@hocarm

hocarm/define_io.c

Created Aug 14, 2016
Embed
What would you like to do?
#define PERIPH_BASE (( uint32_t)0x40000000)
#define APB2PERIPH_BASE (PERIPH_BASE + 0x10000)
#define GPIOA_BASE (APB2PERIPH_BASE + 0x0800)
#define GPIOA (( GPIO_TypeDef *) GPIOA_BASE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment