Category: Embedded Systems

  • Finished with Lists, Stacks and Queues

    The code for chapter 5 and 6 is done along with the needed tests. Embedded Apprentice GitHub I never used a circular list. We can accept the example given in the book, but I never-ever found an application. The stack and queue are thin wrappers on a singly linked list. My personal impression, the wrapper…

  • The Buffer Pool, using linked lists

    Here is a handy way to manage buffers, using a singly linked list. It works for small embedded systems where there is no heap. With no heap, we don’t have malloc() and free() to get buffers. Also, we don’t want a performance penalty if we call malloc() when we need to get a buffer. So,…

  • First Lists

    The first parts of Chapter 5 from Mastering Algorithms in C is up on GitHub. Using Claude code made the exercise stupid easy. I typed the code from the book, being somewhat careful. I misses some typos, typed Lust not List, and elelment not even realizing. Claude caught the errors. It identified the code as…

  • A More Embedded AI Application

    Virtual Judge and the NoYesApp are cool. AI is real and obviously with some guidance and good vibes, you can build something pretty big. Still, it is not exactly what this blog is supposed to be about. We are embedded people, not web developers. We live off of C code and register bit banging. My…

  • Network Triangles, Part 2

    June 8, 2017 dougwithau Republished February 14, 2026 How does the switch know where to send your data? In part 1, I mentioned the Ethernet header. This is what it looks like. Destination MAC 6 bytes Source MAC 6 bytes Length 2 byte Data 46-1500 Bytes CRC 4 Bytes The statement was made that a switch only…

  • Why Triangles are bad for your Network

    June 8, 2017 dougwithau Republished February 14, 2026 You’re planning to work on the IoT, or doing a project with networks. Networks are awesome because they have emergent behavior. Let me tell you a story to show what I mean. This involves network infrastructure at the lowest, simplest layer. You’ll need to understand the situation. I…

  • Clearing up TaskTurner questions

    Originally published May 8, 2017 Republished June 20, 2024 Last of this series The code on GitHub Post 1 Role your own Operating System, Post 2, TaskTurner First Code, Post 3, The Basic Code is Working, Post 4, Building Tasks, Post 5, Lowering System Power and Timers. Inter Process Communications I was going to write all about it. Then Collin Walls posted a…

  • Lowering the system power, and some thoughts on time.

    Let’s think about the simple system with only one set of tasks. How long does it take to execute all the tasks in the list?

  • Building tasks in the TaskTurner

    What is a task? How big should a task be? How long should a task take?

  • Task Turner part 2, the Basic Code is Working

    Here is the TaskTurner source code, we will discuss it in the post.