posiadam płytkę stm32l152 discovery i pragnę a nawet muszę się nauczyć obsługi samego procesora a z pomocą płytki startowej zawsze jest łatwiej. Chciałem na początek pobawić się diodą LED3
#include "stm32l1xx.h"
#include <stm32l1xx_gpio.h>
#include <stm32l1xx.h>
#include "misc.h"
#define LED1_ON GPIO_ResetBits(GPIOB, GPIO_Pin_7)
#define LED1_OFF GPIO_SetBits(GPIOB, GPIO_Pin_7)
//void Delay(volatile unsigned);
int main(void)
{
while(1)
{
LED1_ON;
// Delay(10000);
// LED1_OFF;
// Delay(10000);
}
//}
//void Delay(volatile unsigned count) {
//while(count--);
}
kod niestety w żadnym wypadku nie działa.
#include "misc.h"
ale nie konieczniealagner