]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - i3-mote/i3-mote.git/blobdiff - Basic-Test-Package/CC2650/Test_CC2650_3wSPI_Master_MSP432_SlaveIRQ/uart_printf.h
Created Test CC2650 3wSPI_Mastee MSP432_SlaveIRQ
[i3-mote/i3-mote.git] / Basic-Test-Package / CC2650 / Test_CC2650_3wSPI_Master_MSP432_SlaveIRQ / uart_printf.h
diff --git a/Basic-Test-Package/CC2650/Test_CC2650_3wSPI_Master_MSP432_SlaveIRQ/uart_printf.h b/Basic-Test-Package/CC2650/Test_CC2650_3wSPI_Master_MSP432_SlaveIRQ/uart_printf.h
new file mode 100644 (file)
index 0000000..84b82fe
--- /dev/null
@@ -0,0 +1,81 @@
+/**************************************************************************************************\r
+  Filename:       uart_printf.c\r
+\r
+  Description:    This file contains the TI-RTOS hooks for printing to UART via\r
+                  System_printf(..).\r
+\r
+                  This is a very basic implementation made for the purposes of\r
+                  terminal feedback in workshops, trainings and debug.\r
+\r
+  Copyright 2015 Texas Instruments Incorporated. All rights reserved.\r
+\r
+  IMPORTANT: Your use of this Software is limited to those specific rights\r
+  granted under the terms of a software license agreement between the user\r
+  who downloaded the software, his/her employer (which must be your employer)\r
+  and Texas Instruments Incorporated (the "License").  You may not use this\r
+  Software unless you agree to abide by the terms of the License. The License\r
+  limits your use, and you acknowledge, that the Software may not be modified,\r
+  copied or distributed unless embedded on a Texas Instruments microcontroller\r
+  or used solely and exclusively in conjunction with a Texas Instruments radio\r
+  frequency transceiver, which is integrated into your product.  Other than for\r
+  the foregoing purpose, you may not use, reproduce, copy, prepare derivative\r
+  works of, modify, distribute, perform, display or sell this Software and/or\r
+  its documentation for any purpose.\r
+\r
+  YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE\r
+  PROVIDED \93AS IS\94 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,\r
+  INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,\r
+  NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL\r
+  TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,\r
+  NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER\r
+  LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES\r
+  INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE\r
+  OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT\r
+  OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES\r
+  (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.\r
+\r
+  Should you have any questions regarding your right to use this Software,\r
+  contact Texas Instruments Incorporated at www.TI.com.\r
+**************************************************************************************************/\r
+\r
+#ifndef UART_PRINTF_H\r
+#define UART_PRINTF_H\r
+\r
+#ifdef __cplusplus\r
+extern "C"\r
+{\r
+#endif\r
+/*********************************************************************\r
+ * INCLUDES\r
+ */\r
+#include <ti/drivers/UART.h>\r
+\r
+/*********************************************************************\r
+ * CONSTANTS\r
+ */\r
+\r
+/*********************************************************************\r
+ * TYPEDEFS\r
+ */\r
+\r
+/*********************************************************************\r
+ * PUBLIC FUNCTIONS\r
+ */\r
+\r
+/*********************************************************************\r
+ * @fn      UartPrintf_init\r
+ *\r
+ * @brief   Initializes the putchar hooks with the handle to the UART.\r
+ *\r
+ * @param   handle - UART driver handle to an initialized and opened UART.\r
+ *\r
+ * @return  None.\r
+ */\r
+void UartPrintf_init(UART_Handle handle);\r
+\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif // UART_PRINTF_H\r