1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

Merge pull request #1781 from reiyawea/master

add CPOL setting
This commit is contained in:
Ivan Grokhotkov
2016-03-24 01:00:34 +03:00

View File

@ -102,7 +102,10 @@ void SPIClass::setDataMode(uint8_t dataMode) {
}
if(CPOL) {
//todo How set CPOL???
SPI1P |= 1<<29;
} else {
SPI1P &= ~(1<<29);
//todo test whether it is correct to set CPOL like this.
}
}