Revision c930aa01 modules/LightRing_1-0/module.c
modules/LightRing_1-0/module.c | ||
---|---|---|
176 | 176 |
}; |
177 | 177 |
|
178 | 178 |
/** |
179 |
* @brief LIGHT_XLAT output signal GPIO. |
|
180 |
*/ |
|
181 |
static apalGpio_t _gpioLightXlat = { |
|
182 |
/* line */ LINE_LIGHT_XLAT, |
|
183 |
}; |
|
184 |
ROMCONST apalControlGpio_t moduleGpioLightXlat = { |
|
185 |
/* GPIO */ &_gpioLightXlat, |
|
186 |
/* meta */ { |
|
187 |
/* direction */ APAL_GPIO_DIRECTION_OUTPUT, |
|
188 |
/* active state */ (TLC5947_LLD_XLAT_UPDATE_EDGE == APAL_GPIO_EDGE_RISING) ? APAL_GPIO_ACTIVE_HIGH : APAL_GPIO_ACTIVE_LOW, |
|
189 |
/* interrupt edge */ APAL_GPIO_EDGE_NONE, |
|
190 |
}, |
|
191 |
}; |
|
192 |
|
|
193 |
/** |
|
179 | 194 |
* @brief SYS_PD bidirectional signal GPIO. |
180 | 195 |
*/ |
181 | 196 |
static apalGpio_t _gpioSysPd = { |
... | ... | |
244 | 259 |
TLC5947Driver moduleLldLedPwm = { |
245 | 260 |
/* SPI driver */ &MODULE_HAL_SPI_LIGHT, |
246 | 261 |
/* BLANK signal GPIO */ &moduleGpioLightBlank, |
247 |
/* XLAT signal GPIO */ NULL,
|
|
262 |
/* XLAT signal GPIO */ &moduleGpioLightXlat,
|
|
248 | 263 |
}; |
249 | 264 |
|
250 | 265 |
TPS20xxBDriver moduleLldPowerSwitchLaser = { |
Also available in: Unified diff