]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - i3-mote/i3-mote.git/blob - Basic-Test-Package/CC2650/Test_CC2650_WakeUp/uart_printf.h
Added Test Wake-Up
[i3-mote/i3-mote.git] / Basic-Test-Package / CC2650 / Test_CC2650_WakeUp / uart_printf.h
1 /**************************************************************************************************\r
2   Filename:       uart_printf.c\r
3 \r
4   Description:    This file contains the TI-RTOS hooks for printing to UART via\r
5                   System_printf(..).\r
6 \r
7                   This is a very basic implementation made for the purposes of\r
8                   terminal feedback in workshops, trainings and debug.\r
9 \r
10   Copyright 2015 Texas Instruments Incorporated. All rights reserved.\r
11 \r
12   IMPORTANT: Your use of this Software is limited to those specific rights\r
13   granted under the terms of a software license agreement between the user\r
14   who downloaded the software, his/her employer (which must be your employer)\r
15   and Texas Instruments Incorporated (the "License").  You may not use this\r
16   Software unless you agree to abide by the terms of the License. The License\r
17   limits your use, and you acknowledge, that the Software may not be modified,\r
18   copied or distributed unless embedded on a Texas Instruments microcontroller\r
19   or used solely and exclusively in conjunction with a Texas Instruments radio\r
20   frequency transceiver, which is integrated into your product.  Other than for\r
21   the foregoing purpose, you may not use, reproduce, copy, prepare derivative\r
22   works of, modify, distribute, perform, display or sell this Software and/or\r
23   its documentation for any purpose.\r
24 \r
25   YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE\r
26   PROVIDED �AS IS� WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,\r
27   INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,\r
28   NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL\r
29   TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,\r
30   NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER\r
31   LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES\r
32   INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE\r
33   OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT\r
34   OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES\r
35   (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.\r
36 \r
37   Should you have any questions regarding your right to use this Software,\r
38   contact Texas Instruments Incorporated at www.TI.com.\r
39 **************************************************************************************************/\r
40 \r
41 #ifndef UART_PRINTF_H\r
42 #define UART_PRINTF_H\r
43 \r
44 #ifdef __cplusplus\r
45 extern "C"\r
46 {\r
47 #endif\r
48 /*********************************************************************\r
49  * INCLUDES\r
50  */\r
51 #include <ti/drivers/UART.h>\r
52 \r
53 /*********************************************************************\r
54  * CONSTANTS\r
55  */\r
56 \r
57 /*********************************************************************\r
58  * TYPEDEFS\r
59  */\r
60 \r
61 /*********************************************************************\r
62  * PUBLIC FUNCTIONS\r
63  */\r
64 \r
65 /*********************************************************************\r
66  * @fn      UartPrintf_init\r
67  *\r
68  * @brief   Initializes the putchar hooks with the handle to the UART.\r
69  *\r
70  * @param   handle - UART driver handle to an initialized and opened UART.\r
71  *\r
72  * @return  None.\r
73  */\r
74 void UartPrintf_init(UART_Handle handle);\r
75 \r
76 char uart_getch();\r
77 \r
78 #ifdef __cplusplus\r
79 }\r
80 #endif\r
81 \r
82 #endif // UART_PRINTF_H\r