Revision 8543d0d9

View differences:

modules/RT-STM32L476RG-NUCLEO64/.cproject
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
3
	<storageModule moduleId="org.eclipse.cdt.core.settings">
4
		<cconfiguration id="0.603687198">
5
			<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.603687198" moduleId="org.eclipse.cdt.core.settings" name="Default">
6
				<externalSettings/>
7
				<extensions>
8
					<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
9
					<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
10
					<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
11
					<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12
					<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
13
					<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14
				</extensions>
15
			</storageModule>
16
			<storageModule moduleId="cdtBuildSystem" version="4.0.0">
17
				<configuration artifactName="${ProjName}" buildProperties="" description="" id="0.603687198" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg">
18
					<folderInfo id="0.603687198." name="/" resourcePath="">
19
						<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.586709963" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
20
							<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.586709963.1446538340" name=""/>
21
							<builder autoBuildTarget="all" cleanBuildTarget="clean" enableAutoBuild="false" enableCleanBuild="true" enabledIncrementalBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.1490952991" incrementalBuildTarget="all" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
22
							<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1134067298" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
23
							<tool id="org.eclipse.cdt.build.core.settings.holder.1927705259" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
24
								<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1013764026" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
25
							</tool>
26
							<tool id="org.eclipse.cdt.build.core.settings.holder.1367371861" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
27
								<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1824820452" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
28
							</tool>
29
							<tool id="org.eclipse.cdt.build.core.settings.holder.1584496456" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
30
								<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1781547795" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
31
							</tool>
32
						</toolChain>
33
					</folderInfo>
34
				</configuration>
35
			</storageModule>
36
			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
37
		</cconfiguration>
38
	</storageModule>
39
	<storageModule moduleId="cdtBuildSystem" version="4.0.0">
40
		<project id="RT-STM32L476RG-NUCLEO.null.1004513353" name="RT-STM32L476RG-NUCLEO"/>
41
	</storageModule>
42
	<storageModule moduleId="scannerConfiguration">
43
		<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
44
		<scannerConfigBuildInfo instanceId="0.603687198">
45
			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
46
		</scannerConfigBuildInfo>
47
	</storageModule>
48
	<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
49
	<storageModule moduleId="refreshScope" versionNumber="2">
50
		<configuration configurationName="Default">
51
			<resource resourceType="PROJECT" workspacePath="/RT-STM32L476RG-NUCLEO"/>
52
		</configuration>
53
	</storageModule>
54
</cproject>
modules/RT-STM32L476RG-NUCLEO64/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>RT-STM32L476RG-NUCLEO64</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10
			<triggers>clean,full,incremental,</triggers>
11
			<arguments>
12
			</arguments>
13
		</buildCommand>
14
		<buildCommand>
15
			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
16
			<triggers>full,incremental,</triggers>
17
			<arguments>
18
			</arguments>
19
		</buildCommand>
20
	</buildSpec>
21
	<natures>
22
		<nature>org.eclipse.cdt.core.cnature</nature>
23
		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
24
		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
25
	</natures>
26
	<linkedResources>
27
		<link>
28
			<name>board</name>
29
			<type>2</type>
30
			<locationURI>CHIBIOS/os/hal/boards/ST_NUCLEO64_L476RG</locationURI>
31
		</link>
32
		<link>
33
			<name>os</name>
34
			<type>2</type>
35
			<locationURI>CHIBIOS/os</locationURI>
36
		</link>
37
		<link>
38
			<name>test</name>
39
			<type>2</type>
40
			<locationURI>CHIBIOS/test</locationURI>
41
		</link>
42
	</linkedResources>
43
</projectDescription>
modules/RT-STM32L476RG-NUCLEO64/alldconf.h
1 1
/*
2 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.
3
Copyright (C) 2016..2019  Thomas Schöpping et al.
4 4

  
5 5
This program is free software: you can redistribute it and/or modify
6 6
it under the terms of the GNU General Public License as published by
......
21 21
 * @brief   AMiRo-LLD configuration file for the PowerManagement v1.1 module.
22 22
 * @details Contains the application specific AMiRo-LLD settings.
23 23
 *
24
 * @addtogroup powermanagement_lld_config <-- anpassen
24
 * @addtogroup STM32L476RG-NUCLEO64
25 25
 * @{
26 26
 */
