Statistics
| Branch: | Tag: | Revision:

amiro-os / modules / PowerManagement_1-1 / chconf.h @ 4f3a1f5e

History | View | Annotate | Download (2.505 KB)

1 e545e620 Thomas Schöpping
/*
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 3f899f5d Thomas Schöpping
/**
20 e545e620 Thomas Schöpping
 * @file    os/modules/PowerManagement/chconf.h
21 043cdf33 Thomas Schöpping
 * @brief   ChibiOS Configuration file for the PowerManagement v1.1 module.
22 e545e620 Thomas Schöpping
 * @details Contains the application specific kernel settings.
23 3f899f5d Thomas Schöpping
 *
24
 * @addtogroup config
25
 * @details Kernel related settings and hooks.
26
 * @{
27
 */
28
29 58fe0e0b Thomas Schöpping
#ifndef _CHCONF_H_
30
#define _CHCONF_H_
31
32 e545e620 Thomas Schöpping
#include <aosconf.h>
33
34 58fe0e0b Thomas Schöpping
/*===========================================================================*/
35
/**
36 e545e620 Thomas Schöpping
 * @name System timers settings
37 58fe0e0b Thomas Schöpping
 * @{
38
 */
39
/*===========================================================================*/
40
41
/**
42 e545e620 Thomas Schöpping
 * @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 58fe0e0b Thomas Schöpping
 * @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 e545e620 Thomas Schöpping
#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 58fe0e0b Thomas Schöpping
79
/** @} */
80
81 043cdf33 Thomas Schöpping
#include <aos_chconf.h>
82 58fe0e0b Thomas Schöpping
83
#endif  /* _CHCONF_H_ */
84 3f899f5d Thomas Schöpping
85
/** @} */