AnsweredAssumed Answered

MKW30Z framework LED.h LED.c limitations

Question asked by Lucian Firan on Nov 21, 2016

KW40Z_Connectivity_Software_1.0.1 KSDK_1.3.0 IAR 7.5


It seems rather complicated to insert led support for the 5 th led or the n th led.

I think the mapping is the issue here:
* LEDs mapping
#define LED1                     0x01
#define LED2                     0x02
#define LED3                     0x04
#define LED4                     0x08
#define LED_ALL                  0x0F
#define LED1_FLASH               0x10
#define LED2_FLASH               0x20
#define LED3_FLASH               0x40
#define LED4_FLASH               0x80
#define LED_FLASH_ALL            0xF0  /* flash all LEDs */


like going on 16bit (0x0100) ?

Is there a easy-er way ?


Another limitation I think is missing a polarity software switch like
normal/inverted output.

To fully disable led support:

/* Enable/Disable LED supoort */
#define  gLEDSupported_d                TRUE
/* Specifies the number of physical LEDs on the target board */
#define gLEDsOnTargetBoardCnt_c 4


It is  enough to switch gLEDSupported_d FALSE  ?

or more ?


Thank you,