Skip to content
Snippets Groups Projects
Commit 817b6bdd authored by CNLohr's avatar CNLohr
Browse files

Make blink actually blink. No need to turn it into a debug test, too.

parent 8877437d
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -4,10 +4,6 @@
#include "ch32v003fun.h"
#include <stdio.h>
#define APB_CLOCK SYSTEM_CORE_CLOCK
volatile uint32_t count;
int main()
{
SystemInit48HSI();
......@@ -34,9 +30,6 @@ int main()
Delay_Ms( 250 );
GPIOD->BSHR = (1<<16) | (1<<(16+4)); // Turn off GPIODs
GPIOC->BSHR = (1<<16);
Delay_Ms( count );
count++;
if( count > 250 ) count = 0;
Delay_Ms( 250 );
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment