Configure a pin from devicetree with gpio_pin_configure_dt
gpio_pin_configure_dt sets a pin's direction and initial level from a gpio_dt_spec, merging the devicetree active-low flag, on Zephyr 4.2.
Short posts that solve one thing: the code, the output we got, and why it works.
gpio_pin_configure_dt sets a pin's direction and initial level from a gpio_dt_spec, merging the devicetree active-low flag, on Zephyr 4.2.
k_thread_create starts a thread from static stack and k_thread storage; a lower priority number means a higher priority, in Zephyr 4.2.
DT_PROP reads a devicetree property as a compile-time constant, with dashes in the name written as underscores, in Zephyr 4.2.
Create your first ThreadX threads and objects inside tx_application_define, which tx_kernel_enter calls before the scheduler starts, on ThreadX 6.4.
Drive a NuttX output pin from an application with the GPIOC_WRITE ioctl on /dev/gpout0, and read the level back with GPIOC_READ, on NuttX 12.6.
Rebuild a Zephyr app from scratch for one board with west build -p always, which deletes the build directory and reruns CMake, on Zephyr 4.0.
Read the running core with xPortGetCoreID in an ESP-IDF 5 task pinned with xTaskCreatePinnedToCore, instead of assuming core 0.
Read the bytes currently free in the FreeRTOS heap with xPortGetFreeHeapSize, a total across all free blocks that does not work with heap_3.
Hand a timer callback its own context by storing a pointer as the timer ID and reading it back with pvTimerGetTimerID on FreeRTOS V11.2.0.
xEventGroupWaitBits with xClearOnExit set to pdTRUE clears every awaited bit on return, including ones that did not trigger the wake-up.
Create a FreeRTOS binary semaphore with xSemaphoreCreateBinary to signal a task from another task, and check for a NULL handle.
Pass whole structs between FreeRTOS tasks by value with xQueueCreate and sizeof, so the sender's copy can change right after the send.
We send one email when a new post is published. No spam.