27 27

  
......
42 42
 *          By definition time is represented at microsecond precision.
43 43
 */
44 44
#define AMIROLLD_CFG_TIME_SIZE          32
45
#define AMIROLLD_CFG_USE_MPU6050
45

  
46
/**
47
 * @brief   Enable flag for the MPU6050 IMU.
48
 */
49
//#define AMIROLLD_CFG_USE_MPU6050
46 50

  
47 51
#endif /* _ALLDCONF_H_ */
48 52

  
modules/RT-STM32L476RG-NUCLEO64/aosconf.h
1 1
/*
2 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.
3
Copyright (C) 2016..2019  Thomas Schöpping et al.
4 4

  
5 5
This program is free software: you can redistribute it and/or modify
6 6
it under the terms of the GNU General Public License as published by
......
17 17
*/
18 18

  
19 19
/**
20
 * @file    
20
 * @file
21 21
 * @brief   AMiRo-OS Configuration file for the PowerManagement v1.1 module.
22 22
 * @details Contains the application specific AMiRo-OS settings.
23 23
 *
......
62 62

  
63 63
/**
64 64
 * @brief   Flag to enable/disable unit tests.
65
 * @note    Setting this flag will implicitely enable the shell.
65 66
 */
66 67
#if !defined(OS_CFG_TESTS_ENABLE)
67
  #define AMIROOS_CFG_TESTS_ENABLE              true
68
  #define AMIROOS_CFG_TESTS_ENABLE              false
68 69
#else
69 70
  #define AMIROOS_CFG_TESTS_ENABLE              OS_CFG_TESTS_ENABLE
70 71
#endif
......
79 80
#endif
80 81

  
81 82
/**
83
 * @brief   Mask for the control thread to listen to certain IO events.
84
 * @note    Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration.
85
 */
86
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK)
87
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    MODULE_OS_IOEVENTFLAGS_USERBUTTON
88
#else
89
  #define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK    OS_CFG_MAIN_LOOP_IOEVENT_MASK
90
#endif
91

  
92
/**
82 93
 * @brief   Timeout value when waiting for events in the main loop in microseconds.
83 94
 * @details A value of 0 deactivates the timeout.
84 95
 */
......
106 117
  #define AMIROOS_CFG_SSSP_ENABLE               OS_CFG_SSSP_ENABLE
107 118
#endif
108 119

  
109
#if (AMIROOS_CFG_SSSP_ENABLE == true)
110 120
/**
111 121
 * @brief   Flag to set the module as SSSP master.
112 122
 * @details There must be only one module with this flag set to true in a system.
113 123
 */
114 124
#if !defined(OS_CFG_SSSP_MASTER)
115
  #define AMIROOS_CFG_SSSP_MASTER               true
125
  #define AMIROOS_CFG_SSSP_MASTER               false
116 126
#else
117 127
  #define AMIROOS_CFG_SSSP_MASTER               OS_CFG_SSSP_MASTER
118 128
#endif
......
122 132
 * @details There must be only one module with this flag set to true in a system.
123 133
 */
124 134
#if !defined(OS_CFG_SSSP_STACK_START)
125
  #define AMIROOS_CFG_SSSP_STACK_START          true
135
  #define AMIROOS_CFG_SSSP_STACK_START          false
126 136
#else
127 137
  #define AMIROOS_CFG_SSSP_STACK_START          OS_CFG_SSSP_STACK_START
128 138
#endif
......
132 142
 * @details There must be only one module with this flag set to true in a system.
133 143
 */
134 144
#if !defined(OS_CFG_SSSP_STACK_END)
135
  #define AMIROOS_CFG_SSSP_STACK_END            true
145
  #define AMIROOS_CFG_SSSP_STACK_END            false
136 146
#else
137 147
  #define AMIROOS_CFG_SSSP_STACK_END            OS_CFG_SSSP_STACK_END
138 148
#endif
......
157 167
  #define AMIROOS_CFG_SSSP_SYSSYNCPERIOD        OS_CFG_SSSP_SYSSYNCPERIOD
