- 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
- Location:
- src/time
- Files:
-
- 2 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 } -
src/time/timeout.c
ra016b63 ra783ca4 91 91 * 92 92 * @param t Timeout list. 93 * @pa tam time Number of usec in the future to execute93 * @param time Number of usec in the future to execute 94 94 * the handler. 95 95 * @param f Timeout handler function.
Note:
See TracChangeset
for help on using the changeset viewer.
