Skip to content

Commit e6ca8d9

Browse files
ndrs-pstnashif
authored andcommitted
modem: modem_cellular: streamline instance configuration with new macro
Introduced `MODEM_CELLULAR_DEFINE_INSTANCE` macro to streamline the definition and initialization of modem cellular instances. This macro enables passing parameters that vary among modems, including: `power_pulse_duration_ms`, `reset_pulse_duration_ms`, `startup_time_ms`, `shutdown_time_ms`, `autostarts`, `init_chat_script`, `dial_chat_script` and `periodic_chat_script`. This will reduce the number of redundant lines in the code, aiming for improved maintainability. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent 1f2c898 commit e6ca8d9

File tree

1 file changed

+61
-188
lines changed

1 file changed

+61
-188
lines changed

0 commit comments

Comments
 (0)