158 168
#endif
159 169

  
160
#endif
161 170
/** @} */
162 171

  
163 172
/*===========================================================================*/
......
170 179
/**
171 180
 * @brief   Shell enable flag.
172 181
 */
173
#if !defined(OS_CFG_SHELL_ENABLE) && (AMIROOS_CFG_TESTS_ENABLE != true)
174
  #define AMIROOS_CFG_SHELL_ENABLE              true
175
#elif (AMIROOS_CFG_TESTS_ENABLE == true)
182
#if !defined(OS_CFG_SHELL_ENABLE)
176 183
  #define AMIROOS_CFG_SHELL_ENABLE              true
177 184
#else
178 185
  #define AMIROOS_CFG_SHELL_ENABLE              OS_CFG_SHELL_ENABLE
modules/RT-STM32L476RG-NUCLEO64/board.mk
1

  
2
# absolute path to this directory
3
BOARD_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
4

  
5
# List of all the board related files.
6
BOARDSRC = $(BOARD_DIR)board.c
7

  
8
# Required include directories
9
BOARDINC = $(BOARD_DIR)
10

  
11
# linker path
12
BOARDLD = $(BOARD_DIR)
13

  
14
# Shared variables ???
15
ALLCSRC += $(BOARDSRC)
16
ALLINC  += $(BOARDINC)
modules/RT-STM32L476RG-NUCLEO64/chconf.h
1 1
/*
2
    ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
3

  
4
    Licensed under the Apache License, Version 2.0 (the "License");
5
    you may not use this file except in compliance with the License.
6
    You may obtain a copy of the License at
7

  
8
        http://www.apache.org/licenses/LICENSE-2.0
9

  
10
    Unless required by applicable law or agreed to in writing, software
11
    distributed under the License is distributed on an "AS IS" BASIS,
12
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
    See the License for the specific language governing permissions and
14
    limitations under the License.
15
*/
2
 * AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
3
 * Copyright (C) 2016..2019  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
 */
16 18

  
17 19
/**
18
 * @file    templates/chconf.h
19
 * @brief   Configuration file template.
20
 * @details A copy of this file must be placed in each project directory, it
21
 *          contains the application specific kernel settings.
20
 * @file    
21
 * @brief   ChibiOS Configuration file for the STM32L476RG-NUCLEO64 board.
22
 * @details Contains the application specific kernel settings.
22 23
 *
23
 * @addtogroup config
24
 * @addtogroup STM32L476RG-NUCLEO64
24 25
 * @details Kernel related settings and hooks.
25 26
 * @{
26 27
 */
......
48 49
#define CH_CFG_ST_RESOLUTION                32
49 50
#endif
50 51

  
51
/**
52
 * @brief   System tick frequency.
53
 * @details Frequency of the system timer that drives the system ticks. This
54
 *          setting also defines the system tick time unit.
55
 */
56
#if !defined(CH_CFG_ST_FREQUENCY)
57
#define CH_CFG_ST_FREQUENCY                 10000
58
#endif
59

  
60
/**
61
 * @brief   Time intervals data size.
62
 * @note    Allowed values are 16, 32 or 64 bits.
63
 */
64
#if !defined(CH_CFG_INTERVALS_SIZE)
65
#define CH_CFG_INTERVALS_SIZE               32
66
#endif
67

  
68
/**
69
 * @brief   Time types data size.
70
 * @note    Allowed values are 16 or 32 bits.
71
 */
72
#if !defined(CH_CFG_TIME_TYPES_SIZE)
73
#define CH_CFG_TIME_TYPES_SIZE              32
74
#endif
75

  
76
/**
77
 * @brief   Time delta constant for the tick-less mode.
78
 * @note    If this value is zero then the system uses the classic
79
 *          periodic tick. This value represents the minimum number
80
 *          of ticks that is safe to specify in a timeout directive.
81
 *          The value one is not valid, timeouts are rounded up to
82
 *          this value.
83
 */
84
#if !defined(CH_CFG_ST_TIMEDELTA)
85
#define CH_CFG_ST_TIMEDELTA                 2
86
#endif
52
// more common definition in aos_chconf.h
87 53

  
88 54
/** @} */
89 55

  
......
94 60
 */
