Skip to content

Commit

Permalink
Update blink.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt authored Sep 14, 2024
1 parent fa249c0 commit 61f3f6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/blink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define SYSTEM_CORE_CLOCK 48000000
#include "ch32v003fun.h"

__attribute__((noinline)) void busywait(int x) {
Expand All @@ -8,7 +7,7 @@ __attribute__((noinline)) void busywait(int x) {

int main()
{
SystemInit48HSI();
SystemInit();

// Enable GPIOD.
RCC->APB2PCENR |= RCC_APB2Periph_GPIOD;
Expand Down

0 comments on commit 61f3f6a

Please sign in to comment.