A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
Include standard C types in bounded SPI example
Rudy Celekli606068a2e131
diff --git a/engineering/engineering-embedded-firmware-engineer.md b/engineering/engineering-embedded-firmware-engineer.mdindex 83414425..896bca3c 100644--- a/engineering/engineering-embedded-firmware-engineer.md+++ b/engineering/engineering-embedded-firmware-engineer.md@@ -68,6 +68,9 @@ void app_main(void) {### STM32 LL SPI Transfer (bounded polling, task context)```c+#include <stdbool.h>+#include <stdint.h>+// STM32 SPI with TXE/BSY flags (e.g. STM32F4); not an ISR-safe or non-blocking API.// HAL_GetTick must advance while polling. One deadline covers both waits.bool spi_write_byte(SPI_TypeDef *spi, uint8_t data, uint32_t timeout_ms) {