Revision c930aa01 modules/LightRing_1-2/module.c
modules/LightRing_1-2/module.c | ||
---|---|---|
303 | 303 |
}; |
304 | 304 |
|
305 | 305 |
/** |
306 |
* @brief LIGHT_XLAT output signal GPIO. |
|
307 |
*/ |
|
308 |
static apalGpio_t _gpioLightXlat = { |
|
309 |
/* line */ LINE_LIGHT_XLAT, |
|
310 |
}; |
|
311 |
ROMCONST apalControlGpio_t moduleGpioLightXlat = { |
|
312 |
/* GPIO */ &_gpioLightXlat, |
|
313 |
/* meta */ { |
|
314 |
/* direction */ APAL_GPIO_DIRECTION_OUTPUT, |
|
315 |
/* active state */ (TLC5947_LLD_XLAT_UPDATE_EDGE == APAL_GPIO_EDGE_RISING) ? APAL_GPIO_ACTIVE_HIGH : APAL_GPIO_ACTIVE_LOW, |
|
316 |
/* interrupt edge */ APAL_GPIO_EDGE_NONE, |
|
317 |
}, |
|
318 |
}; |
|
319 |
|
|
320 |
/** |
|
306 | 321 |
* @brief SW_V18_EN output signal GPIO. |
307 | 322 |
*/ |
308 | 323 |
static apalGpio_t _gpioSwV18En = { |
... | ... | |
447 | 462 |
TLC5947Driver moduleLldLedPwm = { |
448 | 463 |
/* SPI driver */ &MODULE_HAL_SPI_LIGHT, |
449 | 464 |
/* BLANK signal GPIO */ &moduleGpioLightBlank, |
450 |
/* XLAT signal GPIO */ NULL,
|
|
465 |
/* XLAT signal GPIO */ &moduleGpioLightXlat,
|
|
451 | 466 |
}; |
452 | 467 |
|
453 | 468 |
/** @} */ |
Also available in: Unified diff