mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Observe that src/rp2_common/pico_cyw43_driver/cybt_shared_bus/cybt_shared_bus_driver.c wraps the definition of cybt_printf with #ifndef NDEBUG Apply this to src/rp2_common/pico_cyw43_driver/cybt_shared_bus/cybt_shared_bus.c Co-authored-by: David Dyck <david.dyck@checksum.com>
This commit is contained in:
parent
645b33c31f
commit
005759d791
1 changed files with 4 additions and 0 deletions
|
|
@ -39,7 +39,11 @@ extern const int brcm_patch_ram_length;
|
|||
#else
|
||||
#define cybt_debug(format, ...) ((void)0)
|
||||
#endif
|
||||
#ifndef NDEBUG
|
||||
#define cybt_printf(format, args...) printf("%d.%d: " format, (int)cyw43_hal_ticks_ms() / 1000, (int)cyw43_hal_ticks_ms() % 1000, ## args)
|
||||
#else
|
||||
#define cybt_printf(...)
|
||||
#endif
|
||||
|
||||
#define ROUNDUP(x, a) ((((x) + ((a) - 1)) / (a)) * (a))
|
||||
#define ROUNDDN(x, a) ((x) & ~((a) - 1))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue