Skip to content

Commit

Permalink
README: add AO debugger screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
polesskiy-dev committed Jul 30, 2023
1 parent bcfe544 commit 73a6cf8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Minimalistic implementation of Active Object pattern + FSM for embedded systems.

[Request: retry/timeout, transition table demo](./examples/request-fsm/README.md)

## Advantages

Preprocessor templates allow strict typings and debugger suggestions, all types and enums have human-readable names, e.g. from [Request demo](./examples/request-fsm/README.md):

![types](./docs/active-object-typings.png)

TODO: make naming conventions e.g.:

- types
Expand Down
3 changes: 2 additions & 1 deletion examples/request-fsm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "../../src/fsm/fsm.h"

#define REQUEST_AO REQUEST_AO
#define REQUEST_QUEUE_MAX_CAPACITY (8)
#define REQUEST_QUEUE_MAX_CAPACITY (4)
#define NO_RETRIES_LEFT (0)
#define MAX_RETRIES (1)

Expand All @@ -15,6 +15,7 @@ typedef enum {
} ACTIVE_OBJECT_ID;

typedef enum {
NO_SIG,
MAKE_REQUEST_SIG,
REQUEST_SUCCESS_SIG,
REQUEST_ERROR_SIG,
Expand Down
Binary file modified main
Binary file not shown.

0 comments on commit 73a6cf8

Please sign in to comment.