Skip to content

ADS131M08-Q1 driver#10

Merged
changxu-liu merged 7 commits into
mainfrom
ads131m08-q1_driver_2
May 10, 2026
Merged

ADS131M08-Q1 driver#10
changxu-liu merged 7 commits into
mainfrom
ads131m08-q1_driver_2

Conversation

@changxu-liu
Copy link
Copy Markdown
Contributor

The stuff from PR #7, but hopefully into the right branch this time...

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the PDU Mk1 firmware, including drivers for SPI, GPIO, UART, and the ADS131M08-Q1 ADC. The review identified critical bugs in SPI interrupt handlers where incorrect semaphores were signaled for hspi1. Feedback also focused on the ADC driver, recommending the replacement of inefficient vTaskDelay calls for chip-select timing, the use of byte shifts instead of unsafe pointer casting for 24-bit data, and a more robust sign-extension implementation. Corrections to mismatched peripheral names in code comments were also requested.

Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_SPI.c Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_SPI.c Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_SPI.c Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_SPI.c Outdated
Comment thread firmware/driver/src/ADS131M08-Q1.c
Comment thread firmware/driver/src/ADS131M08-Q1.c Outdated
Comment thread firmware/driver/src/ADS131M08-Q1.c Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_GPIO.c Outdated
@changxu-liu changxu-liu requested a review from Lakshay983 May 10, 2026 05:21
Copy link
Copy Markdown

@Lakshay983 Lakshay983 left a comment

Choose a reason for hiding this comment

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

good if this branch is tested on hardware

@changxu-liu changxu-liu merged commit c62e929 into main May 10, 2026
2 checks passed
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.

2 participants