Skip to content

Conversation

@Ilia1S
Copy link
Contributor

@Ilia1S Ilia1S commented Nov 16, 2024

Данное изменение исправляет ошибку, которая возникала при сборке.

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

@Ilia1S Ilia1S requested a review from pgasheev November 16, 2024 13:06
Copy link
Collaborator

@pgasheev pgasheev left a comment

Choose a reason for hiding this comment

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

Описания нет, проверки не проходят

@Ilia1S Ilia1S requested a review from pgasheev November 19, 2024 10:16
Copy link
Collaborator

@pgasheev pgasheev left a comment

Choose a reason for hiding this comment

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

Нет описания PR

@Ilia1S Ilia1S requested a review from pgasheev November 20, 2024 08:21
BIT(EC_EXT_GPIO_A3) |
BIT(EC_EXT_GPIO_A4)
);
gpio_ctx.gpio_ctrl &= ~INPUTS_ONLY_GPIOS;
Copy link
Collaborator

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;
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Тут пробел лишний в начале строки как будто

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