ADD char_line function

This commit is contained in:
Thomas Kuschel 2024-10-17 09:11:28 +02:00
parent 545dd0c17d
commit 126cf47bbf

View File

@ -831,9 +831,18 @@ int _write(int fd, unsigned char *p, int len)
return len;
}
void char_line(size_t size, char ch) {
while (size--){
putchar(ch);
}
putchar('\n');
}
void print_system_info(void) {
puts("***************************************");
int len = strlen(PROGRAM_ID " " AUTHOR_STRING);
char_line(len,'*');
puts(PROGRAM_ID " " AUTHOR_STRING);
char_line(len,'*');
puts("Compiled: " __DATE__ " " __TIME__);
puts(osKernelSystemId);
printf("CMSIS V%u.%u\n", __CM_CMSIS_VERSION_MAIN, __CM_CMSIS_VERSION_SUB);