mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
[sam] renaming unused files and ensure that test app works on Due
This commit is contained in:
parent
8716884ada
commit
ac4b087eb0
@ -1,6 +1,6 @@
|
||||
ifeq ("$(VARIANTS)", "")
|
||||
#VARIANTS = sam3s_ek sam3u_ek arduino_due
|
||||
VARIANTS = sam3u_ek
|
||||
VARIANTS = sam3s_ek sam3u_ek arduino_due
|
||||
#VARIANTS = sam3u_ek
|
||||
endif
|
||||
|
||||
SUBMAKE_OPTIONS=--no-builtin-rules --no-builtin-variables
|
||||
|
@ -69,7 +69,7 @@ C_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.c)
|
||||
C_OBJ_TEMP = $(patsubst %.c, %.o, $(notdir $(C_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
C_OBJ_FILTER=wiring_analog.o wiring_pulse.o dlib_lowlevel_sam3.o
|
||||
C_OBJ_FILTER=dlib_lowlevel_sam3.o
|
||||
|
||||
C_OBJ=$(filter-out $(C_OBJ_FILTER), $(C_OBJ_TEMP))
|
||||
|
||||
@ -81,7 +81,7 @@ CPP_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.cpp)
|
||||
CPP_OBJ_TEMP = $(patsubst %.cpp, %.o, $(notdir $(CPP_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
CPP_OBJ_FILTER=Tone.o
|
||||
CPP_OBJ_FILTER=
|
||||
|
||||
CPP_OBJ=$(filter-out $(CPP_OBJ_FILTER), $(CPP_OBJ_TEMP))
|
||||
|
||||
|
@ -69,7 +69,7 @@ C_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.c)
|
||||
C_OBJ_TEMP = $(patsubst %.c, %.o, $(notdir $(C_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
C_OBJ_FILTER=wiring_analog.o wiring_pulse.o dlib_lowlevel_sam3.o
|
||||
C_OBJ_FILTER=dlib_lowlevel_sam3.o
|
||||
|
||||
C_OBJ=$(filter-out $(C_OBJ_FILTER), $(C_OBJ_TEMP))
|
||||
|
||||
@ -81,7 +81,7 @@ CPP_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.cpp)
|
||||
CPP_OBJ_TEMP = $(patsubst %.cpp, %.o, $(notdir $(CPP_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
CPP_OBJ_FILTER=Tone.o
|
||||
CPP_OBJ_FILTER=
|
||||
|
||||
CPP_OBJ=$(filter-out $(CPP_OBJ_FILTER), $(CPP_OBJ_TEMP))
|
||||
|
||||
|
@ -69,7 +69,7 @@ C_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.c)
|
||||
C_OBJ_TEMP = $(patsubst %.c, %.o, $(notdir $(C_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
C_OBJ_FILTER=wiring_analog.o wiring_pulse.o dlib_lowlevel_sam3.o
|
||||
C_OBJ_FILTER=dlib_lowlevel_sam3.o
|
||||
|
||||
C_OBJ=$(filter-out $(C_OBJ_FILTER), $(C_OBJ_TEMP))
|
||||
|
||||
@ -81,7 +81,7 @@ CPP_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.cpp)
|
||||
CPP_OBJ_TEMP = $(patsubst %.cpp, %.o, $(notdir $(CPP_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
CPP_OBJ_FILTER=Tone.o
|
||||
CPP_OBJ_FILTER=
|
||||
|
||||
CPP_OBJ=$(filter-out $(CPP_OBJ_FILTER), $(CPP_OBJ_TEMP))
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
# putting default variant
|
||||
ifeq ("$(VARIANT)", "")
|
||||
#VARIANT=sam3s_ek
|
||||
VARIANT=sam3u_ek
|
||||
#VARIANT=arduino_due
|
||||
#VARIANT=sam3u_ek
|
||||
VARIANT=arduino_due
|
||||
endif
|
||||
|
||||
ifeq ("$(VARIANT)", "sam3s_ek")
|
||||
|
@ -18,7 +18,7 @@ void setup( void )
|
||||
Serial.begin( 115200 ) ;
|
||||
}
|
||||
|
||||
void led_step1( void )
|
||||
static void led_step1( void )
|
||||
{
|
||||
#if defined sam3s_ek
|
||||
digitalWrite( PIN_LED, HIGH ) ; // set the LED on
|
||||
@ -36,7 +36,7 @@ void led_step1( void )
|
||||
#endif /* arduino_due */
|
||||
}
|
||||
|
||||
void led_step2( void )
|
||||
static void led_step2( void )
|
||||
{
|
||||
#if defined sam3s_ek
|
||||
digitalWrite( PIN_LED, LOW ) ; // set the LED off
|
||||
@ -61,8 +61,7 @@ void loop( void )
|
||||
led_step2() ;
|
||||
delay( 1000 ) ; // wait for a second
|
||||
|
||||
Serial.write( '-' ) ; // send an initial char
|
||||
Serial.println( "test1\n" ) ; // send an initial string
|
||||
// delay( 1000 ) ; // wait for a second
|
||||
// Serial.println( "test2" ) ; // send an initial string
|
||||
Serial.write( '-' ) ; // send a char
|
||||
Serial.println( "test1\n" ) ; // send a string
|
||||
Serial.println( "test2" ) ; // send another string
|
||||
}
|
||||
|
BIN
hardware/sam/variants/arduino_due/1661fa.pdf
Normal file
BIN
hardware/sam/variants/arduino_due/1661fa.pdf
Normal file
Binary file not shown.
@ -10,8 +10,8 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "common/UART.h"
|
||||
#include "common/USART.h"
|
||||
#include "UART.h"
|
||||
#include "USART.h"
|
||||
|
||||
/**
|
||||
* Libc porting layers
|
||||
|
@ -10,8 +10,8 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "common/UART.h"
|
||||
#include "common/USART.h"
|
||||
#include "UART.h"
|
||||
#include "USART.h"
|
||||
|
||||
/**
|
||||
* Libc porting layers
|
||||
|
@ -20,15 +20,17 @@ CMSIS_PATH = $(SYSTEM_PATH)/CMSIS/Include
|
||||
ARDUINO_PATH = ../../../cores/sam
|
||||
VARIANT_BASE_PATH = ../../../variants
|
||||
VARIANT_PATH = ../../../variants/$(VARIANT)
|
||||
VARIANT_COMMON_PATH = ../../common
|
||||
#VARIANT_COMMON_PATH = ../../common
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Files
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
vpath %.h $(PROJECT_BASE_PATH) $(SYSTEM_PATH) $(VARIANT_PATH) $(VARIANT_COMMON_PATH)
|
||||
vpath %.h $(PROJECT_BASE_PATH) $(SYSTEM_PATH) $(VARIANT_PATH)
|
||||
#$(VARIANT_COMMON_PATH)
|
||||
#vpath %.c $(PROJECT_BASE_PATH) $(VARIANT_PATH)
|
||||
vpath %.cpp $(PROJECT_BASE_PATH) $(PROJECT_BASE_PATH) $(VARIANT_COMMON_PATH)
|
||||
vpath %.cpp $(PROJECT_BASE_PATH) $(PROJECT_BASE_PATH)
|
||||
#$(VARIANT_COMMON_PATH)
|
||||
|
||||
VPATH+=$(PROJECT_BASE_PATH)
|
||||
|
||||
@ -74,7 +76,7 @@ C_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.c)
|
||||
C_OBJ_TEMP = $(patsubst %.c, %.o, $(notdir $(C_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
C_OBJ_FILTER=wiring_analog.o wiring_pulse.o
|
||||
C_OBJ_FILTER=
|
||||
|
||||
C_OBJ=$(filter-out $(C_OBJ_FILTER), $(C_OBJ_TEMP))
|
||||
|
||||
@ -82,12 +84,12 @@ C_OBJ=$(filter-out $(C_OBJ_FILTER), $(C_OBJ_TEMP))
|
||||
# CPP source files and objects
|
||||
#-------------------------------------------------------------------------------
|
||||
CPP_SRC=$(wildcard $(PROJECT_BASE_PATH)/*.cpp)
|
||||
CPP_SRC+=$(wildcard $(VARIANT_COMMON_PATH)/*.cpp)
|
||||
#CPP_SRC+=$(wildcard $(VARIANT_COMMON_PATH)/*.cpp)
|
||||
|
||||
CPP_OBJ_TEMP = $(patsubst %.cpp, %.o, $(notdir $(CPP_SRC)))
|
||||
|
||||
# during development, remove some files
|
||||
CPP_OBJ_FILTER=Tone.o
|
||||
CPP_OBJ_FILTER=
|
||||
|
||||
CPP_OBJ=$(filter-out $(CPP_OBJ_FILTER), $(CPP_OBJ_TEMP))
|
||||
|
||||
|
@ -10,8 +10,8 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "common/UART.h"
|
||||
#include "common/USART.h"
|
||||
#include "UART.h"
|
||||
#include "USART.h"
|
||||
|
||||
/**
|
||||
* Libc porting layers
|
||||
|
Loading…
x
Reference in New Issue
Block a user