14#define WAIT_ARTICLE xQueueReceive
16typedef QueueHandle_t SubInbox_t;
17typedef QueueHandle_t PubInbox_t;
46#define SUBSCRIBE_TOPIC(topic, inbox, length, size) \
47 SubInbox_t __attribute__((section("." #topic "_subscription"))) inbox; \
48 inbox = xQueueCreate(length, size);
59#define CREATE_MESSAGE(name, length_) \
62 uint8_t data[length_]; \
63 } name = {.length = length_};
71typedef struct PublicTopic {
PubInbox_t commentInbox
Queue handle used to send messages back to topic authors.
bool Topic_comment(Topic *topic, uint8_t *comment)
Send a "comment" back to the originator of a topic.
Type definition for generic message struct.
Public representation of a Topic.