Hi Flávio,

A simple band-aid fix: add this typedef inside
"arch/chip/stm32_gpio.h" just before it is called at
stm32_gpiosetevent():

 typedef CODE int (*xcpt_t)(int irq, FAR void *context, FAR void *arg);

int stm32_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge,
                       bool event, xcpt_t func, void *arg);

We need investigate which patch broke the "make export" and fix it.

BR,

Alan

On 11/16/20, Flavio Castro Alves Filho <flavio.al...@gmail.com> wrote:
> Hello,
>
> I intend to build a nuttx application using the operating system as an
> external library.
>
> I am working on a custom board running stm32f417 and I am following
> the instructions from the following link:
> https://acassis.wordpress.com/2020/06/28/using-nuttx-as-library-once-again/
>
> For the first compilation, I am having the following compilation error:
>
> ubuntu@pc-ubuntu:~/Documents/nuttx/hello/nuttx-export-9.1.0$
> arm-none-eabi-gcc -c -fno-builtin -Wall -Wstrict-prototypes -Wshadow
> -Wundef -g -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -I. -isystem
> ./include   -pipe -I "./include" -I "./arch/chip" hello.c -o  hello.o
> In file included from ./arch/chip/hardware/stm32f40xxx_pinmap.h:48:0,
>                  from ./arch/chip/hardware/stm32_pinmap.h:133,
>                  from ./arch/chip/chip.h:59,
>                  from ./include/arch/armv7-m/nvicpri.h:28,
>                  from ./include/arch/armv7-m/irq.h:37,
>                  from ./include/arch/irq.h:49,
>                  from ./include/nuttx/irq.h:53,
>                  from ./include/nuttx/sched.h:40,
>                  from ./include/sched.h:34,
>                  from ./include/stdio.h:48,
>                  from hello.c:1:
> ./arch/chip/stm32_gpio.h:538:36: error: unknown type name 'xcpt_t'
>                         bool event, xcpt_t func, void *arg);
>                                     ^~~~~~
>
> Could you give some advice on how to address this issue?
>
> Best regards,
>
> Flavio
>
> --
> Flavio de Castro Alves Filho
>
> flavio.al...@gmail.com
> Twitter: http://twitter.com/#!/fraviofii
> LinkedIn profile: www.linkedin.com/in/flaviocastroalves
>

Reply via email to