From a1f9984630f032d74d4b49b962d6788d5c7ac111 Mon Sep 17 00:00:00 2001 From: Felix Kopp Date: Wed, 10 Jun 2020 16:51:55 +0200 Subject: [PATCH] Move development efforts to Arduino Due --- .vscode/c_cpp_properties.json | 58 ++++++++++++++++++++++++++++++++--- README.md | 2 +- 2 files changed, 55 insertions(+), 5 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index eaf4230..b48a4dc 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -4,7 +4,8 @@ "name": "atmega328p", "defines": [ "DEBUG", - "ARCH=atmega328p" + "ARCH=atmega328p", + "ARCH_ATMEGA328P" ], "compilerPath": "/usr/bin/avr-gcc", "cStandard": "gnu11", @@ -14,7 +15,6 @@ ], "compilerArgs": [ "-mmcu=atmega328p", - "-nostartfiles", "-nostdlib", "-nodefaultlibs", "-fno-builtin", @@ -33,8 +33,58 @@ "-Waggregate-return", "-Winline", "-Wcast-align" - ] + ], + "browse": { + "path": [ + "include", + "${workspaceFolder}" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "at91sam3x8e", + "defines": [ + "DEBUG", + "ARCH=at91sam3x8e", + "ARCH_AT91SAM3X8E" + ], + "compilerPath": "/usr/bin/avr-gcc", + "cStandard": "c11", + "cppStandard": "gnu++14", + "intelliSenseMode": "gcc-arm", + "includePath": [ + "./include" + ], + "compilerArgs": [ + "-mmcu=at91sam3x8e", + "-nostdlib", + "-nodefaultlibs", + "-fno-builtin", + "-fpack-struct", + "-Wall", + "-Wstrict-prototypes", + "-Wredundant-decls", + "-Wnested-externs", + "-Wbad-function-cast", + "-Wshadow", + "-Wsign-compare", + "-Wfloat-equal", + "-Wunreachable-code", + "-Wwrite-strings", + "-Wconversion", + "-Waggregate-return", + "-Winline", + "-Wcast-align" + ], + "browse": { + "path": [ + "./include", + "${workspaceFolder}" + ], + "limitSymbolsToIncludedHeaders": true + } } ], "version": 4 -} +} \ No newline at end of file diff --git a/README.md b/README.md index 4ab0b76..11c44f0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Right now, you have to manually define environment variables: - `AVR_OBJCOPY`: Full path to `avr-objcopy`. If unset, we will search for it in your PATH. - `ARCH`: Codename for the target architecture. This is mandatory. The following architectures are currently supported: - * `atmega328p` (Arduino UNO) + * `at91sam3x8e` (Arduino Due) - `EXTRA_CFLAGS`: Any additional arguments that should be passed to the compiler. - `EXTRA_LDFLAGS`: Any additional arguments that should be passed to the linker.