collab/mm20
git clone https://git.julia.blue/collab/mm20
a795158
firmware
1Example Summary 2--------------- 3Application that toggles an LED using a GPIO pin interrupt. It also demonstrates 4how the UARTMon module can be used with GUI Composer within CCS. 5 6Peripherals Exercised 7--------------------- 8Board_LED0 Indicates that the board was initialized within main(), 9 Also toggled by Board_BUTTON0 10Board_LED1 Toggled by Board_BUTTON1 11Board_BUTTON0 Toggles Board_LED0 12Board_BUTTON1 Toggles Board_LED1 13Board_UART0 Used by UARTMon to communicate with GUI Composer 14 15Resources & Jumper Settings 16--------------------------- 17Please refer to the development board's specific "Settings and Resources" 18section in the Getting Started Guide. For convenience, a short summary is also 19shown below. 20 21| Development board | Notes | 22| ================= | ====================================================== | 23| CC3200 | Close Jumpers J2 and J3 | 24| | Both Board_BUTTON0 and Board_BUTTON1 toggle Board_LED0 | 25| ----------------- | ------------------------------------------------------ | 26| DK-TM4C123G | N/A | 27| ----------------- | ------------------------------------------------------ | 28| DK-TM4C129X | J37: Close SEL, DOWN, UP (enables Switches) | 29| | J36: Close GREEN, BLUE, RED (enables LEDs) | 30| ----------------- | ------------------------------------------------------ | 31| EK-TM4C123GXL | N/A | 32| EK-TM4C1294XL | | 33| EK-TM4C129EXL | | 34| MSP-EXP430F5529LP | | 35| ----------------- | ------------------------------------------------------ | 36| MSP-EXP430FR5969 | Close J6 | 37| | Board_BUTTON0 toggles Board_LED1 and Board_BUTTON1 | 38| | toggles Board_LED0 | 39| ----------------- | ------------------------------------------------------ | 40| MSP-EXP430FR6989 | Close J7 and J8 | 41| ----------------- | ------------------------------------------------------ | 42| MSP-EXP432P401R | N/A | 43| TMDXDOCK28M36 | | 44| TMDXDOCKH52C1 | | 45| ----------------- | ------------------------------------------------------ | 46 47Example Usage 48------------- 49Run the example. Board_LED0 turns ON to indicate TI-RTOS driver initialization 50is complete. 51 52Board_LED0 is toggled by pushing Board_BUTTON0. 53Board_LED1 is toggled by pushing Board_BUTTON1. 54 55Application Design Details 56-------------------------- 57The gpioButtonFxn0/1 functions are configured in the "Board.c" file. These functions 58are called in the context of the GPIO interrupt. 59 60There is no application source code needed for UARTMon other than the UART 61configuration in the "Board.c" and the initialization of the TI-RTOS UART driver 62which is accomplished by calling Board_initUART(). 63 64Notes 65------ 66Not all boards have more than one button, so Board_LED1 may not be toggled. 67 68Please refer to the TI-RTOS User's Guide for an explanation on how to configure 69and use UARTMon with GUI Composer. 70 71There is no button de-bounce logic in the example. So the 72count may increase faster. 73 74References 75--------------- 76For GNU and IAR users, please read the following website for details about 77semi-hosting: 78 http://processors.wiki.ti.com/index.php/TI-RTOS_Examples_SemiHosting