X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Finterface.c;h=8afac28a9490dfc45e9807f3388d25132c0bebc5;hb=c518754bec4758cce7d899463f9c68612c3bf4e4;hp=59e750e1a3d2272494e33e47d971b692a56949c4;hpb=8133c7b8c11f10c4ca306af5716b2d16233d962b;p=mTask.git diff --git a/client/interface.c b/client/interface.c index 59e750e..8afac28 100644 --- a/client/interface.c +++ b/client/interface.c @@ -86,23 +86,22 @@ void delay(long ms) void setup(void) { - palSetPadMode(GPIOG, 9, PAL_MODE_ALTERNATE(8)); // USART6 TX - palSetPadMode(GPIOG, 14, PAL_MODE_ALTERNATE(8)); // USART6 RX +// palSetPadMode(GPIOG, 9, PAL_MODE_ALTERNATE(8)); // USART6 TX +// palSetPadMode(GPIOG, 14, PAL_MODE_ALTERNATE(8)); // USART6 RX halInit(); chSysInit(); sdStart(&SD3, NULL); -// sdStart(&SD6, NULL); - -// while(1){ -// sdPut(&SD3, sdGet(&SD6)); -// delay(50); -// } } void debug(char *fmt, ...) { - (void)fmt; + write_byte('m'); + for(unsigned int i = 0; i