95 61
/*===========================================================================*/
96 62

  
97
/**
98
 * @brief   Round robin interval.
99
 * @details This constant is the number of system ticks allowed for the
100
 *          threads before preemption occurs. Setting this value to zero
101
 *          disables the preemption for threads with equal priority and the
102
 *          round robin becomes cooperative. Note that higher priority
103
 *          threads can still preempt, the kernel is always preemptive.
104
 * @note    Disabling the round robin preemption makes the kernel more compact
105
 *          and generally faster.
106
 * @note    The round robin preemption is not supported in tickless mode and
107
 *          must be set to zero in that case.
108
 */
109
#if !defined(CH_CFG_TIME_QUANTUM)
110
#define CH_CFG_TIME_QUANTUM                 0
111
#endif
112

  
113
/**
114
 * @brief   Managed RAM size.
115
 * @details Size of the RAM area to be managed by the OS. If set to zero
116
 *          then the whole available RAM is used. The core memory is made
117
 *          available to the heap allocator and/or can be used directly through
118
 *          the simplified core memory allocator.
119
 *
120
 * @note    In order to let the OS manage the whole RAM the linker script must
121
 *          provide the @p __heap_base__ and @p __heap_end__ symbols.
122
 * @note    Requires @p CH_CFG_USE_MEMCORE.
123
 */
124
#if !defined(CH_CFG_MEMCORE_SIZE)
125
#define CH_CFG_MEMCORE_SIZE                 0
126
#endif
127

  
128
/**
129
 * @brief   Idle thread automatic spawn suppression.
130
 * @details When this option is activated the function @p chSysInit()
131
 *          does not spawn the idle thread. The application @p main()
132
 *          function becomes the idle thread and must implement an
133
 *          infinite loop.
134
 */
135
#if !defined(CH_CFG_NO_IDLE_THREAD)
136
#define CH_CFG_NO_IDLE_THREAD               FALSE
137
#endif
63
// common definitions in aos_chconf.h
138 64

  
139 65
/** @} */
140 66

  
......
145 71
 */
146 72
/*===========================================================================*/
147 73

  
148
/**
149
 * @brief   OS optimization.
150
 * @details If enabled then time efficient rather than space efficient code
151
 *          is used when two possible implementations exist.
152
 *
153
 * @note    This is not related to the compiler optimization options.
154
 * @note    The default is @p TRUE.
155
 */
156
#if !defined(CH_CFG_OPTIMIZE_SPEED)
157
#define CH_CFG_OPTIMIZE_SPEED               TRUE
158
#endif
74
// common definitions in aos_chconf.h
159 75

  
160 76
/** @} */
161 77

  
......
166 82
 */
167 83
/*===========================================================================*/
168 84

  
169
/**
170
 * @brief   Time Measurement APIs.
171
 * @details If enabled then the time measurement APIs are included in
172
 *          the kernel.
173
 *
174
 * @note    The default is @p TRUE.
175
 */
176
#if !defined(CH_CFG_USE_TM)
177
#define CH_CFG_USE_TM                       TRUE
178
#endif
179

  
180
/**
181
 * @brief   Threads registry APIs.
182
 * @details If enabled then the registry APIs are included in the kernel.
183
 *
184
 * @note    The default is @p TRUE.
185
 */
186
#if !defined(CH_CFG_USE_REGISTRY)
187
#define CH_CFG_USE_REGISTRY                 TRUE
188
#endif
189

  
190
/**
191
 * @brief   Threads synchronization APIs.
192
 * @details If enabled then the @p chThdWait() function is included in
193
 *          the kernel.
194
 *
195
 * @note    The default is @p TRUE.
196
 */
197
#if !defined(CH_CFG_USE_WAITEXIT)
198
#define CH_CFG_USE_WAITEXIT                 TRUE
199
#endif
200

  
201
/**
202
 * @brief   Semaphores APIs.
203
 * @details If enabled then the Semaphores APIs are included in the kernel.
204
 *
205
 * @note    The default is @p TRUE.
206
 */
207
#if !defined(CH_CFG_USE_SEMAPHORES)
208
#define CH_CFG_USE_SEMAPHORES               TRUE
209
#endif
210

  
211
/**
212
 * @brief   Semaphores queuing mode.
213
 * @details If enabled then the threads are enqueued on semaphores by
214
 *