Ambiorix / prplOS 官方示例怎么读:从 120 行的 wait_for 开始
prplOS 的中文资料极少,硬啃源码很容易劝退。更快的路径是从官方 examples 里最小的一个读起:baapi/wait_for 只有约 120 行,却把 amxrt 运行时、事件循环、总线 API 三件事一次讲清。本文给出逐段拆解、在普通 Linux PC 上的实测方法,以及后续的阅读路线。
4 posts
prplOS 的中文资料极少,硬啃源码很容易劝退。更快的路径是从官方 examples 里最小的一个读起:baapi/wait_for 只有约 120 行,却把 amxrt 运行时、事件循环、总线 API 三件事一次讲清。本文给出逐段拆解、在普通 Linux PC 上的实测方法,以及后续的阅读路线。
The core of Ambiorix (AMX) is an addressable object tree: objects have parameters, functions, child objects and instances; paths locate them. This post covers objects, parameters, functions, paths, transactions, and why ODL is where readability comes from.
Ambiorix (AMX) is the C framework behind prplOS: a component container, a bus abstraction and a TR-181-oriented data model. This page explains the architecture layer by layer, why it exists over ubus, and what it is not.
C has no standard containers. I looked for one for years, wrote my own, and it never felt right. Then I found Ambiorix (AMX) in prplOS — and realized I wasn't looking for a list/hash library, but for a container-based system skeleton. Pure C, no C++ runtime, ~187 KB stripped.
Subscribe via RSS to get new posts automatically.
Technical questions, feedback and leads: use the guestbook.