Revision a0301104 modules/STM32L476RG-NUCLEO64/module.c

View differences:

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
/** @} */

Also available in: Unified diff