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:
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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 $@
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user