Initial commit

This commit is contained in:
Andreas Mieke 2018-03-15 14:34:23 +01:00
commit 1f0e2aad64
64 changed files with 2531 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#include "stm32f10x.h"
void init_leds_switches(void) {
RCC->APB2ENR |= RCC_APB2ENR_IOPBEN;
GPIOB->CRH &= 0x00000000;
GPIOB->CRH |= 0x00000003;
}
int main()
{
int i;
init_leds_switches();
for (;;) {
GPIOB->ODR = 0x01FF & ~(GPIOB->ODR & 0x01FF);
for (i=0; i < 65535; i++);
for (i=0; i < 65535; i++);
for (i=0; i < 65535; i++);
}
}