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

add CPOL setting

This commit is contained in:
reiyawea 2016-03-16 17:28:24 +08:00
parent 652703ef41
commit 66b68d4ada

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.
}
}