compile error: incompatible function pointer types initializing#10186
Closed
Lin-Chengqiu wants to merge 0 commit intoRT-Thread:masterfrom
Closed
compile error: incompatible function pointer types initializing#10186Lin-Chengqiu wants to merge 0 commit intoRT-Thread:masterfrom
Lin-Chengqiu wants to merge 0 commit intoRT-Thread:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
bsp/gd32/arm/libraries/gd32_drivers/drv_adc.c:108
- Changing the channel parameter to rt_int8_t appears to resolve the function pointer type incompatibility; ensure that any logic relying on channel values correctly handles the signed type.
static rt_err_t gd32_adc_enabled(struct rt_adc_device *device, rt_int8_t channel, rt_bool_t enabled)
bsp/gd32/arm/libraries/gd32_drivers/drv_adc.c:156
- Updating the channel parameter to rt_int8_t resolves the type compatibility issue; verify that all channel operations are consistent with the signed parameter across the ADC driver implementation.
static rt_err_t gd32_adc_convert(struct rt_adc_device *device, rt_int8_t channel, rt_uint32_t *value)
Member
|
请rebase一下,并且加上yml文件,应该很简单。 |
supperthomas
approved these changes
Apr 14, 2025
Member
|
git fetch origin |
Member
|
重新提交一和pr吧,用最新的节点,pr内容填一下,标题改下参考其他pr |
This file contains hidden or 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
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.
No description provided.