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();