This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What is the purpose of LED_START and LED_STOP lines in pca10028.h?

I need to add two more led pins - #10 and #30 - to that board, but I don't know what to do with LED_START and LED_STOP lines, and so far, it is difficult for me to trace any occurances of those two in my project.

Parents
  • Those refer to the beginning and ending numbering for the start/stop of the led gpios. You will find them referenced in boards.c Personally I found that a difficult way to deal with the driver. You can always just config the gpio yourself in code. That is what I do. Just keep in mind that if you are actually using p0.10 and p0.30 then you will need to deal with the loss of RTS and SDA. eg, if you use the uart it will change the mapping of p0.10

Reply
  • Those refer to the beginning and ending numbering for the start/stop of the led gpios. You will find them referenced in boards.c Personally I found that a difficult way to deal with the driver. You can always just config the gpio yourself in code. That is what I do. Just keep in mind that if you are actually using p0.10 and p0.30 then you will need to deal with the loss of RTS and SDA. eg, if you use the uart it will change the mapping of p0.10

Children
No Data
Related