X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Fasm.h;h=425a8eeafebe2c94b1169aa30a95c3ac8b6506f0;hp=f5440009ec6e5964d0ec79b252ffb658f9a17bb2;hb=32ccc707bc0821d7ff4248fe9f58e92e9c6ebef9;hpb=993155fee2327f1f3cda285c9548bbb09688a3f3 diff --git a/src/asm.h b/src/asm.h index f544000..425a8ee 100644 --- a/src/asm.h +++ b/src/asm.h @@ -5,11 +5,11 @@ #define disable_intr() asm volatile ("cpsid i") #define mem_barrier() asm volatile ("dmb" ::: "memory") -/* #define delay(x) asm volatile ( \ "0: subs %0, %0, #1\n\t" \ "bne 0b\n\t" \ :: "r"(x) : "cc") -*/ + +#define halt_cpu() asm volatile("wfe"); #endif /* ASM_H_ */