Skip to content

Commit

Permalink
Doc: Fixed formating in mem type deck
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbeanton committed Sep 7, 2022
1 parent f609ae4 commit 5c4261e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/functional-areas/memory-subsystem/MEM_TYPE_DECK_MEM.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Also implement the `write_mem` and `read_mem` functions as needed, depending on
Some decks have the need to support two hardware devices with two firmwares and memory mappings, like the AI deck with
the ESP and the GAP8 modules. To support this, it is possible to add a second `DeckMemDef_t` definition:

```
static const DeckMemDef_t memoryDefEsp = {
.write = write_esp,
.read = read_esp,
Expand All @@ -192,9 +193,10 @@ static const DeckMemDef_t memoryDefGap8 = {
.id = "gap8"
};

```
And then you can add them like:

```
static const DeckDriver aideck_deck = {
.vid = 0xBC,
.pid = 0x12,
Expand All @@ -209,6 +211,7 @@ static const DeckDriver aideck_deck = {
.memoryDef = memoryDefEsp,
.memoryDefSecondary = memoryDefGap8,
};
```

And the names visible to the lib would be:
"bcAI:esp" and
Expand Down

0 comments on commit 5c4261e

Please sign in to comment.