Skip to content

Instantly share code, notes, and snippets.

View miek's full-sized avatar

Mike Walters miek

View GitHub Profile
@miek
miek / gist:1f52470531ecb1a81fa8
Last active December 20, 2015 14:41 — forked from g7uvw/gist:8c8627f5ab7b7a367289
STMF401RE Nucleo issue
#include "stm32f4xx.h"
int main (void)
{
RCC->AHB1RSTR |= RCC_AHB1RSTR_GPIOARST; // Reset GPIOA
RCC->AHB1RSTR = 0; // Exit reset state
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN; // Enable GPIOA clock
GPIOA->MODER |= GPIO_MODER_MODER5_0; // Enable Output on D13