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
8cbc60ed
Commit
8cbc60ed
authored
Jan 22, 2019
by
HanCheol Cho
Committed by
Me No Dev
Jan 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed rmt receive data pointer position. (#2353)
parent
00a546ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cores/esp32/esp32-hal-rmt.c
cores/esp32/esp32-hal-rmt.c
+3
-3
No files found.
cores/esp32/esp32-hal-rmt.c
View file @
8cbc60ed
...
@@ -637,13 +637,13 @@ static void IRAM_ATTR _rmt_isr(void* arg)
...
@@ -637,13 +637,13 @@ static void IRAM_ATTR _rmt_isr(void* arg)
data
+=
MAX_DATA_PER_CHANNEL
*
(
g_rmt_objects
[
ch
].
buffers
);
data
+=
MAX_DATA_PER_CHANNEL
*
(
g_rmt_objects
[
ch
].
buffers
);
}
}
}
}
uint32_t
*
data_received
=
data
;
for
(
i
=
0
;
i
<
g_rmt_objects
[
ch
].
data_size
;
i
++
)
{
for
(
i
=
0
;
i
<
g_rmt_objects
[
ch
].
data_size
;
i
++
)
{
*
data
++
=
RMTMEM
.
chan
[
ch
].
data32
[
i
].
val
;
*
data
++
=
RMTMEM
.
chan
[
ch
].
data32
[
i
].
val
;
}
}
if
(
g_rmt_objects
[
ch
].
cb
)
{
if
(
g_rmt_objects
[
ch
].
cb
)
{
// actually received data ptr
// actually received data ptr
uint32_t
*
data
=
g_rmt_objects
[
ch
].
data_ptr
;
(
g_rmt_objects
[
ch
].
cb
)(
data_received
,
_rmt_get_mem_len
(
ch
));
(
g_rmt_objects
[
ch
].
cb
)(
data
,
_rmt_get_mem_len
(
ch
));
// restart the reception
// restart the reception
RMT
.
conf_ch
[
ch
].
conf1
.
mem_owner
=
1
;
RMT
.
conf_ch
[
ch
].
conf1
.
mem_owner
=
1
;
...
...
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