Add weak attribute to led_set#4
Conversation
|
It makes sense. I like to change LED api it self later but this would be useful until then. Only adding the attribute 'weak' is enough for this pupose? don't you need default implementation somewhere? |
|
It's enough, in my tests it built without errors/warnings. |
|
I just tested, it can compiled as you said but it stops working or run away when pressing Capslock. |
|
I guess we have two solutions;
or use alias like:
http://www.cs.virginia.edu/~wh5a/blog/The%20weak%20attribute%20of%20gcc.html |
This makes LEDs optional, lots of boards don't have any.