forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpmsg_ping.c: change msg cmd type for more compatible
Use bit mask method to represent the command, because it's more convenient to express multiple characteristics simultaneously. Signed-off-by: Yongrong Wang <[email protected]>
- Loading branch information
Showing
2 changed files
with
55 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ struct rpmsg_ping_s | |
{ | ||
int times; | ||
int len; | ||
int ack; | ||
int cmd; | ||
int sleep; /* unit: ms */ | ||
}; | ||
|
||
|