SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The CC3120 has two external hardware lines that can be used to enable or disable the device:
For more information, see Section 4.3.
Only one of these lines or modes can be used. During sl_Start or sl_Stop, the driver calls the macros to force one of these lines to high or low in the correct sequence.
To bind one of these lines, the following macros must be defined correctly:
Example:
#define sl_DeviceEnable() (P4OUT |= BIT1)
#define sl_DeviceDisable() (P4OUT &= ~BIT1)
If some initializations are required before the enable or disable macros are called, the host application can also define the following optional macro:
sl_DeviceEnablePreamble
This macro is called during sl_Start before sl_DeviceEnable is called. The macro can be used as a placeholder to implement any preprocess operations before enabling networking operations.