net/gcoap: add macro to delay initialization of gcoap
This commit is contained in:
parent
41e29e3fda
commit
e873e5814a
@ -153,8 +153,10 @@ void auto_init(void)
|
|||||||
openthread_bootstrap();
|
openthread_bootstrap();
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODULE_GCOAP
|
#ifdef MODULE_GCOAP
|
||||||
|
if (!IS_ACTIVE(GCOAP_NO_AUTO_INIT)) {
|
||||||
DEBUG("Auto init gcoap module.\n");
|
DEBUG("Auto init gcoap module.\n");
|
||||||
gcoap_init();
|
gcoap_init();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODULE_DEVFS
|
#ifdef MODULE_DEVFS
|
||||||
DEBUG("Mounting /dev\n");
|
DEBUG("Mounting /dev\n");
|
||||||
|
|||||||
@ -446,6 +446,16 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define GCOAP_PAYLOAD_MARKER (0xFF)
|
#define GCOAP_PAYLOAD_MARKER (0xFF)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ingroup net_gcoap_conf
|
||||||
|
* @brief Disables gcoap startup during system auto init
|
||||||
|
*
|
||||||
|
* If disabled, gcoap_init() must be called by some other means.
|
||||||
|
*/
|
||||||
|
#ifndef GCOAP_NO_AUTO_INIT
|
||||||
|
#define GCOAP_NO_AUTO_INIT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name States for the memo used to track waiting for a response
|
* @name States for the memo used to track waiting for a response
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user