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
a26969b3
Commit
a26969b3
authored
Mar 01, 2017
by
Marcel Stör
Committed by
GitHub
Mar 01, 2017
Browse files
Add generic function to print deprecation notes (#1538)
parent
f577c2c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/platform/platform.c
View file @
a26969b3
...
...
@@ -916,3 +916,8 @@ uint32_t platform_flash_mapped2phys (uint32_t mapped_addr)
uint32_t
meg
=
(
b1
<<
1
)
|
b0
;
return
mapped_addr
-
INTERNAL_FLASH_MAPPED_ADDRESS
+
meg
*
0x100000
;
}
void
*
platform_print_deprecation_note
(
const
char
*
msg
,
const
char
*
time_frame
)
{
c_printf
(
"Warning, deprecated API! %s. It will be removed %s. See documentation for details.
\n
"
,
msg
,
time_frame
);
}
app/platform/platform.h
View file @
a26969b3
...
...
@@ -302,6 +302,9 @@ int platform_gpio_exists( unsigned id );
int
platform_tmr_exists
(
unsigned
id
);
// *****************************************************************************
void
*
platform_print_deprecation_note
(
const
char
*
msg
,
const
char
*
time_frame
);
// Helper macros
#define MOD_CHECK_ID( mod, id )\
if( !platform_ ## mod ## _exists( id ) )\
...
...
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