~/talk

Writing Rust bindings for ThreadX

linkedin:sojan-james
slides:none on file

Creates a CMake-driven -sys crate that downloads, configures and compiles ThreadX, captures compiler flags via a custom compiler wrapper, and calls bingen-generated unsafe bindings to match the configured C headers; hand-writes a tiny set of macro-derived constants. Wraps that with threadx-rs safe API enforcing ownership (static allocation, typed queues, block pools) and proves it with a working STM32 blue pill demo (~19 KB flash image using event flags and message queues) and a noted trouble spot: timer callbacks lack context pointer.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:52Embedded rust and ThreadX
  3. 4:39Project goals and philosophy
  4. 7:33Why choose ThreadX
  5. 9:54Developing a rust wrapper
  6. 11:58Embedded rust application setup
  7. 13:51Building the threadx-sys crate
  8. 16:16Handling loose ends
  9. 17:14Creating a safe rust API
  10. 20:26Future work and improvement
  11. 22:21Live demonstrations
  12. 25:53Q&A and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.