Replies: 2 comments 18 replies
-
I really like the idea of a separate organization for libraries. I think we need a place for users to find & contribute to libraries that have been updated for Mbed CE! Also that will help keep the Mbed CE github organization clear of clutter. Maybe we should also make a 3rd organization for examples? That way the mbed-ce org will be just the core 4-6 repos.
Hmmm... I don't love that. A lot of those functions were removed for a good reason, like wait() conflicting with OS function names and the old serial classes being literal cancer. So, I would like it to be obvious that the user shouldn't use these for anything but adapting old libraries. What if we made it a separate include file, like #include <mbed-legacy-shims.h> that you had to include, and it would implement the old functions using modern Mbed? I think that could work OK. It could exist either as a separate library, or as an optional header in Mbed. |
Beta Was this translation helpful? Give feedback.
-
The separate library does have the point because you have to edit library anyway and that not avoid unnecessary questions from low experienced users. But I agree with you we do not go this way. For examples can be applied different techniques. For example multiple main_xxx.cpp files in one project and select final file of requested example via top lvl CmakeLists.txt
So may i create new github organization MbedCE-libraries? Or you want do it by your self? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I would like to do something with Mbed libraries but is necessary to create a space, so here are few options what i have in my mind.
Another point is current state of old libraries. For MbedCE it will be around add CmakeLists but harder will be covert the code of all old libraries to MbedOS6+ version without testing because i am not able to buy and test everything.
BTW i did an analyze and i found that most of changes what were done in MbedOS in the past are possible to revert back without break current state.
For example:
Most of these changes break backward use of old libraries. So when we put these all back covered by a macro OLDTIMEBED (enabled via mbed_app.json) then we are able to use old libararies withou any code conversion at this time (can be done in future). Of course for price of old code in source.
What do you think? @multiplemonomials
BR, Jan
Beta Was this translation helpful? Give feedback.
All reactions