|
| 1 | +/** |
| 2 | + ****************************************************************************** |
| 3 | + * File Name : NimaLTD.I-CUBE-WS28XX_conf.h |
| 4 | + * Description : This file provides code for the configuration |
| 5 | + * of the NimaLTD.I-CUBE-WS28XX_conf.h instances. |
| 6 | + ****************************************************************************** |
| 7 | + * @attention |
| 8 | + * |
| 9 | + * Copyright (c) 2024 STMicroelectronics. |
| 10 | + * All rights reserved. |
| 11 | + * |
| 12 | + * This software is licensed under terms that can be found in the LICENSE file |
| 13 | + * in the root directory of this software component. |
| 14 | + * If no LICENSE file comes with this software, it is provided AS-IS. |
| 15 | + * |
| 16 | + ****************************************************************************** |
| 17 | + */ |
| 18 | +/* Define to prevent recursive inclusion -------------------------------------*/ |
| 19 | +#ifndef _NIMALTD_I_CUBE_WS28XX_CONF_H_ |
| 20 | +#define _NIMALTD_I_CUBE_WS28XX_CONF_H_ |
| 21 | + |
| 22 | +#ifdef __cplusplus |
| 23 | + extern "C" { |
| 24 | +#endif |
| 25 | + |
| 26 | +#define WS28XX_ORDER_RGB 0 |
| 27 | +#define WS28XX_ORDER_BGR 1 |
| 28 | +#define WS28XX_ORDER_GRB 2 |
| 29 | + |
| 30 | +#define WS28XX_RTOS_DISABLE 0 |
| 31 | +#define WS28XX_RTOS_CMSIS_V1 1 |
| 32 | +#define WS28XX_RTOS_CMSIS_V2 2 |
| 33 | +#define WS28XX_RTOS_THREADX 3 |
| 34 | + |
| 35 | +/** |
| 36 | + MiddleWare name : NimaLTD.I-CUBE-WS28XX.3.0.0 |
| 37 | + MiddleWare fileName : NimaLTD.I-CUBE-WS28XX_conf.h |
| 38 | +*/ |
| 39 | +/*---------- WS28XX_PIXEL_MAX -----------*/ |
| 40 | +#define WS28XX_PIXEL_MAX 256 |
| 41 | + |
| 42 | +/*---------- WS28XX_PULSE_LENGTH_NS -----------*/ |
| 43 | +#define WS28XX_PULSE_LENGTH_NS 1250 |
| 44 | + |
| 45 | +/*---------- WS28XX_PULSE_0_NS -----------*/ |
| 46 | +#define WS28XX_PULSE_0_NS 400 |
| 47 | + |
| 48 | +/*---------- WS28XX_PULSE_1_NS -----------*/ |
| 49 | +#define WS28XX_PULSE_1_NS 800 |
| 50 | + |
| 51 | +/*---------- WS28XX_ORDER -----------*/ |
| 52 | +#define WS28XX_ORDER WS28XX_ORDER_GRB |
| 53 | + |
| 54 | +/*---------- WS28XX_GAMMA -----------*/ |
| 55 | +#define WS28XX_GAMMA true |
| 56 | + |
| 57 | +/*---------- WS28XX_RTOS -----------*/ |
| 58 | +#define WS28XX_RTOS WS28XX_RTOS_DISABLE |
| 59 | + |
| 60 | +#ifdef __cplusplus |
| 61 | +} |
| 62 | +#endif |
| 63 | +#endif /* _NIMALTD_I_CUBE_WS28XX_CONF_H_ */ |
| 64 | + |
| 65 | +/** |
| 66 | + * @} |
| 67 | + */ |
| 68 | + |
| 69 | +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
| 70 | + |
0 commit comments