Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
54823150
Unverified
Commit
54823150
authored
May 13, 2022
by
Me No Dev
Committed by
GitHub
May 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change SPI::transfer signature to match official Arduino API (#6734)
parent
09c0a39d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libraries/SPI/src/SPI.cpp
libraries/SPI/src/SPI.cpp
+2
-2
libraries/SPI/src/SPI.h
libraries/SPI/src/SPI.h
+1
-1
No files found.
libraries/SPI/src/SPI.cpp
View file @
54823150
...
@@ -265,9 +265,9 @@ void SPIClass::writeBytes(const uint8_t * data, uint32_t size)
...
@@ -265,9 +265,9 @@ void SPIClass::writeBytes(const uint8_t * data, uint32_t size)
spiEndTransaction
(
_spi
);
spiEndTransaction
(
_spi
);
}
}
void
SPIClass
::
transfer
(
uint8_t
*
data
,
uint32_t
size
)
void
SPIClass
::
transfer
(
void
*
data
,
uint32_t
size
)
{
{
transferBytes
(
data
,
data
,
size
);
transferBytes
(
(
const
uint8_t
*
)
data
,
(
uint8_t
*
)
data
,
size
);
}
}
/**
/**
...
...
libraries/SPI/src/SPI.h
View file @
54823150
...
@@ -73,7 +73,7 @@ public:
...
@@ -73,7 +73,7 @@ public:
void
beginTransaction
(
SPISettings
settings
);
void
beginTransaction
(
SPISettings
settings
);
void
endTransaction
(
void
);
void
endTransaction
(
void
);
void
transfer
(
uint8_t
*
data
,
uint32_t
size
);
void
transfer
(
void
*
data
,
uint32_t
size
);
uint8_t
transfer
(
uint8_t
data
);
uint8_t
transfer
(
uint8_t
data
);
uint16_t
transfer16
(
uint16_t
data
);
uint16_t
transfer16
(
uint16_t
data
);
uint32_t
transfer32
(
uint32_t
data
);
uint32_t
transfer32
(
uint32_t
data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment