Closed hellow554 closed 2 years ago
There's some great ideas in there and I'm open to at least some of them :) Let's start with upgrading the standard library which I agree is past its sell-by date. If you have everything built with a newer version then please submit a PR and I'll merge it to a new branch for testing.
Ah, didn't realise there was anyone else using CMake with stm32plus. Apart from your preference that it not be pre-compiled, how do you find the current config module scheme?
@mikepurvis I like the scheme. It's easy and it finds (nearly every time) the newest version. Sometimes it does not find it, if you have multiple versions installed, but I don't know whether it's a fault of cmake or mine. I just fix that issue by deleting the old version.
@andysworkshop I'm working on it. Hang on, it's not that easy to do it right :D
+1 for an upgraded std library. I don't particularly mind scons, but sure, cmake is fine as well. Allowing clang is a good idea to me too.
Hi! what is the status of "transformation"? :)
To be honest, I didn't manage to implement any of this points, except building it against libc++ . The problem there was the huge config file, which you have to modify in order to get a good result in terms of usability and size for libc++ (e.g. disable thread features, don't use I/O, no underlying system, using libc or muscle.... That's a quiet big file there).
I wouldn't mind if somebody says, that he/she wants to implement any of this features, but currently I'm not capable of doing any of these (work, Christmas, holidays, ...) sorry for that.
Hi, is there any progress?
I'm afraid not. I guess you're welcome to do any work ;) I would help, wherever I can, but tbh i didnt work with this library over 4 months by now, because of other projects.
@hellow554 : Sorry for revisiting this old thread. But i really like some of the points you've mentioned at the top. Especially "Determine the cpu and features at compile time of the program, not the library" . This has been a sticking point for me as well. Do you have any idea on how this could be implemented or what type of an approach would be appropriate. I'm willing to try it out. Any suggestions would help. I've hacked the library to build against libstdc++. And like you said the resulting binaries are almost the same size. Not a big fan of scons either lol. Would rather prefer cmake. Let me know. Cheers
This issue is now 1.5 years old, I haven't used this library since then. I'm very sorry for that. I don't know what the current status of this library is? But I think you're welcome to open a pull request and get things done.
Hey everyone,
I'd like to reconstructure the library a bit. I really love to work with it, but sometimes it annoys me a lot. Some examples
#include "config/spi.h"
. I would prefer something like#include <stm32plus/spi.h>
I know this is a lot and I think, when we discussed about this, it would be good to create an issue for each section and implement it on a different branch, because it would brake things. But I think this would improve the usage of the library a lot, espacially the c++11 features. You can get rid of some legacy code (scoped_array, scoped_ptr => std::unique_ptr), and some algorithmns, like none_of, all_of, etc...