Revision a0301104

View differences:

modules/STM32F4Discovery/halconf.h
17 17
*/
18 18

  
19 19
/**
20
 * @file    
20
 * @file
21 21
 * @brief   HAL configuration header for the STM32F4Discovery module.
22 22
 * @details HAL configuration file, this file allows to enable or disable the
23 23
 *          various device drivers from your application. You may also use
modules/STM32F4Discovery/module.c
18 18

  
19 19
/**
20 20
 * @file
21
 * @brief   Structures and constant for the PowerManagement module.
21
 * @brief   Structures and constant for the STM32F4Discovery module.
22 22
 *
23
 * @addtogroup powermanagement_module
23
 * @addtogroup STM32F4Discovery_module
24 24
 * @{
25 25
 */
26 26

  
modules/STM32F4Discovery/module.h
18 18

  
19 19
/**
20 20
 * @file
21
 * @brief   Structures and constant for the PowerManagement module.
21
 * @brief   Structures and constant for the STM32F4Discovery module.
22 22
 *
23
 * @addtogroup powermanagement_module
23
 * @addtogroup STM32F4Discovery_module
24 24
 * @{
25 25
 */
26 26

  
modules/STM32L476RG-NUCLEO64/Makefile
298 298
#                                                                              #
299 299

  
300 300
# all and its dependencies
301
BUILDDIR = ./build
301
ifeq ($(BUILDDIR),)
302
	BUILDDIR = ./build
303
endif
302 304
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
303 305
include $(RULESPATH)/rules.mk
304 306

  
modules/STM32L476RG-NUCLEO64/alldconf.h
18 18

  
19 19
/**
20 20
 * @file
21
 * @brief   AMiRo-LLD configuration file for the PowerManagement v1.1 module.
21
 * @brief   AMiRo-LLD configuration file for the STM32L476RG-NUCLEO64 module.
22 22
 * @details Contains the application specific AMiRo-LLD settings.
23 23
 *
24
 * @addtogroup STM32L476RG-NUCLEO64
24
 * @addtogroup STM32L476RG-NUCLEO64_config
25 25
 * @{
26 26
 */
27 27

  
......
43 43
 */
44 44
#define AMIROLLD_CFG_TIME_SIZE          32
45 45

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

  
51 46
#endif /* _ALLDCONF_H_ */
52 47

  
53 48
/** @} */
modules/STM32L476RG-NUCLEO64/aosconf.h
18 18

  
19 19
/**
20 20
 * @file
21
 * @brief   AMiRo-OS Configuration file for the PowerManagement v1.1 module.
21
 * @brief   AMiRo-OS Configuration file for the STM32L476RG-NUCLEO64 module.
22 22
 * @details Contains the application specific AMiRo-OS settings.
23 23
 *
24
 * @addtogroup powermanagement_aos_config
24
 * @addtogroup STM32L476RG-NUCLEO64_aos_config
25 25
 * @{
26 26
 */
27 27

  
......
65 65
 * @note    Setting this flag will implicitely enable the shell.
66 66
 */
67 67
#if !defined(OS_CFG_TESTS_ENABLE)
68
  #define AMIROOS_CFG_TESTS_ENABLE              false
68
  #define AMIROOS_CFG_TESTS_ENABLE              true
69 69
#else
70 70
  #define AMIROOS_CFG_TESTS_ENABLE              OS_CFG_TESTS_ENABLE
71 71
#endif
modules/STM32L476RG-NUCLEO64/halconf.h
88 88
 * @brief   Enables the I2C subsystem.
89 89
 */
90 90
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
91
#define HAL_USE_I2C                         TRUE
91
#define HAL_USE_I2C                         FALSE
92 92
#endif
93 93

  
94 94
/**
modules/STM32L476RG-NUCLEO64/module.c
18 18

  
19 19
/**
20 20
 * @file
21
 * @brief   Structures and constant for the PowerManagement module.
21
 * @brief   Structures and constant for the STM32L476RG-NUCLEO64 module.
22 22
 *
23
 * @addtogroup powermanagement_module
23
 * @addtogroup STM32L476RG-NUCLEO64_module
24 24
 * @{
25 25
 */
26 26

  
......
59 59
/*===========================================================================*/
60 60

  
61 61
/**
62
 * @brief   Red LED output signal GPIO.
62
 * @brief   LED output signal GPIO.
63 63
 */
