Skip to content

stm32f429i-dicovery ltdc example gpio setup #243

@rooi-oog

Description

@rooi-oog

Hi

I'm trying to build an LTDC example for stm32f429 and I found a mistake in the code.
In file examples/stm32/f4/stm32f429i-discovery/lcd-dma/lcd-dma.c:101

/* set GPIO pin modes */
gpio_mode_setup(GPIOB, GPIO_MODE_AF, GPIO_PUPD_NONE,
	GPIO0 | GPIO1 | GPIO8 | GPIO9 | GPIO10 | GPIO11);
gpio_set_output_options(GPIOA, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ,
                        ^^^^^^
		GPIO0 | GPIO1 | GPIO8 |
		GPIO9 | GPIO10 | GPIO11);
gpio_set_af(GPIOB, GPIO_AF9, GPIO0 | GPIO1);
gpio_set_af(GPIOB, GPIO_AF14, GPIO8 | GPIO9 | GPIO10 | GPIO11);

It's obvious that this is a mistake. And this mistake continues to repeat in every GPIO group.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions