-
-
Notifications
You must be signed in to change notification settings - Fork 23
dam ioc/hw/chimera #1823
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
base: master
Are you sure you want to change the base?
dam ioc/hw/chimera #1823
Conversation
|
if you try to build the code once, it should generate new cubemx code, and pass CI. |
|
cuz currently all of your hw objects area pointing at stm objects which do not exist |
| syntax = "proto3"; | ||
|
|
||
| package DAM; | ||
| package dam; |
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.
capitalize this please -Amir
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.
nvm delete this file
| #include "io_canQueue.h" | ||
| } | ||
|
|
||
| CanHandle can1 = { .hcan = &hfdcan2, .bus_num = 0, .receive_callback = jobs_runCanRx_callBack }; |
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.
specify that this fdcan here
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.
actually use the new Can stuff
|
|
||
| using hw::Gpio; | ||
|
|
||
| const Gpio buzzer_pwr_en_pin = { BUZZER_PWR_EN_GPIO_Port, BUZZER_PWR_EN_Pin }; |
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.
this is the C way if doing it. Note that Gpio is a class so use the constructor
| #include "main.h" | ||
| } | ||
|
|
||
| hw::SdCard sd1 = { .hsd = &hsd1, .timeout = 2000, .present_gpio = &sd_present }; No newline at end of file |
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.
same thing with sd card please refer to cpp constructor
| #include "main.h" | ||
| } | ||
|
|
||
| UartDevice _900k_uart = { .config = { |
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.
same comment here
|
|
||
| IWDG_HandleTypeDef hiwdg; | ||
|
|
||
| RTC_HandleTypeDef hrtc; |
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.
time to make a new hw_rtc library hehehehe
Changelist
dam ioc, hw, chimera
(not sure about the hw files, especially hw_uarts. I kept the code from the old one for now but pls tell me what I need to fix)