Skip to content

Commit 4f8619b

Browse files
committed
re-add erase, change Tone TC to TC3
1 parent 904acd1 commit 4f8619b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cores/arduino/Tone.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ volatile bool toneIsActive = false;
3737
volatile bool firstTimeRunning = false;
3838

3939
#if defined(__SAMD51__)
40-
#define TONE_TC TC2
41-
#define TONE_TC_IRQn TC2_IRQn
42-
#define TONE_TC_GCLK_ID TC2_GCLK_ID
40+
#define TONE_TC TC3
41+
#define TONE_TC_IRQn TC3_IRQn
42+
#define TONE_TC_GCLK_ID TC3_GCLK_ID
4343
#else
4444
#define TONE_TC TC5
4545
#define TONE_TC_IRQn TC5_IRQn

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ tools.bossac.cmd=bossac
117117

118118
tools.bossac.upload.params.verbose=-i -d
119119
tools.bossac.upload.params.quiet=
120-
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -i -w -v "{build.path}/{build.project_name}.bin" -R
120+
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -i -e -w -v "{build.path}/{build.project_name}.bin" -R
121121

122122
tools.bossac_remote.upload.pattern=/usr/bin/run-bossac {upload.verbose} --port=ttyATH0 -U {upload.native_usb} -e -w -v /tmp/sketch.bin -R
123123

0 commit comments

Comments
 (0)