mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Configure SPI pins as input when target is not in reset.
This commit is contained in:
parent
15da182399
commit
a17a757722
@ -274,6 +274,10 @@ void start_pmode() {
|
|||||||
|
|
||||||
void end_pmode() {
|
void end_pmode() {
|
||||||
SPI.end();
|
SPI.end();
|
||||||
|
// We're about to take the target out of reset
|
||||||
|
// so configure SPI pins as input
|
||||||
|
pinMode(MOSI, INPUT);
|
||||||
|
pinMode(SCK, INPUT);
|
||||||
reset_target(false);
|
reset_target(false);
|
||||||
pinMode(RESET, INPUT);
|
pinMode(RESET, INPUT);
|
||||||
pmode = 0;
|
pmode = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user