-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sccan #5
Merged
Merged
Conversation
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
yashi
reviewed
Jul 28, 2023
yashi
requested changes
Jul 30, 2023
So far, We use dts overlay based on SC-OBC Module A1 for SC-Sat1 MAIN board. However, we decided to prepare the new dts for SC-at1 MAIN board. Later we will prepare for SC-Sat1 ADCS boards. Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds CAN definition for MAIN board. Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
sasataku
commented
Aug 4, 2023
yashi
requested changes
Aug 4, 2023
sasataku
force-pushed
the
support-sccan
branch
2 times, most recently
from
August 7, 2023 08:12
bfd2719
to
78bd472
Compare
sasataku
force-pushed
the
support-sccan
branch
from
August 13, 2023 11:46
78bd472
to
a7fa212
Compare
yashi
requested changes
Aug 14, 2023
sasataku
force-pushed
the
support-sccan
branch
from
August 21, 2023 08:29
a7fa212
to
0cd317f
Compare
yashi
requested changes
Aug 21, 2023
yashi
requested changes
Aug 21, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I'm starting to do sematic checks. This one is mainly about the mutex, but has some others as well.
yashi
reviewed
Aug 21, 2023
sasataku
force-pushed
the
support-sccan
branch
from
October 2, 2023 09:24
0cd317f
to
1c5ddad
Compare
This commit adds Space Cubics CAN driver, but only implement the API below. - init - start - stop - set_timing - recover (do nothing) - get_core_clock And adds the dts overlay file for SC-Sat1 MAIN board. SC-Sat1 MAIN board have three CAN interface. ADCS boards also have CAN interface, but add later. Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit implement can_send API for Space Cubics CAN. In the current FPA CAN IP core, CAN Packets stored in the TX Buffer transmit to the CAN Bus in a FIFO (First In First Out). Therefore, there is no issue with managing the list of TX callbacks using an array. However, due to future modifications in the FPGA CAN IP core, the transmission order of CAN Packets stored in the TX buffer will be rearranged based on the CAN ID (priority). So, we will need to change the management of TX callbacks from an array to something like an slist. And SC CAN Controller notify the interrupt every times while ACK error detected, so this driver received the many interrupt. we also plan to improve the Interrupt Status Register Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit implement RX API for Space Cubics CAN. Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds CAN status API as below. - can_get_state Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit implements CAN mode related API as below. - sc_can_set_mode - sc_can_get_capabilities SC CAN controller supports NORMAL and LOOPBACK only. Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit enables CAN driver on SC-Sat1 MAIN board. Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds description of "How to build the ztest". Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
sasataku
force-pushed
the
support-sccan
branch
from
October 18, 2023 02:33
1c5ddad
to
ec203bb
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR support SC CAN driver for SC-Sat1 MAIN board.
This PR is implemented based on the SC CAN controller IP specification below.
https://github.com/spacecubics/scobc-fpga-technical-reference-manual/blob/main/can_controller.org
However now we plant to update the SC CAN controller IP for some improving.