From f7b71182781dce666c13acd9e98b59e292760007 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Thu, 18 Mar 2021 20:14:00 -0700 Subject: [PATCH] dsp: non-functional code. needs funcall refactor in cc --- dsp/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dsp/main.c b/dsp/main.c index 8c75a08..fd4cae3 100644 --- a/dsp/main.c +++ b/dsp/main.c @@ -8,6 +8,18 @@ void init() { // will set the period later } +int strlen(const char* str) { + int i = 0; + while(str[i] != '\0') { + i++; + } + return i; +} + +void log(const char* stuff) { + uart_writen(uart0, stuff, strlen(stuff)); +} + int main() { init();