mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
21 lines
310 B
C
21 lines
310 B
C
#define USE_STDPERIPH_DRIVER
|
|
#include "stm32_p103.h"
|
|
#include "stm32_p103.h"
|
|
|
|
void busyLoop(uint32_t delay )
|
|
{
|
|
while(delay) delay--;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
init_led();
|
|
|
|
while(1) {
|
|
GPIOC->BRR = 0x00001000;
|
|
busyLoop(500000);
|
|
GPIOC->BSRR = 0x00001000;
|
|
busyLoop(500000);
|
|
}
|
|
}
|