WebRadioApp  0.1
ew_bsp_console.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * E M B E D D E D W I Z A R D P R O J E C T
4  *
5  * Copyright (c) TARA Systems
6  *GmbH written by Paul Banach and Manfred Schweyer
7  *
8  ********************************************************************************
9  *
10  * This software is delivered "as is" and shows the usage of other software
11  * components. It is provided as an example software which is intended to be
12  * modified and extended according to particular requirements.
13  *
14  * TARA Systems hereby disclaims all warranties and conditions with regard to
15  *the software, including all implied warranties and conditions of
16  *merchantability and non-infringement of any third party IPR or other rights
17  *which may result from the use or the inability to use the software.
18  *
19  ********************************************************************************
20  *
21  * DESCRIPTION:
22  * This file is part of the interface (glue layer) between an Embedded Wizard
23  * generated UI application and the board support package (BSP) of a dedicated
24  * target.
25  * This template is responsible to establish a console connection in order
26  * to send debug messages to a PC terminal tool, or to receive key events
27  * for the UI application.
28  *
29  *******************************************************************************/
30 
43 #ifndef EW_BSP_CONSOLE_H
44 #define EW_BSP_CONSOLE_H
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /*******************************************************************************
51  * FUNCTION:
52  * EwBspConsoleInit
53  *
54  * DESCRIPTION:
55  * The function EwBspConsoleInit initializes a console connection used to
56  *print error and trace messages from an Embedded Wizard GUI application.
57  *
58  * ARGUMENTS:
59  * None
60  *
61  * RETURN VALUE:
62  * None
63  *
64  *******************************************************************************/
65 void EwBspConsoleInit(void);
66 
67 /*******************************************************************************
68  * FUNCTION:
69  * EwBspConsoleDone
70  *
71  * DESCRIPTION:
72  * The function EwBspConsoleDone terminates a console connection.
73  *
74  * ARGUMENTS:
75  * None
76  *
77  * RETURN VALUE:
78  * None
79  *
80  *******************************************************************************/
81 void EwBspConsoleDone(void);
82 
83 /*******************************************************************************
84  * FUNCTION:
85  * EwBspConsolePutCharacter
86  *
87  * DESCRIPTION:
88  * The function EwBspConsolePutCharacter sends the given character to the
89  *console interface.
90  *
91  * ARGUMENTS:
92  * aCharacter - The character to be send via the console interface.
93  *
94  * RETURN VALUE:
95  * None
96  *
97  *******************************************************************************/
98 void EwBspConsolePutCharacter(unsigned char aCharacter);
99 
100 /*******************************************************************************
101  * FUNCTION:
102  * EwBspConsoleGetCharacter
103  *
104  * DESCRIPTION:
105  * The function EwBspConsoleGetCharacter returns the current character from
106  *the console interface. If no character is available within the input buffer, 0
107  *is returned.
108  *
109  * ARGUMENTS:
110  * None
111  *
112  * RETURN VALUE:
113  * Current character from console input buffer or 0.
114  *
115  *******************************************************************************/
116 unsigned char EwBspConsoleGetCharacter(void);
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif /* EW_BSP_CONSOLE_H */
123 
124 /* msy */
125 
USARTx_TX_GPIO_CLK_ENABLE
#define USARTx_TX_GPIO_CLK_ENABLE()
Definition: ew_bsp_console.c:43
USARTx_FORCE_RESET
#define USARTx_FORCE_RESET()
Definition: ew_bsp_console.c:48
EwBspConsoleInit
void EwBspConsoleInit(void)
The function EwBspConsoleInit initializes a console connection via UART/USART interface used to print...
Definition: ew_bsp_console.c:141
USARTx_TX_GPIO_PORT
#define USARTx_TX_GPIO_PORT
Definition: ew_bsp_console.c:52
HAL_UART_MspInit
void HAL_UART_MspInit(UART_HandleTypeDef *huart)
UART MSP Initialization - This function configures the hardware resources.
Definition: ew_bsp_console.c:68
EwBspConsoleGetCharacter
unsigned char EwBspConsoleGetCharacter(void)
The function EwBspConsoleGetCharacter returns the current character from the console interface....
Definition: ew_bsp_console.c:184
EwBspConsoleDone
void EwBspConsoleDone(void)
The function EwBspConsoleDone terminates a console connection.
Definition: ew_bsp_console.c:160
UART_Handle
UART_HandleTypeDef UART_Handle
Definition: ew_bsp_console.c:58
UART_PORTID
#define UART_PORTID
Definition: ew_bsp_console.c:39
USARTx_TX_PIN
#define USARTx_TX_PIN
Definition: ew_bsp_console.c:51
USARTx_RX_PIN
#define USARTx_RX_PIN
Definition: ew_bsp_console.c:54
ew_bsp_console.h
USARTx_CLK_ENABLE
#define USARTx_CLK_ENABLE()
Definition: ew_bsp_console.c:41
RCC_USARTxCLKSOURCE_HSI
#define RCC_USARTxCLKSOURCE_HSI
Definition: ew_bsp_console.c:46
EwBspConsolePutCharacter
void EwBspConsolePutCharacter(unsigned char aCharacter)
The function EwBspConsolePutCharacter sends the given character to the console interface.
Definition: ew_bsp_console.c:170
USARTx_TX_AF
#define USARTx_TX_AF
Definition: ew_bsp_console.c:53
RCC_PERIPHCLK_USARTx
#define RCC_PERIPHCLK_USARTx
Definition: ew_bsp_console.c:45
ewconfig.h
This file contains general configuration settings for the target system, like memory ranges and displ...
USARTx_RELEASE_RESET
#define USARTx_RELEASE_RESET()
Definition: ew_bsp_console.c:49
USARTx_RX_GPIO_PORT
#define USARTx_RX_GPIO_PORT
Definition: ew_bsp_console.c:55
USARTx_RX_AF
#define USARTx_RX_AF
Definition: ew_bsp_console.c:56
HAL_UART_MspDeInit
void HAL_UART_MspDeInit(UART_HandleTypeDef *huart)
UART MSP Deinitialization - This function configures the hardware resources.
Definition: ew_bsp_console.c:113
USARTx_RX_GPIO_CLK_ENABLE
#define USARTx_RX_GPIO_CLK_ENABLE()
Definition: ew_bsp_console.c:42