mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-11 08:29:19 +01:00
[sam] fixing compilation in IDE (changing some #includes).
This commit is contained in:
parent
25e3924dda
commit
d9dcc66232
@ -219,7 +219,7 @@ public class Compiler implements MessageConsumer {
|
|||||||
// collecting them into the core.a library file.
|
// collecting them into the core.a library file.
|
||||||
System.out.println("3. compileCore");
|
System.out.println("3. compileCore");
|
||||||
System.out.println("corePath: " + corePath);
|
System.out.println("corePath: " + corePath);
|
||||||
compileCore(avrBasePath, buildPath, corePath, pins, pinsPath, configPreferences);
|
compileCore(avrBasePath, buildPath, corePath, systemPath, pins, pinsPath, configPreferences);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -762,13 +762,14 @@ public class Compiler implements MessageConsumer {
|
|||||||
|
|
||||||
// 3. compile the core, outputting .o files to <buildPath> and then
|
// 3. compile the core, outputting .o files to <buildPath> and then
|
||||||
// collecting them into the core.a library file.
|
// collecting them into the core.a library file.
|
||||||
void compileCore (String avrBasePath, String buildPath, String corePath, String pins, String pinsPath, HashMap<String, String> configPreferences)
|
void compileCore (String avrBasePath, String buildPath, String corePath, String systemPath, String pins, String pinsPath, HashMap<String, String> configPreferences)
|
||||||
throws RunnerException
|
throws RunnerException
|
||||||
{
|
{
|
||||||
System.out.println("compileCore(...) start");
|
System.out.println("compileCore(...) start");
|
||||||
|
|
||||||
ArrayList<String> includePaths = new ArrayList();
|
ArrayList<String> includePaths = new ArrayList();
|
||||||
includePaths.add(corePath); //include core path only
|
includePaths.add(corePath); //include core path only
|
||||||
|
includePaths.add(systemPath);
|
||||||
if (pinsPath != null) includePaths.add(pinsPath);
|
if (pinsPath != null) includePaths.add(pinsPath);
|
||||||
|
|
||||||
//debug includePaths
|
//debug includePaths
|
||||||
|
@ -129,7 +129,7 @@ typedef enum IRQn
|
|||||||
* \brief CMSIS includes
|
* \brief CMSIS includes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <core_cm3.h>
|
#include <CMSIS/CM3/CoreSupport/core_cm3.h>
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Macros
|
* Macros
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Definitions
|
* Definitions
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*------------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*------------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*------------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#ifndef _WDT_
|
#ifndef _WDT_
|
||||||
#define _WDT_
|
#define _WDT_
|
||||||
|
|
||||||
#include "chip.h"
|
#include "../chip.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef sam3s_ek
|
||||||
|
#define sam3s_ek
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Name of the board */
|
/** Name of the board */
|
||||||
#define VARIANT_NAME "SAM3S-EK"
|
#define VARIANT_NAME "SAM3S-EK"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user