File tree 3 files changed +7
-4
lines changed 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ ARDUINO 1.5.3 BETA
20
20
21
21
[libraries]
22
22
* sam: Added CAN library (still in early stage of development) (Palliser)
23
+ * sam: Bugfix SPI library: begin() after end() now works (stimmer)
24
+ * sam: Bugfix SPI library: incorrent pin configuration in non-extended mode.
23
25
24
26
[firmwares]
25
27
* Arduino Due: fixed USB2Serial garbage at startup (https://github.com/arduino/Arduino/pull/1267)
Original file line number Diff line number Diff line change 13
13
SPIClass::SPIClass (Spi *_spi, uint32_t _id, void (*_initCb)(void )) :
14
14
spi(_spi), id(_id), initCb(_initCb)
15
15
{
16
- initCb ();
16
+ // Empty
17
+ }
17
18
19
+ void SPIClass::begin () {
20
+ initCb ();
18
21
SPI_Configure (spi, id, SPI_MR_MSTR | SPI_MR_PS | SPI_MR_MODFDIS);
19
22
SPI_Enable (spi);
20
- }
21
23
22
- void SPIClass::begin () {
23
24
// NPCS control is left to the user
24
25
25
26
// Default speed set to 4Mhz
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ extern "C"{
84
84
#define BOARD_SPI_SS1 (4u)
85
85
#define BOARD_SPI_SS2 (52u)
86
86
#define BOARD_SPI_SS3 PIN_SPI_SS3
87
- #define BOARD_SPI_DEFAULT_SS BOARD_SPI_SS2
87
+ #define BOARD_SPI_DEFAULT_SS BOARD_SPI_SS3
88
88
89
89
#define BOARD_PIN_TO_SPI_PIN (x ) \
90
90
(x==BOARD_SPI_SS0 ? PIN_SPI_SS0 : \
You can’t perform that action at this time.
0 commit comments