SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
To include the LED driver, define HAL_LED=TRUE in the preprocessor definitions. TI designed the driver to function with the LEDs on the key fob. You must modify parts of the driver such as the LED bit definitions in hal_led.c to use it with custom hardware. For an example using the LED driver, see the CC2540/1 DK-miniKeyfob in the SimpleBLEPeripheral project.