1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2025-10-18 17:04:02 -04:00

uptime -- tells how long the system has been running

This commit is contained in:
2020-12-05 08:13:29 +08:00
parent 3d6cd1bdc2
commit fd13d29f0c
7 changed files with 275 additions and 2 deletions

12
system.h Normal file
View File

@@ -0,0 +1,12 @@
/* system.h -- system services */
/* Copyright (c) 2020 Renaud Fivet */
extern volatile unsigned uptime ; /* seconds elapsed since boot */
int init( void) ; /* System initialization, called once at startup */
void kputc( unsigned char c) ; /* character output */
int kputs( const char s[]) ; /* string output */
void yield( void) ; /* give way */
/* end of system.h */