ADD char_line function
This commit is contained in:
parent
545dd0c17d
commit
126cf47bbf
@ -831,9 +831,18 @@ int _write(int fd, unsigned char *p, int len)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void char_line(size_t size, char ch) {
|
||||||
|
while (size--){
|
||||||
|
putchar(ch);
|
||||||
|
}
|
||||||
|
putchar('\n');
|
||||||
|
}
|
||||||
|
|
||||||
void print_system_info(void) {
|
void print_system_info(void) {
|
||||||
puts("***************************************");
|
int len = strlen(PROGRAM_ID " " AUTHOR_STRING);
|
||||||
|
char_line(len,'*');
|
||||||
puts(PROGRAM_ID " " AUTHOR_STRING);
|
puts(PROGRAM_ID " " AUTHOR_STRING);
|
||||||
|
char_line(len,'*');
|
||||||
puts("Compiled: " __DATE__ " " __TIME__);
|
puts("Compiled: " __DATE__ " " __TIME__);
|
||||||
puts(osKernelSystemId);
|
puts(osKernelSystemId);
|
||||||
printf("CMSIS V%u.%u\n", __CM_CMSIS_VERSION_MAIN, __CM_CMSIS_VERSION_SUB);
|
printf("CMSIS V%u.%u\n", __CM_CMSIS_VERSION_MAIN, __CM_CMSIS_VERSION_SUB);
|
||||||
|
Loading…
Reference in New Issue
Block a user