/****************************************************************************** * File: MCU_PIO_cfg.h * Component: MCU_PIO * Description: Configuration header for the generic PIO driver. * Defines which PIO programs are loaded and on which * state machines / GPIO pins they operate. * * Layer: MCU (hardware abstraction) - configuration *****************************************************************************/ #ifndef MCU_PIO_CFG_H #define MCU_PIO_CFG_H #include "STD_TYPES.h" /* ------------------------------------------------------------------------ */ /* INSTANCE ENUMERATION */ /* ------------------------------------------------------------------------ */ /** * @brief Enumeration of configured PIO program instances. * * Each entry represents one PIO program running on one state machine. * The enumerator value is the array index into MCU_PIO_astrConfig[]. */ typedef enum { MCU_PIO_INSTANCE_WS2812 = 0U, /**< WS2812 LED driver on GP16 */ MCU_PIO_NUM_INSTANCES } MCU_PIO_tenuInstance; /* ------------------------------------------------------------------------ */ /* WS2812 INSTANCE CONFIGURATION */ /* ------------------------------------------------------------------------ */ /** @brief GPIO pin for the WS2812B data line. * GP16 is the onboard WS2812B on the Waveshare RP2040-Zero. */ #define MCU_PIO_WS2812_PIN 16U #endif /* MCU_PIO_CFG_H */