1 #include "drivers/lights_io.h"
2 #include "drivers/io.h"
6 #ifndef LIGHTS_OUTPUT_MODE
7 #define LIGHTS_OUTPUT_MODE IOCFG_OUT_PP
10 static IO_t lightsIO
= DEFIO_IO(NONE
);
12 bool lightsHardwareInit(void)
14 lightsIO
= IOGetByTag(IO_TAG(LIGHTS_PIN
));
17 IOInit(lightsIO
, OWNER_LED
, RESOURCE_OUTPUT
, 0);
18 IOConfigGPIO(lightsIO
, LIGHTS_OUTPUT_MODE
);
24 void lightsHardwareSetStatus(bool status
)
27 IOWrite(lightsIO
, status
);
30 #endif /* USE_LIGHTS */