mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-26 07:02:15 +03:00
SPISlave.end() added (#4248)
* Change argument to Esp.deepSleep from uint32 to uint64 to match SDK, add deepSleepMax based on the cali_proc function per SDK * SPISlave.end() added * Nameoftherose patch for Issue #2435 (#4256) * WiFiTelnetToSerial Example - Minor Issues #2435 * WiFiTelnetToSerial Example - Minor Issues #2435 Patch to rectify issue #2435 * Check that pins needed by Wire are defined at compile-time (#4261)
This commit is contained in:
@ -72,6 +72,14 @@ void SPISlaveClass::begin()
|
||||
hspi_slave_onStatusSent(&_s_status_tx);
|
||||
hspi_slave_begin(4, this);
|
||||
}
|
||||
void SPISlaveClass::end()
|
||||
{
|
||||
hspi_slave_onData(nullptr);
|
||||
hspi_slave_onDataSent(nullptr);
|
||||
hspi_slave_onStatus(nullptr);
|
||||
hspi_slave_onStatusSent(nullptr);
|
||||
hspi_slave_end();
|
||||
}
|
||||
void SPISlaveClass::setData(uint8_t * data, size_t len)
|
||||
{
|
||||
if(len > 32) {
|
||||
|
Reference in New Issue
Block a user