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
7448d21a
Commit
7448d21a
authored
Sep 12, 2017
by
devsaurus
Browse files
Updated ESP-IDF to latest.
parent
b2f09da2
Changes
6
Show whitespace changes
Inline
Side-by-side
components/platform/dht.c
View file @
7448d21a
...
...
@@ -93,7 +93,7 @@ static int dht_init( uint8_t gpio_num )
if
(
rmt_config
(
&
rmt_rx
)
==
ESP_OK
)
{
if
(
rmt_driver_install
(
rmt_rx
.
channel
,
512
,
ESP_INTR_FLAG_LOWMED
|
ESP_INTR_FLAG_IRAM
|
ESP_INTR_FLAG_SHARED
)
==
ESP_OK
)
{
rmt_get_ringbuf_handle
r
(
dht_rmt
.
channel
,
&
dht_rmt
.
rb
);
rmt_get_ringbuf_handle
(
dht_rmt
.
channel
,
&
dht_rmt
.
rb
);
dht_rmt
.
gpio
=
gpio_num
;
...
...
components/platform/onewire.c
View file @
7448d21a
...
...
@@ -141,7 +141,7 @@ static int onewire_rmt_init( uint8_t gpio_num )
if
(
rmt_config
(
&
rmt_rx
)
==
ESP_OK
)
{
if
(
rmt_driver_install
(
rmt_rx
.
channel
,
512
,
ESP_INTR_FLAG_LOWMED
|
ESP_INTR_FLAG_IRAM
|
ESP_INTR_FLAG_SHARED
)
==
ESP_OK
)
{
rmt_get_ringbuf_handle
r
(
ow_rmt
.
rx
,
&
ow_rmt
.
rb
);
rmt_get_ringbuf_handle
(
ow_rmt
.
rx
,
&
ow_rmt
.
rb
);
// don't set ow_rmt.gpio here
// -1 forces a full pin set procedure in first call to onewire_rmt_attach_pin()
...
...
components/platform/platform.c
View file @
7448d21a
...
...
@@ -421,7 +421,7 @@ uint8_t platform_adc_setup( uint8_t adc, uint8_t channel, uint8_t atten ) {
int
platform_adc_read
(
uint8_t
adc
,
uint8_t
channel
)
{
int
value
=
-
1
;
if
(
adc
==
1
)
value
=
adc1_get_
voltage
(
channel
);
if
(
adc
==
1
)
value
=
adc1_get_
raw
(
channel
);
return
value
;
}
...
...
components/platform/ws2812.c
View file @
7448d21a
...
...
@@ -225,7 +225,7 @@ int platform_ws2812_send( void )
// wait for all channels to finish
for
(
rmt_channel_t
channel
=
0
;
channel
<
RMT_CHANNEL_MAX
;
channel
++
)
{
if
(
ws2812_chains
[
channel
].
valid
)
{
rmt_wait_tx_done
(
channel
);
rmt_wait_tx_done
(
channel
,
portMAX_DELAY
);
}
}
...
...
esp32-esp-idf
@
9a26296a
Compare
3a1de7db
...
9a26296a
Subproject commit
3a1de7dba3565424a12f795b71af45dc3c2072fc
Subproject commit
9a26296a0e88a4c3ae27e9c848be970946fff87e
sdkconfig.defaults
View file @
7448d21a
# Don't warn about undefined variables
CONFIG_MAKE_WARN_UNDEFINED_VARIABLES=n
# Empirical value to prevent a firmware crash due to stack overflow.
CONFIG_MAIN_TASK_STACK_SIZE=8192
# Enable address reuse for sockets in TIME_WAIT
# see https://github.com/nodemcu/nodemcu-firmware/pull/1838
CONFIG_LWIP_SO_REUSE=y
# Decrease the duration of sockets in TIME_WAIT
# see https://github.com/nodemcu/nodemcu-firmware/issues/1836
CONFIG_TCP_MSL=5000
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