arm: async echo app

This commit is contained in:
2022-05-16 20:56:25 -07:00
parent 30d9a2d7c8
commit 932b8d4582
25 changed files with 3043 additions and 29 deletions

10
arm/sleep.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
inline void sleep(int ms) {
for (int i = 0; i < ms; i++) {
// sleep for 1 ms
for (int j = 0; j < 22000; j++) {
asm("");
}
}
}