I added a define to disable the use of LEDs if the hardware misses them. In my case there where none, in order to use all GPIOs as external inputs. I took CAN_ENABLE as example. Obviously by default LED_ENABLE defined as 1 and only set to 0, if HW_HAS_NO_LED is set in the hwconf/hw_xx.h.
And I deleted a duplicate of #include "ledpwm.h" in the main.c file.
I added a define to disable the use of LEDs if the hardware misses them. In my case there where none, in order to use all GPIOs as external inputs. I took
CAN_ENABLE
as example. Obviously by defaultLED_ENABLE
defined as1
and only set to0
, ifHW_HAS_NO_LED
is set in thehwconf/hw_xx.h
.And I deleted a duplicate of
#include "ledpwm.h"
in themain.c
file.