Skip to content

Commit

Permalink
Update DT_INST_FOREACH_STATUS_OKAY section
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtis-lew committed May 19, 2022
1 parent 523ae83 commit 50cd342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/development/new-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ An example of this can be seen below, taking the `#define KP_INST(n)` from the h
DT_INST_FOREACH_STATUS_OKAY(KP_INST)
```
Note that in the hold-tap example, the instance number, `0`, has been replaced by `n`, signifying the uniqueness of each instance of a behavior. Furthermore, the line `DT_INST_FOREACH_STATUS_OKAY(KP_INST)` has been added as a form of error-checking for each defined instance.
Note that in the hold-tap example, the instance number, `0`, has been replaced by `n`, signifying the unique node-id of each instance of a behavior. Furthermore, the line `DT_INST_FOREACH_STATUS_OKAY(KP_INST)` is used to iterate each non-disabled instance and invoke the `KP_INST` macro for that instance.
Behaviors also require the following parameters of `DEVICE_DT_INST_DEFINE` to be changed:
Expand Down

0 comments on commit 50cd342

Please sign in to comment.