You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wangxiaoxin1 (via GitHub)" <gi...@apache.org> on 2024/10/15 14:13:26 UTC
[PR] add a flag of lin internal sleep/wakeup state [nuttx]
wangxiaoxin1 opened a new pull request, #14332:
URL: https://github.com/apache/nuttx/pull/14332
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
## Summary
*Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.*
## Impact
*Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.*
## Testing
*Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "nuttxpr (via GitHub)" <gi...@apache.org>.
nuttxpr commented on PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#issuecomment-2414145846
[**\[Experimental Bot, please feedback here\]**](https://github.com/search?q=repo%3Aapache%2Fnuttx+13552&type=issues)
This PR template lays out the information required for a NuttX Pull Request. **To determine if a specific PR meets the requirements we need to see the content of the PR itself.** The template is just a framework.
**To assess a PR, we need to see the actual content provided in each section.** Only then can we tell if it's concise, adequately explains the changes, their impact, and the testing performed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #14332:
URL: https://github.com/apache/nuttx/pull/14332
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "GUIDINGLI (via GitHub)" <gi...@apache.org>.
GUIDINGLI commented on code in PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#discussion_r1802237010
##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
CAN_STATE_BUSY /* The can/lin bus is busy */
};
+struct can_ioctl_state_s
+{
+ uintptr_t priv; /* This is private data. */
Review Comment:
where use it ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#discussion_r1802444273
##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
CAN_STATE_BUSY /* The can/lin bus is busy */
};
+struct can_ioctl_state_s
+{
+ uintptr_t priv; /* This is private data. */
Review Comment:
lower half driver
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "wangxiaoxin1 (via GitHub)" <gi...@apache.org>.
wangxiaoxin1 commented on code in PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#discussion_r1802242675
##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
CAN_STATE_BUSY /* The can/lin bus is busy */
};
+struct can_ioctl_state_s
+{
+ uintptr_t priv; /* This is private data. */
Review Comment:
Because the car's autosar stipulates that there are two modes of sleep and wake-up, internal/noraml, so a flag bit needs to be added to distinguish internal/noraml. The reason why priv is selected here is also for convenience and can be used for other uses later. Increase practicality
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#discussion_r1802241705
##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
CAN_STATE_BUSY /* The can/lin bus is busy */
};
+struct can_ioctl_state_s
+{
+ uintptr_t priv; /* This is private data. */
+ enum can_ioctl_state_e can_st_type;
Review Comment:
```suggestion
enum can_ioctl_state_e state
```
##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
CAN_STATE_BUSY /* The can/lin bus is busy */
};
+struct can_ioctl_state_s
+{
+ uintptr_t priv; /* This is private data. */
+ enum can_ioctl_state_e can_st_type;
Review Comment:
```suggestion
enum can_ioctl_state_e state;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] add a flag of lin internal sleep/wakeup state [nuttx]
Posted by "wangxiaoxin1 (via GitHub)" <gi...@apache.org>.
wangxiaoxin1 commented on code in PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#discussion_r1802242675
##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
CAN_STATE_BUSY /* The can/lin bus is busy */
};
+struct can_ioctl_state_s
+{
+ uintptr_t priv; /* This is private data. */
Review Comment:
Because the car's autosar stipulates that there are two modes of sleep and wake-up, internal/noraml, so a flag bit needs to be added to distinguish internal/noraml. The reason why priv is selected here is also for convenience and can be used for other uses later. Increase practicality
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org