Root/tornado/fw/ben/delay.h

Source at commit 2c7d7b78b0e47d4974072fe4013f79b286ea5ddb created 11 years 17 days ago.
By Werner Almesberger, tornado/fw/sim/alg.c: dampen more, to also absorb chain jumps
1/*
2 * fw/ben/delay.h - Ben-specific access to _delay_ms
3 *
4 * Written 2012 by Werner Almesberger
5 * Copyright 2012 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13#ifndef BEN_DELAY_H
14#define BEN_DELAY_H
15
16#include <unistd.h>
17
18
19static inline void _delay_ms(int ms)
20{
21    usleep(1000*ms);
22}
23
24#endif /* BEN_DELAY_H */
25

Archive Download this file

Branches:
master
tornado-v1



interactive