Statistics
| Branch: | Tag: | Revision:

amiro-os / modules / PowerManagement_1-1 / chconf.h @ 75d6970a

History | View | Annotate | Download (2.505 KB)

1
/*
2
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
3
Copyright (C) 2016..2018  Thomas Schöpping et al.
4

5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9

10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
GNU General Public License for more details.
14

15
You should have received a copy of the GNU General Public License
16
along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
*/
18

    
19
/**
20
 * @file    os/modules/PowerManagement/chconf.h
21
 * @brief   ChibiOS Configuration file for the PowerManagement v1.1 module.
22
 * @details Contains the application specific kernel settings.
23
 *
24
 * @addtogroup config
25
 * @details Kernel related settings and hooks.
26
 * @{
27
 */
28

    
29
#ifndef _CHCONF_H_
30
#define _CHCONF_H_
31

    
32
#include <aosconf.h>
33

    
34
/*===========================================================================*/
35
/**
36
 * @name System timers settings
37
 * @{
38
 */
39
/*===========================================================================*/
40

    
41
/**
42
 * @brief   System time counter resolution.
43
 * @note    Allowed values are 16 or 32 bits.
44
 */
45
#define CH_CFG_ST_RESOLUTION                32
46

    
47
/**
48
 * @brief   System tick frequency.
49
 * @details Frequency of the system timer that drives the system ticks. This
50
 *          setting also defines the system tick time unit.
51
 */
52
#define CH_CFG_ST_FREQUENCY                 1000000UL
53

    
54
/**
55
 * @brief   Time delta constant for the tick-less mode.
56
 * @note    If this value is zero then the system uses the classic
57
 *          periodic tick. This value represents the minimum number
58
 *          of ticks that is safe to specify in a timeout directive.
59
 *          The value one is not valid, timeouts are rounded up to
60
 *          this value.
61
 */
62
#define CH_CFG_ST_TIMEDELTA                 10
63

    
64
/** @} */
65

    
66
/*===========================================================================*/
67
/**
68
 * @name Port specific settings
69
 * @{
70
 */
71
/*===========================================================================*/
72

    
73
/**
74
 * @brief   NVIC VTOR initialization offset.
75
 * @details On initialization, the code at this address in the flash memory will be executed.
76
 */
77
#define CORTEX_VTOR_INIT 0x00008000U
78

    
79
/** @} */
80

    
81
#include <aos_chconf.h>
82

    
83
#endif  /* _CHCONF_H_ */
84

    
85
/** @} */