Revision 22be62dc modules/LightRing_1-0/module.h
modules/LightRing_1-0/module.h | ||
---|---|---|
77 | 77 |
extern SPIConfig moduleHalSpiLightConfig; |
78 | 78 |
|
79 | 79 |
/** |
80 |
* @brief SPI interface driver for the wireless transceiver. |
|
81 |
*/ |
|
82 |
#define MODULE_HAL_SPI_WL SPID2 |
|
83 |
|
|
84 |
/** |
|
85 |
* @brief Configuration for the SPI interface driver to communicate with the wireless transceiver. |
|
86 |
*/ |
|
87 |
extern SPIConfig moduleHalSpiWlConfig; |
|
88 |
|
|
89 |
/** |
|
80 | 90 |
* @brief Real-Time Clock driver. |
81 | 91 |
*/ |
82 | 92 |
#define MODULE_HAL_RTC RTCD1 |
... | ... | |
220 | 230 |
i2cStart(&MODULE_HAL_I2C_EEPROM, &moduleHalI2cEepromConfig); \ |
221 | 231 |
/* SPI */ \ |
222 | 232 |
spiStart(&MODULE_HAL_SPI_LIGHT, &moduleHalSpiLightConfig); \ |
233 |
spiStart(&MODULE_HAL_SPI_WL, &moduleHalSpiWlConfig); \ |
|
223 | 234 |
} |
224 | 235 |
|
225 | 236 |
/** |
... | ... | |
228 | 239 |
#define MODULE_SHUTDOWN_PERIPHERY_COMM() { \ |
229 | 240 |
/* SPI */ \ |
230 | 241 |
spiStop(&MODULE_HAL_SPI_LIGHT); \ |
242 |
spiStop(&MODULE_HAL_SPI_WL); \ |
|
231 | 243 |
/* I2C */ \ |
232 | 244 |
i2cStop(&MODULE_HAL_I2C_EEPROM); \ |
233 | 245 |
/* don't stop the serial driver so messages can still be printed */ \ |
Also available in: Unified diff