Skip to content

Commit acd3ebb

Browse files
committed
updated core libraries to latest Arduino SAM version
1 parent 60fa44a commit acd3ebb

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

sam/1.0.5/libraries/HID/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=HID
22
version=1.0
33
author=Arduino
44
maintainer=Arduino <info@arduino.cc>
5-
sentence=Module for PluggableUSB infrastructure. Exposes an API for devices like Keyboards, Mice and Gamepads
5+
sentence=Module for PluggableUSB infrastructure. Exposes an API for devices like Keyboards, Mice and Gamepads.
66
paragraph=
77
category=Communication
88
url=http://www.arduino.cc/en/Reference/HID

sam/1.0.5/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void loop() {
8585
}
8686

8787
//Read from or write to register from the SCP1000:
88-
unsigned int readRegister(byte thisRegister, int bytesToRead ) {
88+
unsigned int readRegister(byte thisRegister, int bytesToRead) {
8989
byte inByte = 0; // incoming byte from the SPI
9090
unsigned int result = 0; // result to return
9191
Serial.print(thisRegister, BIN);
@@ -117,7 +117,7 @@ unsigned int readRegister(byte thisRegister, int bytesToRead ) {
117117
// take the chip select high to de-select:
118118
digitalWrite(chipSelectPin, HIGH);
119119
// return the result:
120-
return(result);
120+
return (result);
121121
}
122122

123123

sam/1.0.5/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const int slaveSelectPin = 10;
3636

3737
void setup() {
3838
// set the slaveSelectPin as an output:
39-
pinMode (slaveSelectPin, OUTPUT);
39+
pinMode(slaveSelectPin, OUTPUT);
4040
// initialize SPI:
4141
SPI.begin();
4242
}

sam/1.0.5/libraries/SPI/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=SPI
22
version=1.0
33
author=Arduino
44
maintainer=Arduino <info@arduino.cc>
5-
sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus. For Arduino DUE only.
5+
sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus.
66
paragraph=
77
category=Communication
88
url=http://www.arduino.cc/en/Reference/SPI

sam/1.0.5/libraries/SPI/src/SPI.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ void SPIClass::usingInterrupt(uint8_t interruptNumber)
8989
} else if (pio == PIOB) {
9090
interruptMode |= 2;
9191
interruptMask[1] |= mask;
92+
#if defined(PIOC) && defined(PIOD)
93+
} else if (pio == PIOC) {
94+
interruptMode |= 4;
95+
interruptMask[2] |= mask;
96+
} else if (pio == PIOD) {
97+
interruptMode |= 8;
98+
interruptMask[3] |= mask;
99+
#endif
92100
} else {
93101
interruptMode = 16;
94102
}
@@ -104,6 +112,10 @@ void SPIClass::beginTransaction(uint8_t pin, SPISettings settings)
104112
if (mode < 16) {
105113
if (mode & 1) PIOA->PIO_IDR = interruptMask[0];
106114
if (mode & 2) PIOB->PIO_IDR = interruptMask[1];
115+
#if defined(PIOC) && defined(PIOD)
116+
if (mode & 4) PIOC->PIO_IDR = interruptMask[2];
117+
if (mode & 8) PIOD->PIO_IDR = interruptMask[3];
118+
#endif
107119
} else {
108120
interruptSave = interruptsStatus();
109121
noInterrupts();
@@ -124,6 +136,10 @@ void SPIClass::endTransaction(void)
124136
if (mode < 16) {
125137
if (mode & 1) PIOA->PIO_IER = interruptMask[0];
126138
if (mode & 2) PIOB->PIO_IER = interruptMask[1];
139+
#if defined(PIOC) && defined(PIOD)
140+
if (mode & 4) PIOC->PIO_IER = interruptMask[2];
141+
if (mode & 8) PIOD->PIO_IER = interruptMask[3];
142+
#endif
127143
} else {
128144
if (interruptSave) interrupts();
129145
}

sam/1.0.5/libraries/Wire/keywords.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ setClock KEYWORD2
1515
beginTransmission KEYWORD2
1616
endTransmission KEYWORD2
1717
requestFrom KEYWORD2
18-
send KEYWORD2
19-
receive KEYWORD2
2018
onReceive KEYWORD2
2119
onRequest KEYWORD2
2220

sam/1.0.5/libraries/Wire/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=Wire
22
version=1.0
33
author=Arduino
44
maintainer=Arduino <info@arduino.cc>
5-
sentence=Allows the communication between devices or sensors connected via Two Wire Interface Bus. For Arduino DUE only.
5+
sentence=Allows the communication between devices or sensors connected via Two Wire Interface Bus.
66
paragraph=
77
category=Communication
88
url=http://www.arduino.cc/en/Reference/Wire

0 commit comments

Comments
 (0)