Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
0b1e58d6
Commit
0b1e58d6
authored
Feb 07, 2017
by
devsaurus
Browse files
correct portYIELD
parent
859e1a30
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/modules/i2c_hw_master.c
View file @
0b1e58d6
...
...
@@ -6,6 +6,7 @@
#include "i2c_common.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "esp_task.h"
...
...
@@ -325,8 +326,7 @@ int li2c_hw_master_transfer( lua_State *L )
// the transfer task should be unblocked now
// (i.e. in eReady state since it can receive from the queue)
// block this task briefly to allow switch over to the transfer task (it has higher prio)
vTaskDelay
(
1
);
portYIELD
();
// invalidate last job, it's queued now
job
->
cmd
=
NULL
;
// don't delete link! it's used by the transfer task
...
...
components/modules/i2c_hw_slave.c
View file @
0b1e58d6
...
...
@@ -7,6 +7,7 @@
#include "i2c_common.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "esp_task.h"
...
...
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