Is there a way to use Arduino libraries with Atmel Studio 6 and AT90USB?
If not then how difficult it would be to rewrite the code from library to work with this things?
Since the Arduino "libraries" are written in C++: If you are comfortable with that language then it should not be too hard, since Atmel Studio 6 claims support C++ projects.
how difficult it would be
As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here.
No guarantees, but if we don't report problems they won't get much of a chance to be fixed! Details/discussions at link given just above.
"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]
I think the X is something near to: "Im comfortable fixing simple bugs and understanding C++ code but not able to write complex algorithms."
So what would be the difficulty level now? :D
Oh, somewhere between "ho" and "hum...". :wink:
I do not believe that anyone can give any quantitative answer. What they might be able to is to say something about what problems there would be, based on their reading of the code.
Since no-one has answered like that yet my guess is that no-one has read the entire code, and/or was not prepared to write down a list of problems they spotted.
I would suggest that you start reading the code - you seem to indicate above that you have the skills for this. Then when you get to a specific problem, ask here.
Another option would be to just try to compile the Arduino "library" sources in Atmel Studio 6, in a C++ project. When it fails (not "if") you start working out the problems, one by one.
Is it the complete Arduino library you want ported, or just some specific part?
Note also that for the USB specific part you will probably use LUFA so you also have to bear in mind how other code will interface to that.
© 2020 Microchip Technology Inc.