64 64
static apalGpio_t _gpioLed = {
65 65
  /* port */ GPIOA,
......
100 100
/*===========================================================================*/
101 101

  
102 102
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
103
ROMCONST char* moduleShellPrompt = "STM32L476RG-NUCLEO64";
103
ROMCONST char* moduleShellPrompt = "NUCLEO-L476RG";
104 104
#endif
105 105

  
106 106
/** @} */
......
123 123

  
124 124
/** @} */
125 125

  
126
//MPU6050Driver moduleLldMpu6050 = {
127
//  /* I2C Driver       */ &MODULE_HAL_I2C_MPU6050,
128
//  /* I²C address      */ 0x68,
129
//  /* current LSB (uA) */ 0x00u,
130
//  /* configuration    */ NULL,
131
//};
132

  
133 126
/*===========================================================================*/
134 127
/**
135 128
 * @name Unit tests (UT)
......
138 131
/*===========================================================================*/
139 132
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
140 133

  
141
/* MPU6050 */
142
static int _utShellCmdCb_AlldMpu6050(BaseSequentialStream* stream, int argc, char* argv[])
143
{
144
  (void)argc;
145
  (void)argv;
146
  aosUtRun(stream, &moduleUtAlldMpu6050, NULL);
147
  return AOS_OK;
148
}
149
static ut_mpu6050data_t _utAlldMpu6050Data = {
150
   /* driver */ &moduleLldMpu6050,
151
  /* timeout  */ MICROSECONDS_PER_SECOND,
152
};
153
aos_unittest_t moduleUtAlldMpu6050 = {
154
  /* name           */ "MPU6050",
155
  /* info           */ "accelerometer and gyroscope",
156
  /* test function  */ utAlldMpu6050Func,
157
  /* shell command  */ {
158
    /* name     */ "unittest:Accelerometer&Gyroscope",
159
    /* callback */ _utShellCmdCb_AlldMpu6050,
160
    /* next     */ NULL,
161
  },
162
  /* data           */ &_utAlldMpu6050Data
163
};
164

  
165 134
#endif /* AMIROOS_CFG_TESTS_ENABLE == true */
166 135

  
167 136
/** @} */
modules/STM32L476RG-NUCLEO64/module.h
18 18

  
19 19
/**
20 20
 * @file
21
 * @brief   Structures and constant for the PowerManagement module.
21
 * @brief   Structures and constant for the STM32L476RG-NUCLEO64 module.
22 22
 *
23
 * @addtogroup powermanagement_module
23
 * @addtogroup STM32L476RG-NUCLEO64_module
24 24
 * @{
25 25
 */
26 26

  
......
56 56
extern SerialConfig moduleHalProgIfConfig;
57 57

  
58 58
/**
59
 * @brief   I2C driver to access multiplexer, proximity sensors 5 to 8, power monitors for VSYS4.2, VIO 5.0 and VDD, EEPROM, touch sensor, and fuel gauge (front battery).
60
 */
61
#define MODULE_HAL_I2C_MPU6050                  I2CD3
62

  
63
/**
64
 * @brief   Configuration for the multiplexer, proximity sensors 1 to 4, power monitors for VIO1.8 and VIO 3.3, and fuel gauge (rear battery) I2C driver.
65
 */
66
extern I2CConfig moduleHalI2cMpu6050Config;
67

  
68
/**
69 59
 * @brief   Real-Time Clock driver.
70 60
 */
71 61
#define MODULE_HAL_RTC                          RTCD1
......
125 115
 */
126 116
#define MODULE_INIT_TESTS() {                                                 \
127 117
  /* add unit-test shell commands */                                          \
128
  aosShellAddCommand(&aos.shell, &moduleUtAlldMpu6050.shellcmd);              \
129 118
}
130 119

  
131 120
/**
......
145 134
/**
146 135
 * @brief   HOOK to toggle the LEDs when the user button is pressed.
147 136
 */
148
#define MODULE_MAIN_LOOP_IO_EVENT(eventflags) {                    \
137
#define MODULE_MAIN_LOOP_IO_EVENT(eventflags) {                               \
149 138
  if (eventflags & MODULE_OS_IOEVENTFLAGS_USERBUTTON) {                       \
150 139
    apalControlGpioState_t buttonstate;                                       \
151 140
    apalControlGpioGet(&moduleGpioUserButton, &buttonstate);                  \
......
171 160
 */
172 161
/*===========================================================================*/
173 162

  
174
//#include <alld_mpu6050.h>
175

  
176
/**
177
 * @brief   Accelerometer (MPU6050) driver.
178
 */
179
//extern MPU6050Driver moduleLldMpu6050;
180

  
181 163
/** @} */
182 164

  
183 165
/*===========================================================================*/
......
188 170
/*===========================================================================*/
189 171
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
190 172

  
191
#include <ut_alld_mpu6050.h>
192

  
193
/**
194
 * @brief   MPU6050 unit test object.
195
 */
196
extern aos_unittest_t moduleUtAlldMpu6050;
197

  
198 173
#endif /* AMIROOS_CFG_TESTS_ENABLE == true */
199 174

  
200 175
/** @} */

Also available in: Unified diff