Staging:CC3220 Sleep Application (Texas Instruments NDA restrictions applicable)

Overview
Sleep is a low power mode supported by the CC3220 device. There are various options available to select the module to be active during a low power mode by appropriately configuring the designated registers of the PRCM module and thereby causing an exit from the low power mode based on activity on the chosen active module. The clock to the other modules, that are not chosen to be active, get disabled.

The various modules that can be clock gated (enabled/disabled) are:


 * 1) Camera
 * 2) McASP
 * 3) MMCHS
 * 4) McSPI
 * 5) uDMA
 * 6) GPIOs
 * 7) WatchDOG
 * 8) UART
 * 9) GPT
 * 10) Crypto
 * I2C

Also activity on the WiFi network triggered by the NWP can also be chosen as a cause for the wake up.

Application details
The objective of this application is to showcase the sleep power mode supported by the CC3220 device using two of the modules.

The modules chosen in this example are:


 * 1) WatchDog Timer based Sleep
 * 2) General Purpose Timer (GPT) based Sleep

The device enters the low power mode (sleep) on executing the wifi instructions. Also there are some prerequisite settings to be performed before the device enters the low power mode.

Source Files briefly explained

 * 1) main - Main file that showcases the sleep functionality using the WDT and GPT modules by invoking the corresponding APIs.
 * 2) pinmux - Pinmux configurations as required by the application.
 * 3) timer_if - To control timer.
 * 4) wdt_if - Setup the watchdog timer with the timeout value.
 * 5) startup_*.c - IDE specific startup functions.

Usage
Note: It is recommended that the application be tested by flashing the .bin file onto the serial flash on LaunchPad only. The IAR and CCS debuggers will disconnect on entering low power mode and cannot be used for subsequent debug.


 * Setup a serial communication application (HyperTerminal/TeraTerm). For detail info visit Terminal setup

On the host PC. The settings are:   - Port: Enumerated COM port (XDS110 Class Application/User UART)    - Baud rate: 115200    - Data: 8 bit    - Parity: None    - Stop: 1 bit    - Flow control: None


 * Run the reference application (Flashing the bin/IAR/CCS).
 * Observe the status messages on the host over serial port to understand the sequence of operations performed by the application.
 * Terminal snapshot when application runs on device:



Limitations/Known Issues

 * None.