Changeset a783ca4 in mainline for src/time/delay.c
- Timestamp:
- 2005-10-11T20:25:46Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26f9943
- Parents:
- a016b63
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/time/delay.c
ra016b63 ra783ca4 39 39 * is implemented as CPU calibrated active loop. 40 40 * 41 * @param microseconds Number of usec to sleep. 42 * 41 * @param usec Number of microseconds to sleep. 43 42 */ 44 void delay(__u32 microseconds)43 void delay(__u32 usec) 45 44 { 46 45 pri_t pri; … … 50 49 cpu_priority_high() before calling the asm_delay_loop(). */ 51 50 pri = cpu_priority_high(); 52 asm_delay_loop( microseconds* CPU->delay_loop_const);51 asm_delay_loop(usec * CPU->delay_loop_const); 53 52 cpu_priority_restore(pri); 54 53 }
Note:
See TracChangeset
for help on using the changeset viewer.