Skip to content

Commit

Permalink
sw: Remove duplicate csleep
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilKoe committed May 9, 2024
1 parent 4120e61 commit 823f1a5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ volatile struct ring_buf *g_h2a_mbox;
/***********************************************************************************
* FUNCTIONS
***********************************************************************************/
__attribute__((optimize("O0"))) void csleep(uint32_t cycles) {
uint32_t start = snrt_mcycle();
while ((snrt_mcycle() - start) < cycles) {}
}

int syscall(uint64_t which, uint64_t arg0, uint64_t arg1, uint64_t arg2,
uint64_t arg3, uint64_t arg4) {
Expand Down

0 comments on commit 823f1a5

Please sign in to comment.