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:
parent
652703ef41
commit
66b68d4ada
@ -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.
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user