Include sleep into library

This commit is contained in:
Matte23
2024-11-03 15:01:54 +01:00
parent 6d0a60881c
commit ba22538626
5 changed files with 19 additions and 7 deletions

View File

@@ -1,6 +1,15 @@
#include "library.h"
#include "os/driver/usart.h"
#include "os/delay.h"
void puts(const char *s) {
usart_tx_write_string(s);
}
void usleep(unsigned int usec) {
delay_ms(usec);
}
void sleep(unsigned int sec) {
usleep(sec*1000);
}