Is there a "howto" somewhere that describes how to use libraries written for "Arduino" (specifically, classes that begin with "#include<Arduino.h>") in an Atmel Studio 7 C++ project for a chip like the Mega324p?
I've spent hours so far wading through seemingly endless Google search results that all seem to be describing scenarios I don't want:
* I don't want to use the Mega324p with the Arduino IDE. I want to use it with Atmel Studio 7, in a normal Atmel Studio 7 C++ project.
* I don't want to do Arduino-style flashing (via serial bootloader). I have a JTAGice mk2 & want to use it in the normal manner, using ISP, within Atmel Studio, via "Run without debugging". For what it's worth, I don't think I've ever gotten anything that involves AVRdude to reliably use the JTAGice mkII (from what I gather, Atmel refused to publicly document the JTImk2's communication protocol... AVRdude's developers eventually managed to reverse-engineer enough to get it "sort of" working, but it's officially unsupported.)
* Assuming the Arduino bootloader is literally JUST a bootloader that enables serial flashing, and not a HAL/kernel that everything in Arduino.h depends upon in order to work, I don't want to flash an Arduino bootloader.
I found THIS, which seems like it might be the source code to an implementation of the Arduino core libraries for the 324p and others...
https://elementztechblog.wordpre...
... but all of its documentation seems to assume I want to use the Mega324p AS an Arduino, as opposed to wanting to treat "Arduino" as a mere library dependency in an otherwise-normal Atmel Studio 7 C++ project.
Am I trying to solve an impossible problem (enabling source with dependencies on Arduino.h to compile in Atmel Studio 7 as a C++ project for the Mega324p), or is this something that's actually pretty easy to do?