energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
793 stars 673 forks source link

Suggestion: New Structure for Energia #117

Closed rei-vilo closed 11 years ago

rei-vilo commented 11 years ago

The new Arduino 1.5 introduces a new internal structure, which is clearer when dealing with multiple platforms.

It consists on adding an intermediate folder for the IDE=arduino PLATFORM=sam

Now /Applications/Energia.app/Contents/Resources/Java/hardware/arduino/sam/ Instead of, before /Applications/Energia.app/Contents/Resources/Java/hardware/arduino/

Now —click to enlarge IMG Instead of, before —click to enlarge IMG

This is closer to the Wiring structure —click to enlarge IMG

I suggest using the same new structure for Energia:

Suggested /Applications/Energia.app/Contents/Resources/Java/hardware/energia/lm4f/ /Applications/Energia.app/Contents/Resources/Java/hardware/energia/msp430/ /Applications/Energia.app/Contents/Resources/Java/hardware/energia/piccolo/

Instead of, before /Applications/Energia.app/Contents/Resources/Java/hardware/lm4f/ /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/

What do you think?

art65536 commented 11 years ago

must be great! arduino do this because create arduino due. launchpads have more then 2 target platform so this changes very important and needed for energia

robertinant commented 11 years ago

Although I see the value in this, a casual user would not notice the difference so this will go way down the list for now.

robertinant commented 11 years ago

In fact, its not only the structure of the folders. A lot has changed in the IDE code as well. 1.5 moved from build in compiler commands to external Makefile structure.

rei-vilo commented 11 years ago

I agree. This is not a top priority, so I mark it as Deferred for alter consideration.

As a matter of facts, I'm not concerned by the Arduino IDE as I use makefiles with Xcode for my embedXcode template.

JacobChrist commented 11 years ago

This structure and the platforms. and boards concept was borrowed from the MPIDE project that chipKIT uses and was created by Mark Sproul and Rick Anderson. The original intent was so that many different platforms (Arduino, DUE, chipKIT, Energia) could all be compiled and utilized with a single tool (MPIDE). Also the other thing we are talking about now on the chipKIT project is to be able to support different version of the core libraries (0.23, 1.0, 1.5) in a single IDE. The idea would be to define one of the following in your pde file:

define 0023

define 0100

define 0150

To choose the core library that you wanted to use.

Jacob

On Sat, Oct 27, 2012 at 6:08 AM, Rei Vilo notifications@github.com wrote:

The new Arduino 1.5 introduces a new internal structure, which is clearer when dealing with multiple platforms.

It consists on adding an intermediate folder for the IDE=arduino PLATFORM=sam

Now /Applications/Energia.app/Contents/Resources/Java/hardware/arduino/sam/ Instead of, before /Applications/Energia.app/Contents/Resources/Java/hardware/arduino/

Now —click to enlarge [image: IMG]https://a248.e.akamai.net/camo.github.com/b3faec7022485c0f377c02ac0f4a568ab0f4e1d5/687474703a2f2f6661726d392e737461746963666c69636b722e636f6d2f383035332f383132373439343535325f656536373761633362355f622e6a7067 Instead of, before —click to enlarge [image: IMG]https://a248.e.akamai.net/camo.github.com/97c266315eac2361501cd7992ab5353cbfaffd2a/687474703a2f2f6661726d392e737461746963666c69636b722e636f6d2f383034332f383132373436363335375f643434343034323636375f622e6a7067

This is closer to the Wiring structure —click to enlarge [image: IMG]https://a248.e.akamai.net/camo.github.com/50b81cbc9a0c78c961b6483dece1635200cba8c0/687474703a2f2f6661726d392e737461746963666c69636b722e636f6d2f383035312f383132373533353636365f626263633561613433385f622e6a7067

I suggest using the same new structure for Energia:

Suggested /Applications/Energia.app/Contents/Resources/Java/hardware/energia/lm4f/ /Applications/Energia.app/Contents/Resources/Java/hardware/energia/msp430/ /Applications/Energia.app/Contents/Resources/Java/hardware/energia/piccolo/

Instead of, before /Applications/Energia.app/Contents/Resources/Java/hardware/lm4f/ /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/

What do you think?

— Reply to this email directly or view it on GitHubhttps://github.com/energia/Energia/issues/117.

Jacob Christ ProLinear/PONTECH, Inc. 1-877-985-9286 Phone 1-413-235-1651 Fax http://www.pontech.com