10000 User/lz/vcfr pin config fix by LucasZahlan · Pull Request #194 · concordia-fsae/firmware · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

User/lz/vcfr pin config fix #194

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LucasZahlan
Copy link
Contributor

Describe changes

Configured pins for the VC rear from the header.
Set frequency speeds.
Set ports.
Set pins.
Set reset states.
Set GPIO modes

Impact

Configured pins to be used in hopes to have smooth operation and integration later.
Prevent hardware malfunctions and communication errors.

Test Plan

  • N/A, No hardware to test with.

@LucasZahlan LucasZahlan requested a review from JoshLafleur April 3, 2025 01:22
@LucasZahlan
Copy link
Contributor Author

continued pr #172

@LucasZahlan LucasZahlan force-pushed the user/lz/vcfr_pin_config_fix branch 2 times, most recently from 39bd31d to 32b665d Compare April 3, 2025 16:48
Copy link
Contributor
@joshlafleur-zip joshlafleur-zip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of volume of comments and the need to re-review anyways I did not review the pin configurations are correct. Review the schematics, their implementations, and lastly the pin configs are correct for their respective functions

HW_GPIO_TACH_WHEELSPEED_R,
HW_GPIO_TACH_WHEELSPEED_L,
HW_GPIO_RUN_BUTTON,
HW_GPIO_COUNT,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: spacing

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not resolved, there is still a space missing. Dont repush if its just this but only resolve when you actually fix it

Comment on lines 170 to 177
[HW_GPIO_ADC_BOARD_TEMP] = {
.port = GPIOB,
.pin = GPIO_PIN_1,
.mode = GPIO_MODE_ANALOG,
.speed = GPIO_SPEED_FREQ_LOW,
.pull = GPIO_NOPULL,
.resetState = HW_GPIO_NOSET,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see this on the schematic, let alone I cannot find a board temp sensor on any of the schematics...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still did not fix the name?...

Comment on lines 53 to 54
HW_GPIO_SPI_NCS_IMU,
HW_GPIO_SPI_NCS_SD,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: space at the end

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not resolved, there is still a space. Dont repush if its just this but only resolve when you actually fix it

HW_GPIO_RUN_BUTTON, // WAS RUN
HW_GPIO_COUNT,
} HW_GPIO_pinmux_E;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: added spaces?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as other comments. Dont resolve unless you fix it or answer

Copy link
Collaborator
@JoshLafleur JoshLafleur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go back through all comments, resolve if oyu actually do something or if you comment and the discussion is closed. Make sure your changes are pushed because nothing was fixed since my last review

Comment on lines 53 to 54
HW_GPIO_SPI_NCS_IMU,
HW_GPIO_SPI_NCS_SD,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not resolved, there is still a space. Dont repush if its just this but only resolve when you actually fix it

HW_GPIO_TACH_WHEELSPEED_R,
HW_GPIO_TACH_WHEELSPEED_L,
HW_GPIO_RUN_BUTTON,
HW_GPIO_COUNT,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not resolved, there is still a space missing. Dont repush if its just this but only resolve when you actually fix it

HW_GPIO_RUN_BUTTON, // WAS RUN
HW_GPIO_COUNT,
} HW_GPIO_pinmux_E;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as other comments. Dont resolve unless you fix it or answer

Comment on lines 11 to 54

typedef enum
{
HW_GPIO_DIG_SPARE1 = 0U,
HW_GPIO_DIG_SPARE2,
HW_GPIO_DIG_SPARE3,
HW_GPIO_DIG_SPARE4,
HW_GPIO_LED,
HW_GPIO_ADC_SPARE1,
HW_GPIO_ADC_SPARE2,
HW_GPIO_ADC_SPARE3,
HW_GPIO_ADC_SPARE4,
HW_GPIO_ADC_APPS_P1,
HW_GPIO_ADC_APPS_P2,
HW_GPIO_ADC_BR_POT,
HW_GPIO_ADC_L_SHK_DISP,
HW_GPIO_ADC_L_BR_TEMP,
HW_GPIO_ADC_R_SHK_DISP,
HW_GPIO_ADC_R_BR_TEMP,
HW_GPIO_ADC_PU1,
HW_GPIO_ADC_PU2,
HW_GPIO_ADC_BR_PR,
HW_GPIO_ADC_BOARD_TEMP,
HW_GPIO_5V_NFLT2, //N implies active low
HW_GPIO_5V_NEN2,
HW_GPIO_5V_NEN1,
HW_GPIO_5V_NFLT1,
HW_GPIO_CAN2_RX,
HW_GPIO_CAN2_TX,
HW_GPIO_MUX_SEL2,
HW_GPIO_MUX_SEL1,
HW_GPIO_HORN_EN,
HW_GPIO_BMS_LIGHT_EN,
HW_GPIO_IMD_LIGHT_EN, 685C
HW_GPIO_TSSI_G_EN,
HW_GPIO_TSSI_R_EN,
HW_GPIO_BR_LIGHT_EN,
HW_GPIO_CAN1_RX,
HW_GPIO_CAN1_TX,
HW_GPIO_MCU_UART_EN,
HW_GPIO_MCU_UART_TX,
HW_GPIO_MCU_UART_RX,
HW_GPIO_SPI_NCS_IMU,
HW_GPIO_SPI_NCS_SD,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments as other pin def

Comment on lines 170 to 177
[HW_GPIO_ADC_BOARD_TEMP] = {
.port = GPIOB,
.pin = GPIO_PIN_1,
.mode = GPIO_MODE_ANALOG,
.speed = GPIO_SPEED_FREQ_LOW,
.pull = GPIO_NOPULL,
.resetState = HW_GPIO_NOSET,
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still did not fix the name?...

.resetState = HW_GPIO_PINSET,
},
[HW_GPIO_CAN2_RX] = {
.port = GPIOB,
.pin = GPIO_PIN_12,
.mode = GPIO_MODE_INPUT,
.speed = GPIO_SPEED_FREQ_HIGH,
.speed = GPIO_SPEED_FREQ_LOW,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you resolved and didnt do anything about it or comment on this

@@ -41,14 +221,183 @@ const HW_GPIO_S HW_GPIO_pinmux[HW_GPIO_COUNT] = {
.mode = GPIO_MODE_AF_PP,
.speed = GPIO_SPEED_FREQ_HIGH,
.pull = GPIO_NOPULL,
.resetState = HW_GPIO_PINSET,
.resetState = HW_GPIO_PINRESET,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you resolved and didnt do anything about it or comment on this

.port = GPIOD,
.pin = GPIO_PIN_14,
.mode = GPIO_MODE_OUTPUT_PP,
.speed = GPIO_SPEED_FREQ_HIGH,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even if we pwm itll sbe low freq. also, you didnt change it...

@LucasZahlan LucasZahlan force-pushed the user/lz/vcfr_pin_config_fix branch from bf06bb7 to dede1d2 Compare April 12, 2025 00:43
Copy link
Collaborator
@JoshLafleur JoshLafleur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Youre missing the changes to front/HW_gpio_componentSpecific.c btw

@LucasZahlan LucasZahlan force-pushed the user/lz/vcfr_pin_config_fix branch 3 times, most recently from 64e4152 to 7544124 Compare May 3, 2025 22:58
@LucasZahlan LucasZahlan force-pushed the user/lz/vcfr_pin_config_fix branch from 7544124 to e8718e1 Compare May 11, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0