aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lufa/Projects/Webserver/Lib/uip/clock.h
blob: bbfa4ac0e3c6308ce2e48f18a338566bf0274c06 (plain)
1
2
3
4
5
6
7
8
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; pa
#ifndef __CLOCK_ARCH_H__
#define __CLOCK_ARCH_H__

#include <stdint.h>
#include <util/atomic.h>

typedef uint16_t clock_time_t;
#define CLOCK_SECOND 100
void clock_init(void);
clock_time_t clock_time(void);

#endif /* __CLOCK_ARCH_H__ */
span> dff04 is begin process (clk) is begin if rst = '0' then null; elsif rising_edge (clk) then if en = '1' then q <= d; end if; end if; end process; end behav;