Skip to content

Commit

Permalink
dont't forget to call Init
Browse files Browse the repository at this point in the history
  • Loading branch information
anydream committed Sep 8, 2015
1 parent 0ebc510 commit 417c0db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TurboSPI_AVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ void TurboSPI::Begin()
pinMode(MOSI, OUTPUT);
pinMode(SCK, OUTPUT);
#endif // __AVR_ATmega328P__

Init(2);
}
//------------------------------------------------------------------------------
void TurboSPI::Init(uint8_t divisor)
Expand Down
2 changes: 2 additions & 0 deletions TurboSPI_SAM3X.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ void TurboSPI::Begin()
MATRIX->MATRIX_SCFG[7] = 0x01000010;
#endif // USE_SAM3X_BUS_MATRIX_FIX
#endif // USE_SAM3X_DMAC

Init(2);
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 417c0db

Please sign in to comment.