Skip to content

Set SPI_HAS_TRANSACTION to 1 and implement buffer transfer #2639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Set SPI_HAS_TRANSACTION to 1 and implement buffer transfer
  • Loading branch information
Lauszus committed Oct 26, 2016
commit 04cfaf85be5f01bf3d55d73f82b4020198465748
3 changes: 2 additions & 1 deletion libraries/SPI/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <Arduino.h>
#include <stdlib.h>

#define SPI_HAS_TRANSACTION
#define SPI_HAS_TRANSACTION 1

// This defines are not representing the real Divider of the ESP8266
// the Defines match to an AVR Arduino on 16MHz for better compatibility
Expand Down Expand Up @@ -63,6 +63,7 @@ class SPIClass {
void beginTransaction(SPISettings settings);
uint8_t transfer(uint8_t data);
uint16_t transfer16(uint16_t data);
void transfer(void * data, uint32_t size) { transferBytes((uint8_t*)data, (uint8_t*)data, size); data -= size; };
void write(uint8_t data);
void write16(uint16_t data);
void write16(uint16_t data, bool msb);
Expand Down