Example Summary
Sample application to control an on-board LED with the PWM driver.
Peripherals & Pin Assignments
When this project is built, the SysConfig tool will generate the TI-Driver configurations into the ti_drivers_config.c and ti_drivers_config.h files. Information on pins and resources used is present in both generated files. Additionally, the System Configuration file (*.syscfg) present in the project may be opened with SysConfig’s graphical user interface to determine pins and resources used.
CONFIG_PWM_0- PWM instance used to control brightness of LED0.
BoosterPacks, Board Resources & Jumper Settings
For board specific jumper settings, resources and BoosterPack modifications, refer to the Board.html file.
If you’re using an IDE such as Code Composer Studio (CCS) or IAR, please refer to Board.html in your project directory for resources used and board-specific jumper settings.
The Board.html can also be found in your SDK installation:
<SDK_INSTALL_DIR>/source/ti/boards/<BOARD>
Example Usage
Run the example.
The LED connected to
CONFIG_PWM_0will fade-in and fade-out when running the application.
Application Design Details
This application uses one thread, mainThread, which performs the following actions:
Opens and initializes PWM driver objects.
Uses the PWM driver to change the intensity of the LED.
The thread sleeps for 50 milliseconds before changing LED intensity again.
FreeRTOS:
- Please view the
FreeRTOSConfig.hheader file for example configuration information.