summaryrefslogtreecommitdiff
path: root/cesar/ce/inc/ecos_time.h
blob: 853099a067404f2b144521e337904158719ac6c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef macro_h
#define macro_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    macro.h
 * \brief   « brief description »
 * \ingroup « module »
 *
 * « long description »
 */
#include <cyg/kernel/kapi.h>

#define RTC_HZ CYGNUM_HAL_RTC_DENOMINATOR
#define S_TO_RTC(s) (s*RTC_HZ)
#define US_TO_RTC(us) ((us*RTC_HZ)/1000)

#endif /* macro_h */