Skip to content

Commit

Permalink
Re-add backticks to KP_INST/DT_INST_FOREACH_STATUS_OKAY
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtis-lew committed May 21, 2022
1 parent 052c700 commit 8518149
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 unique node-id of each instance of a behavior. Furthermore, the DT_INST_FOREACH_STATUS_OKAY(KP_INST) macro iterates through each compatible, non-disabled devicetree node, creating and applying the proper values to any instance-specific configurations or data by invoking the KP_INST macro for each instance of the new behavior.
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 DT_INST_FOREACH_STATUS_OKAY(KP_INST) macro iterates through each compatible, non-disabled devicetree node, creating and applying the proper values to any instance-specific configurations or data by invoking the KP_INST macro for each instance of the new behavior.
Behaviors also require the following parameters of `DEVICE_DT_INST_DEFINE` to be changed:
Expand Down

0 comments on commit 8518149

Please sign in to comment.