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
b1a6cb1d
Commit
b1a6cb1d
authored
Sep 26, 2020
by
philip
Committed by
Marcel Stör
Nov 07, 2020
Browse files
Make it inline
parent
5eb81197
Changes
2
Show whitespace changes
Inline
Side-by-side
app/platform/platform.c
View file @
b1a6cb1d
...
@@ -1151,7 +1151,3 @@ platform_task_handle_t platform_task_get_id (platform_task_callback_t t) {
...
@@ -1151,7 +1151,3 @@ platform_task_handle_t platform_task_get_id (platform_task_callback_t t) {
TQB
.
task_func
[
TQB
.
task_count
++
]
=
t
;
TQB
.
task_func
[
TQB
.
task_count
++
]
=
t
;
return
TH_MONIKER
+
((
TQB
.
task_count
-
1
)
<<
TH_SHIFT
);
return
TH_MONIKER
+
((
TQB
.
task_count
-
1
)
<<
TH_SHIFT
);
}
}
bool
ICACHE_RAM_ATTR
platform_post
(
uint8
prio
,
platform_task_handle_t
handle
,
platform_task_param_t
par
)
{
return
system_os_post
(
prio
,
handle
|
prio
,
par
);
}
app/platform/platform.h
View file @
b1a6cb1d
...
@@ -376,7 +376,9 @@ uint32_t platform_rcr_write (uint8_t rec_id, const void *rec, uint8_t size);
...
@@ -376,7 +376,9 @@ uint32_t platform_rcr_write (uint8_t rec_id, const void *rec, uint8_t size);
typedef
void
(
*
platform_task_callback_t
)(
platform_task_param_t
param
,
uint8
prio
);
typedef
void
(
*
platform_task_callback_t
)(
platform_task_param_t
param
,
uint8
prio
);
platform_task_handle_t
platform_task_get_id
(
platform_task_callback_t
t
);
platform_task_handle_t
platform_task_get_id
(
platform_task_callback_t
t
);
bool
platform_post
(
uint8
prio
,
platform_task_handle_t
h
,
platform_task_param_t
par
);
static
inline
bool
platform_post
(
uint8
prio
,
platform_task_handle_t
handle
,
platform_task_param_t
par
)
{
return
system_os_post
(
prio
,
handle
|
prio
,
par
);
}
#define platform_freeheap() system_get_free_heap_size()
#define platform_freeheap() system_get_free_heap_size()
// Get current value of CCOUNt register
// Get current value of CCOUNt register
...
...
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