Log GPIO event to validation buffer */
| 118 | #ifdef FL_SPI_ISR_VALIDATE |
| 119 | /* Log GPIO event to validation buffer */ |
| 120 | static inline FL_IRAM void fl_spi_log_event(FastLED_GPIO_Event_Type type, fl::u32 payload) { |
| 121 | if (g_isr_state().validation_event_count < FL_SPI_ISR_VALIDATE_SIZE) { |
| 122 | FastLED_GPIO_Event *evt = &g_isr_state().validation_events[g_isr_state().validation_event_count++]; |
| 123 | evt->event_type = (fl::u8)type; |
| 124 | evt->padding[0] = 0; |
| 125 | evt->padding[1] = 0; |
| 126 | evt->padding[2] = 0; |
| 127 | evt->payload.gpio_mask = payload; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | /* Validation buffer accessors (main thread) */ |
| 132 | const FastLED_GPIO_Event* fl_spi_get_validation_events(void) { |
no outgoing calls
no test coverage detected