Skip to content

Commit

Permalink
Merge branch 'developing'
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Feb 18, 2023
2 parents 358063c + 00c7821 commit 31632a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pico_Template (v1.8.0)
# Pico_Template (v1.8.1)
An MDK template for Raspberry Pi Pico

- **[new]Support the latest pico-sdk (v1.5.0)**
Expand Down
5 changes: 4 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ static void system_init(void)
#if defined(RTE_Compiler_EventRecorder) && defined(USE_EVR_FOR_STDOUR)
EventRecorderInitialize(0, 1);
#endif

stdio_init_all();

gpio_init(PICO_DEFAULT_LED_PIN);
gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT);

Expand All @@ -125,6 +126,8 @@ static void system_init(void)
dev_key_init(n);
}
#endif


}


Expand Down
2 changes: 2 additions & 0 deletions project/mdk/wrapper/stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static int stdio_get_until(char *buf, int len, absolute_time_t until) {
} while (true);
}

#if __IS_COMPILER_GCC__
int WRAPPER_FUNC(putchar)(int c) {
char cc = (char)c;
stdio_put_string(&cc, 1, false, false);
Expand All @@ -154,6 +155,7 @@ int WRAPPER_FUNC(puts)(const char *s) {
stdio_flush();
return len;
}
#endif

int putchar_raw(int c) {
char cc = (char)c;
Expand Down

0 comments on commit 31632a4

Please sign in to comment.