mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 10:17:30 +02:00
Examples: Modem console
This commit is contained in:
27
esp_modem/examples/modem_console/main/repeat_helper.inc
Normal file
27
esp_modem/examples/modem_console/main/repeat_helper.inc
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// Created by david on 3/17/21.
|
||||
//
|
||||
|
||||
#ifndef MODEM_CONSOLE_REPEAT_HELPER_INC_H
|
||||
#define MODEM_CONSOLE_REPEAT_HELPER_INC_H
|
||||
|
||||
#if MAX_REPEAT_NR < 10
|
||||
#define REPEAT_TEMPLATE_DEF(...) REPEAT_10_TIMES(VA_ARG)
|
||||
#else
|
||||
#define REPEAT_TEMPLATE_DEF(...) REPEAT_100_TIMES(VA_ARG)
|
||||
#endif
|
||||
|
||||
#define REPEAT_10_TIMES(a) \
|
||||
TEMPLATE(0) \
|
||||
TEMPLATE(1) \
|
||||
TEMPLATE(2) \
|
||||
TEMPLATE(3) \
|
||||
TEMPLATE(4) \
|
||||
TEMPLATE(5) \
|
||||
TEMPLATE(6) \
|
||||
TEMPLATE(7) \
|
||||
TEMPLATE(8) \
|
||||
TEMPLATE(9)
|
||||
|
||||
|
||||
#endif //MODEM_CONSOLE_REPEAT_HELPER_INC_H
|
Reference in New Issue
Block a user