2017-07-02 18:38:29 +02:00
|
|
|
#include <stm32f7xx.h>
|
|
|
|
|
2017-07-06 10:32:04 +02:00
|
|
|
|
2017-07-02 18:38:29 +02:00
|
|
|
unsigned int i = 0x12345678;
|
|
|
|
unsigned char c = 2;
|
|
|
|
|
|
|
|
int main(void) {
|
2017-07-05 23:21:24 +02:00
|
|
|
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOBEN;
|
|
|
|
GPIOB->MODER |= (1<<14*2) | (1<<7*2) | (1<<0*2);
|
|
|
|
GPIOB->ODR |= (1<<14) | (1<<0);
|
|
|
|
SysTick_Config(800000);
|
2017-07-02 18:38:29 +02:00
|
|
|
while(1) {
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
2017-07-05 23:21:24 +02:00
|
|
|
|
|
|
|
void SysTick_Handler(void) {
|
|
|
|
GPIOB->ODR ^= (1<<14) | (1<<7) | 1;
|
|
|
|
}
|