Skip to content

Instantly share code, notes, and snippets.

View barbeque's full-sized avatar

Mike barbeque

  • Calgary AB Canada
View GitHub Profile
@barbeque
barbeque / resistor_code.py
Created February 28, 2012 03:55 — forked from shilrobot/resistor_code.py
cleaned up keyboard binding
colors = [
(0,0,0),
(150,75,0),
(255,0,0),
(255,165,0),
(255,255,0),
(154,205,50),
(100,149,237),
@barbeque
barbeque / gist:07dbaf74f3cd70a731d3
Created July 11, 2015 17:13
SetSysClock called twice?
Breakpoint 6, SystemInit ()
at /Users/mike/Code/cross-compilers/STM32F0xx_StdPeriph_Lib_V1.5.0/Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/system_stm32f0xx.c:162
162 RCC->CR |= (uint32_t)0x00000001;
(gdb) step
160 {
(gdb) step
162 RCC->CR |= (uint32_t)0x00000001;
(gdb) step
166 RCC->CFGR &= (uint32_t)0xF8FFB80C;
(gdb) step