Skip to content

Commit 9fcf005

Browse files
committed
[sam] Removed workaround in banzai() subroutine after 8120558
See #1876
1 parent 8120558 commit 9fcf005

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARDUINO 1.5.6 BETA
2626
improve throughput when using high baudrates (KurtE)
2727
* sam: Fixed wrap-around bug in delay() (Mark Tillotson)
2828
* sam: Fixed regression in analogRead() (fails to read multiple channels) (Mark Tillotson)
29+
* sam: Fixed loops in Reset.cpp (Matthijs Kooijman)
2930
* sam: Optimized delayMicroseconds() (Rob Tillaart) #1121
3031
* Optimized Print::print(String&) method, now uses internal string buffer to perform block write
3132
* Improved portability of String class (maniacbug) #695

hardware/arduino/sam/cores/arduino/Reset.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ void banzai() {
4040

4141
// From here flash memory is no more available.
4242

43-
// Memory swap needs some time to stabilize
44-
for (uint32_t i=0; i<1000000; i++)
45-
// force compiler to not optimize this
46-
__asm__ __volatile__("");
47-
4843
// BANZAIIIIIII!!!
4944
const int RSTC_KEY = 0xA5;
5045
RSTC->RSTC_CR =

0 commit comments

Comments
 (0)