File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ adafruit_feather_m0.build.vid=0x239A
41
41
adafruit_feather_m0.build.pid=0x800B
42
42
adafruit_feather_m0.bootloader.tool=openocd
43
43
adafruit_feather_m0.bootloader.file=feather/samd21_sam_ba.bin
44
+ adafruit_feather_m0.compiler.arm.cmsis.ldflags=-larm_cortexM0l_math
44
45
45
46
adafruit_feather_m0_express.name=Adafruit Feather M0 Express
46
47
adafruit_feather_m0_express.vid.0=0x239A
@@ -172,7 +173,7 @@ adafruit_metro_m4.build.usb_product="Adafruit Metro M4"
172
173
adafruit_metro_m4.build.usb_manufacturer="Adafruit LLC"
173
174
adafruit_metro_m4.build.board=METRO_M4
174
175
adafruit_metro_m4.build.core=arduino
175
- adafruit_metro_m4.build.extra_flags=-D__SAMD51J19A__ -D__SAMD51__ {build.usb_flags}
176
+ adafruit_metro_m4.build.extra_flags=-D__SAMD51J19A__ -D__SAMD51__ {build.usb_flags} -DARM_MATH_CM4
176
177
adafruit_metro_m4.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
177
178
adafruit_metro_m4.build.openocdscript=openocd_scripts/arduino_zero.cfg
178
179
adafruit_metro_m4.build.variant=metro_m4
Original file line number Diff line number Diff line change @@ -25,11 +25,12 @@ extern "C" {
25
25
26
26
static int _readResolution = 10 ;
27
27
static int _ADCResolution = 10 ;
28
- static int _writeResolution = 8 ;
29
28
30
29
#if defined(__SAMD51__ )
30
+ static int _writeResolution = 12 ;
31
31
static int _dacResolution = 12 ;
32
32
#else
33
+ static int _writeResolution = 8 ;
33
34
static int _dacResolution = 8 ;
34
35
#endif
35
36
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ compiler.ar.extra_flags=
65
65
compiler.elf2hex.extra_flags=
66
66
67
67
compiler.arm.cmsis.c.flags="-I{runtime.tools.CMSIS-4.5.0.path}/CMSIS/Include/" "-I{runtime.tools.CMSIS-Atmel-1.1.0.path}/CMSIS/Device/ATMEL/"
68
- compiler.arm.cmsis.ldflags="-L{runtime.tools.CMSIS-4.5.0.path}/CMSIS/Lib/GCC/" -larm_cortexM0l_math
68
+ compiler.arm.cmsis.ldflags="-L{runtime.tools.CMSIS-4.5.0.path}/CMSIS/Lib/GCC/"
69
69
70
70
# USB Flags
71
71
# ---------
You can’t perform that action at this time.
0 commit comments