11 years ago.

Too few arguments in invocation of macro error occurs.

In USBHAL_STM32F4.cpp, I have errors on

USBHAL_STM32F4.cpp

    pin_function(PA_8, STM_PIN_DATA(2, 10));
    pin_function(PA_9, STM_PIN_DATA(0, 0));
    pin_function(PA_10, STM_PIN_DATA(2, 10));
    pin_function(PA_11, STM_PIN_DATA(2, 10));
    pin_function(PA_12, STM_PIN_DATA(2, 10));

with message Too few arguments in invocation of macro "STM_PIN_DATA" "pin_function(PA_8, STM_PIN_DATA(2,10));" ...

Actually, in the #if block of

#if defined(TARGET_STM32F407VG)
pin_function(PA_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG_FS));

STM_PIN_DATA macro has 3 parameters.

Do I forget something to switch the STM_PIN_DATA macro?

Question relating to:

Official USBDevice does not support your target?

posted by Martin Kojtal 18 Sep 2014
Be the first to answer this question.