1
0
mirror of https://github.com/esp8266/Arduino.git synced 2026-01-06 05:22:30 +03:00

[sam] test app (led blink) working using GCC and GDB server for debug

This commit is contained in:
Thibaut VIARD
2011-09-10 23:54:56 +02:00
parent 2963a37075
commit 0c2bba55c8
9 changed files with 21 additions and 15 deletions

View File

@@ -26,9 +26,12 @@ class UARTClass : public HardwareSerial
void IrqHandler( void ) ;
#if defined __GNUC__ /* GCC CS3 */
using Print::write ; // pull in write(str) and write(buf, size) from Print
#elif defined __ICCARM__ /* IAR Ewarm 5.41+ */
virtual void write( const char *str ) ;
virtual void write( const uint8_t *buffer, size_t size ) ;
// using Print::write ; // pull in write(str) and write(buf, size) from Print
#endif
};
#endif // _UART_CLASS_

View File

@@ -26,9 +26,12 @@ class USARTClass : public HardwareSerial
void IrqHandler( void ) ;
#if defined __GNUC__ /* GCC CS3 */
using Print::write ; // pull in write(str) and write(buf, size) from Print
#elif defined __ICCARM__ /* IAR Ewarm 5.41+ */
virtual void write( const char *str ) ;
virtual void write( const uint8_t *buffer, size_t size ) ;
// using Print::write ; // pull in write(str) and write(buf, size) from Print
#endif
};
#endif // _USART_CLASS_

View File

@@ -139,7 +139,7 @@ $(addprefix $(OUTPUT_PATH)/,$(C_OBJ)): $(OUTPUT_PATH)/%.o: %.c
$(addprefix $(OUTPUT_PATH)/,$(CPP_OBJ)): $(OUTPUT_PATH)/%.o: %.cpp
# @$(CC) -c $(CPPFLAGS) $< -o $@
$(CC) -xc++ -c $(CPPFLAGS) $< -o $@
@$(CC) -xc++ -c $(CPPFLAGS) $< -o $@
$(addprefix $(OUTPUT_PATH)/,$(A_OBJ)): $(OUTPUT_PATH)/%.o: %.s
@$(AS) -c $(ASFLAGS) $< -o $@

View File

@@ -33,10 +33,10 @@
/** Name of the board */
#define VARIANT_NAME "SAM3S-EK"
/*
#define VARIANT_REV_A
*/
/*
#define VARIANT_REV_B
*/
/** Frequency of the board main oscillator */
#define VARIANT_MAINOSC 12000000