mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Provide an easy way to disable cyw43 logging (#2535)
* Provide an easy way to disable cyw43 logging All cyw43 logging uses CYW43_PRINTF by default. To disable logging you have to define this to do nothing. There's no simple way to achieve this. Make it easier by adding PICO_CYW43_LOGGING_ENABLED which can be set to zero to disable CYW43_PRINTF. Fixes #2523 * teensy style change --------- Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
This commit is contained in:
parent
69e018504d
commit
b3aed37a18
1 changed files with 10 additions and 1 deletions
|
|
@ -198,9 +198,18 @@ void cyw43_post_poll_hook(void);
|
|||
#define cyw43_free free
|
||||
#endif
|
||||
|
||||
// PICO_CONFIG: PICO_CYW43_LOGGING_ENABLED, Enable/disable CYW43_PRINTF used for logging in cyw43 components. Has no effect if CYW43_PRINTF is defined by the user, default=1, type=bool, group=pico_cyw43_driver
|
||||
#ifndef PICO_CYW43_LOGGING_ENABLED
|
||||
#define PICO_CYW43_LOGGING_ENABLED 1
|
||||
#endif
|
||||
|
||||
#if !defined(CYW43_PRINTF) && !PICO_CYW43_LOGGING_ENABLED
|
||||
#define CYW43_PRINTF(...) (void)0
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue