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
50d88f77
Commit
50d88f77
authored
Jan 03, 2020
by
galjonsfigur
Committed by
Marcel Stör
Jun 09, 2020
Browse files
Fix compile warning and set correct order in module LROT (#2996)
parent
cd9da646
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/softuart.c
View file @
50d88f77
...
@@ -38,7 +38,7 @@ softuart_t * softuart_gpio_instances[SOFTUART_GPIO_COUNT] = {NULL};
...
@@ -38,7 +38,7 @@ softuart_t * softuart_gpio_instances[SOFTUART_GPIO_COUNT] = {NULL};
// Array of callback reference to be able to find which callback is used to which rx pin
// Array of callback reference to be able to find which callback is used to which rx pin
static
int
softuart_rx_cb_ref
[
SOFTUART_GPIO_COUNT
];
static
int
softuart_rx_cb_ref
[
SOFTUART_GPIO_COUNT
];
// Task for receiving data
// Task for receiving data
static
task_handle_t
uart_recieve_task
=
NULL
;
static
task_handle_t
uart_recieve_task
=
0
;
// Receiving buffer for callback usage
// Receiving buffer for callback usage
static
char
softuart_rx_buffer
[
SOFTUART_MAX_RX_BUFF
];
static
char
softuart_rx_buffer
[
SOFTUART_MAX_RX_BUFF
];
...
@@ -388,8 +388,8 @@ static int softuart_gcdelete(lua_State *L)
...
@@ -388,8 +388,8 @@ static int softuart_gcdelete(lua_State *L)
// Port function map
// Port function map
LROT_BEGIN
(
softuart_port
)
LROT_BEGIN
(
softuart_port
)
LROT_FUNCENTRY
(
on
,
softuart_on
)
LROT_FUNCENTRY
(
on
,
softuart_on
)
LROT_TABENTRY
(
__index
,
softuart_port
)
LROT_FUNCENTRY
(
write
,
softuart_write
)
LROT_FUNCENTRY
(
write
,
softuart_write
)
LROT_TABENTRY
(
__index
,
softuart_port
)
LROT_FUNCENTRY
(
__gc
,
softuart_gcdelete
)
LROT_FUNCENTRY
(
__gc
,
softuart_gcdelete
)
LROT_END
(
ads1115
,
softuart_port
,
LROT_MASK_GC_INDEX
)
LROT_END
(
ads1115
,
softuart_port
,
LROT_MASK_GC_INDEX
)
...
...
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