-
Notifications
You must be signed in to change notification settings - Fork 1
gpio-subsytem: Initialize gpio_dir as constant #60
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: main
Are you sure you want to change the base?
Conversation
pgasheev
left a comment
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.
Описания нет, проверки не проходят
pgasheev
left a comment
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.
Нет описания PR
| BIT(EC_EXT_GPIO_A3) | | ||
| BIT(EC_EXT_GPIO_A4) | ||
| ); | ||
| gpio_ctx.gpio_ctrl &= ~INPUTS_ONLY_GPIOS; |
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.
Здесь нужно перечислить именно А1-А4, а не INPUTS_ONLY_GPIOS
| { | ||
| // Зануляем всё кроме V_OUT - он не должен сбрасываться при перезагрузке | ||
| gpio_ctx.gpio_ctrl &= BIT(EC_EXT_GPIO_V_OUT); | ||
| gpio_ctx.gpio_ctrl &= OUTPUTS_ONLY_GPIOS; |
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.
Оставить как было, даже коммент есть почему так
|
|
||
| -- Ilia Skochilov <ilia.skochilov@wirenboard.com> Tue, 22 Nov 2024 10:02:10 +0300 | ||
|
|
||
| wb-ec-firmware (2.0.1) stable; urgency=medium |
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.
Тут пробел лишний в начале строки как будто
Данное изменение исправляет ошибку, которая возникала при сборке.
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
src/gpio-subsytem.c:68:17: error: initializer element is not constant
.gpio_dir = outputs_only_gpios,
^~~~~~~~~~~~~~~~~~
src/gpio-subsytem.c:68:17: note: (near initialization for 'gpio_ctx.gpio_dir')
make[1]: *** [build/WB74/build/gpio-subsytem.o] Error 1