mbed library

Dependents:   Printf

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Sep 12 16:41:52 2014 +0100
Revision:
89:552587b429a1
Release 89 of the mbed library

Main changes:

- low power optimizations for Nordic targets
- code structure changes for Freescale K64F targets
- bug fixes in various backends

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 89:552587b429a1 1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
bogdanm 89:552587b429a1 2 *
bogdanm 89:552587b429a1 3 * The information contained herein is property of Nordic Semiconductor ASA.
bogdanm 89:552587b429a1 4 * Terms and conditions of usage are described in detail in NORDIC
bogdanm 89:552587b429a1 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
bogdanm 89:552587b429a1 6 *
bogdanm 89:552587b429a1 7 * Licensees are granted free, non-transferable use of the information. NO
bogdanm 89:552587b429a1 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
bogdanm 89:552587b429a1 9 * the file.
bogdanm 89:552587b429a1 10 *
bogdanm 89:552587b429a1 11 */
bogdanm 89:552587b429a1 12
bogdanm 89:552587b429a1 13 /**@file
bogdanm 89:552587b429a1 14 *
bogdanm 89:552587b429a1 15 * @defgroup app_uart UART module
bogdanm 89:552587b429a1 16 * @{
bogdanm 89:552587b429a1 17 * @ingroup app_common
bogdanm 89:552587b429a1 18 *
bogdanm 89:552587b429a1 19 * @brief UART module interface.
bogdanm 89:552587b429a1 20 */
bogdanm 89:552587b429a1 21
bogdanm 89:552587b429a1 22 #ifndef APP_UART_H__
bogdanm 89:552587b429a1 23 #define APP_UART_H__
bogdanm 89:552587b429a1 24
bogdanm 89:552587b429a1 25 #include <stdint.h>
bogdanm 89:552587b429a1 26 #include <stdbool.h>
bogdanm 89:552587b429a1 27 #include "app_util_platform.h"
bogdanm 89:552587b429a1 28
bogdanm 89:552587b429a1 29 #define UART_PIN_DISCONNECTED 0xFFFFFFFF /**< Value indicating that no pin is connected to this UART register. */
bogdanm 89:552587b429a1 30
bogdanm 89:552587b429a1 31 /**@brief UART Flow Control modes for the peripheral.
bogdanm 89:552587b429a1 32 */
bogdanm 89:552587b429a1 33 typedef enum
bogdanm 89:552587b429a1 34 {
bogdanm 89:552587b429a1 35 APP_UART_FLOW_CONTROL_DISABLED, /**< UART Hw Flow Control is disabled. */
bogdanm 89:552587b429a1 36 APP_UART_FLOW_CONTROL_ENABLED, /**< Standard UART Hw Flow Control is enabled. */
bogdanm 89:552587b429a1 37 APP_UART_FLOW_CONTROL_LOW_POWER /**< Specialized UART Hw Flow Control is used. The Low Power setting allows the nRF51 to Power Off the UART module when CTS is in-active, and re-enabling the UART when the CTS signal becomes active. This allows the nRF51 to safe power by only using the UART module when it is needed by the remote site. */
bogdanm 89:552587b429a1 38 } app_uart_flow_control_t;
bogdanm 89:552587b429a1 39
bogdanm 89:552587b429a1 40 /**@brief UART communication structure holding configuration settings for the peripheral.
bogdanm 89:552587b429a1 41 */
bogdanm 89:552587b429a1 42 typedef struct
bogdanm 89:552587b429a1 43 {
bogdanm 89:552587b429a1 44 uint8_t rx_pin_no; /**< RX pin number. */
bogdanm 89:552587b429a1 45 uint8_t tx_pin_no; /**< TX pin number. */
bogdanm 89:552587b429a1 46 uint8_t rts_pin_no; /**< RTS pin number, only used if flow control is enabled. */
bogdanm 89:552587b429a1 47 uint8_t cts_pin_no; /**< CTS pin number, only used if flow control is enabled. */
bogdanm 89:552587b429a1 48 app_uart_flow_control_t flow_control; /**< Flow control setting, if flow control is used, the system will use low power UART mode, based on CTS signal. */
bogdanm 89:552587b429a1 49 bool use_parity; /**< Even parity if TRUE, no parity if FALSE. */
bogdanm 89:552587b429a1 50 uint32_t baud_rate; /**< Baud rate configuration. */
bogdanm 89:552587b429a1 51 } app_uart_comm_params_t;
bogdanm 89:552587b429a1 52
bogdanm 89:552587b429a1 53 /**@brief UART buffer for transmitting/receiving data.
bogdanm 89:552587b429a1 54 */
bogdanm 89:552587b429a1 55 typedef struct
bogdanm 89:552587b429a1 56 {
bogdanm 89:552587b429a1 57 uint8_t * rx_buf; /**< Pointer to the RX buffer. */
bogdanm 89:552587b429a1 58 uint32_t rx_buf_size; /**< Size of the RX buffer. */
bogdanm 89:552587b429a1 59 uint8_t * tx_buf; /**< Pointer to the TX buffer. */
bogdanm 89:552587b429a1 60 uint32_t tx_buf_size; /**< Size of the TX buffer. */
bogdanm 89:552587b429a1 61 } app_uart_buffers_t;
bogdanm 89:552587b429a1 62
bogdanm 89:552587b429a1 63 /**@brief Enumeration describing current state of the UART.
bogdanm 89:552587b429a1 64 *
bogdanm 89:552587b429a1 65 * @details The connection state can be fetched by the application using the function call
bogdanm 89:552587b429a1 66 * @ref app_uart_get_connection_state.
bogdanm 89:552587b429a1 67 * When hardware flow control is used
bogdanm 89:552587b429a1 68 * - APP_UART_CONNECTED: Communication is ongoing.
bogdanm 89:552587b429a1 69 * - APP_UART_DISCONNECTED: No communication is ongoing.
bogdanm 89:552587b429a1 70 *
bogdanm 89:552587b429a1 71 * When no hardware flow control is used
bogdanm 89:552587b429a1 72 * - APP_UART_CONNECTED: Always returned as bytes can always be received/transmitted.
bogdanm 89:552587b429a1 73 */
bogdanm 89:552587b429a1 74 typedef enum
bogdanm 89:552587b429a1 75 {
bogdanm 89:552587b429a1 76 APP_UART_DISCONNECTED, /**< State indicating that the UART is disconnected and cannot receive or transmit bytes. */
bogdanm 89:552587b429a1 77 APP_UART_CONNECTED /**< State indicating that the UART is connected and ready to receive or transmit bytes. If flow control is disabled, the state will always be connected. */
bogdanm 89:552587b429a1 78 } app_uart_connection_state_t;
bogdanm 89:552587b429a1 79
bogdanm 89:552587b429a1 80 /**@brief Enumeration which defines events used by the UART module upon data reception or error.
bogdanm 89:552587b429a1 81 *
bogdanm 89:552587b429a1 82 * @details The event type is used to indicate the type of additional information in the event
bogdanm 89:552587b429a1 83 * @ref app_uart_evt_t.
bogdanm 89:552587b429a1 84 */
bogdanm 89:552587b429a1 85 typedef enum
bogdanm 89:552587b429a1 86 {
bogdanm 89:552587b429a1 87 APP_UART_DATA_READY, /**< An event indicating that UART data has been received. The data is available in the FIFO and can be fetched using @ref app_uart_get. */
bogdanm 89:552587b429a1 88 APP_UART_FIFO_ERROR, /**< An error in the FIFO module used by the app_uart module has occured. The FIFO error code is stored in app_uart_evt_t.data.error_code field. */
bogdanm 89:552587b429a1 89 APP_UART_COMMUNICATION_ERROR, /**< An communication error has occured during reception. The error is stored in app_uart_evt_t.data.error_communication field. */
bogdanm 89:552587b429a1 90 APP_UART_TX_EMPTY, /**< An event indicating that UART has completed transmission of all available data in the TX FIFO. */
bogdanm 89:552587b429a1 91 APP_UART_DATA, /**< An event indicating that UART data has been received, and data is present in data field. This event is only used when no FIFO is configured. */
bogdanm 89:552587b429a1 92 } app_uart_evt_type_t;
bogdanm 89:552587b429a1 93
bogdanm 89:552587b429a1 94 /**@brief Struct containing events from the UART module.
bogdanm 89:552587b429a1 95 *
bogdanm 89:552587b429a1 96 * @details The app_uart_evt_t is used to notify the application of asynchronous events when data
bogdanm 89:552587b429a1 97 * are received on the UART peripheral or in case an error occured during data reception.
bogdanm 89:552587b429a1 98 */
bogdanm 89:552587b429a1 99 typedef struct
bogdanm 89:552587b429a1 100 {
bogdanm 89:552587b429a1 101 app_uart_evt_type_t evt_type; /**< Type of event. */
bogdanm 89:552587b429a1 102 union
bogdanm 89:552587b429a1 103 {
bogdanm 89:552587b429a1 104 uint32_t error_communication; /**< Field used if evt_type is: APP_UART_COMMUNICATION_ERROR. This field contains the value in the ERRORSRC register for the UART peripheral. The UART_ERRORSRC_x defines from @ref nrf51_bitfields.h can be used to parse the error code. See also the nRF51 Series Reference Manual for specification. */
bogdanm 89:552587b429a1 105 uint32_t error_code; /**< Field used if evt_type is: NRF_ERROR_x. Additional status/error code if the error event type is APP_UART_FIFO_ERROR. This error code refer to errors defined in nrf_error.h. */
bogdanm 89:552587b429a1 106 uint8_t value; /**< Field used if evt_type is: NRF_ERROR_x. Additional status/error code if the error event type is APP_UART_FIFO_ERROR. This error code refer to errors defined in nrf_error.h. */
bogdanm 89:552587b429a1 107 } data;
bogdanm 89:552587b429a1 108 } app_uart_evt_t;
bogdanm 89:552587b429a1 109
bogdanm 89:552587b429a1 110 /**@brief Function for handling app_uart event callback.
bogdanm 89:552587b429a1 111 *
bogdanm 89:552587b429a1 112 * @details Upon an event in the app_uart module this callback function will be called to notify
bogdanm 89:552587b429a1 113 * the applicatioon about the event.
bogdanm 89:552587b429a1 114 *
bogdanm 89:552587b429a1 115 * @param[in] p_app_uart_event Pointer to UART event.
bogdanm 89:552587b429a1 116 */
bogdanm 89:552587b429a1 117
bogdanm 89:552587b429a1 118
bogdanm 89:552587b429a1 119 typedef void (* app_uart_event_handler_t) (app_uart_evt_t * p_app_uart_event);
bogdanm 89:552587b429a1 120
bogdanm 89:552587b429a1 121 /**@brief Macro for safe initialization of the UART module in a single user instance when using
bogdanm 89:552587b429a1 122 * a FIFO together with UART.
bogdanm 89:552587b429a1 123 *
bogdanm 89:552587b429a1 124 * @param[in] P_COMM_PARAMS Pointer to a UART communication structure: app_uart_comm_params_t
bogdanm 89:552587b429a1 125 * @param[in] RX_BUF_SIZE Size of desired RX buffer, must be a power of 2 or ZERO (No FIFO).
bogdanm 89:552587b429a1 126 * @param[in] TX_BUF_SIZE Size of desired TX buffer, must be a power of 2 or ZERO (No FIFO).
bogdanm 89:552587b429a1 127 * @param[in] EVENT_HANDLER Event handler function to be called when an event occurs in the
bogdanm 89:552587b429a1 128 * UART module.
bogdanm 89:552587b429a1 129 * @param[in] IRQ_PRIO IRQ priority, app_irq_priority_t, for the UART module irq handler.
bogdanm 89:552587b429a1 130 * @param[out] ERR_CODE The return value of the UART initialization function will be
bogdanm 89:552587b429a1 131 * written to this parameter.
bogdanm 89:552587b429a1 132 *
bogdanm 89:552587b429a1 133 * @note Since this macro allocates a buffer and registers the module as a GPIOTE user when flow
bogdanm 89:552587b429a1 134 * control is enabled, it must only be called once.
bogdanm 89:552587b429a1 135 */
bogdanm 89:552587b429a1 136 #define APP_UART_FIFO_INIT(P_COMM_PARAMS, RX_BUF_SIZE, TX_BUF_SIZE, EVT_HANDLER, IRQ_PRIO, ERR_CODE) \
bogdanm 89:552587b429a1 137 do \
bogdanm 89:552587b429a1 138 { \
bogdanm 89:552587b429a1 139 uint16_t APP_UART_UID = 0; \
bogdanm 89:552587b429a1 140 app_uart_buffers_t buffers; \
bogdanm 89:552587b429a1 141 static uint8_t rx_buf[RX_BUF_SIZE]; \
bogdanm 89:552587b429a1 142 static uint8_t tx_buf[TX_BUF_SIZE]; \
bogdanm 89:552587b429a1 143 \
bogdanm 89:552587b429a1 144 buffers.rx_buf = rx_buf; \
bogdanm 89:552587b429a1 145 buffers.rx_buf_size = sizeof (rx_buf); \
bogdanm 89:552587b429a1 146 buffers.tx_buf = tx_buf; \
bogdanm 89:552587b429a1 147 buffers.tx_buf_size = sizeof (tx_buf); \
bogdanm 89:552587b429a1 148 ERR_CODE = app_uart_init(P_COMM_PARAMS, &buffers, EVT_HANDLER, IRQ_PRIO, &APP_UART_UID); \
bogdanm 89:552587b429a1 149 } while (0)
bogdanm 89:552587b429a1 150
bogdanm 89:552587b429a1 151 /**@brief Macro for safe initialization of the UART module in a single user instance.
bogdanm 89:552587b429a1 152 *
bogdanm 89:552587b429a1 153 * @param[in] P_COMM_PARAMS Pointer to a UART communication structure: app_uart_comm_params_t
bogdanm 89:552587b429a1 154 * @param[in] EVENT_HANDLER Event handler function to be called when an event occurs in the
bogdanm 89:552587b429a1 155 * UART module.
bogdanm 89:552587b429a1 156 * @param[in] IRQ_PRIO IRQ priority, app_irq_priority_t, for the UART module irq handler.
bogdanm 89:552587b429a1 157 * @param[out] ERR_CODE The return value of the UART initialization function will be
bogdanm 89:552587b429a1 158 * written to this parameter.
bogdanm 89:552587b429a1 159 *
bogdanm 89:552587b429a1 160 * @note Since this macro allocates registers the module as a GPIOTE user when flow control is
bogdanm 89:552587b429a1 161 * enabled, it must only be called once.
bogdanm 89:552587b429a1 162 */
bogdanm 89:552587b429a1 163 #define APP_UART_INIT(P_COMM_PARAMS, EVT_HANDLER, IRQ_PRIO, ERR_CODE) \
bogdanm 89:552587b429a1 164 do \
bogdanm 89:552587b429a1 165 { \
bogdanm 89:552587b429a1 166 uint16_t APP_UART_UID = 0; \
bogdanm 89:552587b429a1 167 ERR_CODE = app_uart_init(P_COMM_PARAMS, NULL, EVT_HANDLER, IRQ_PRIO, &APP_UART_UID); \
bogdanm 89:552587b429a1 168 } while (0)
bogdanm 89:552587b429a1 169
bogdanm 89:552587b429a1 170 /**@brief Function for initializing the UART module. Use this initialization when several instances of the UART
bogdanm 89:552587b429a1 171 * module are needed.
bogdanm 89:552587b429a1 172 *
bogdanm 89:552587b429a1 173 * @details This initialization will return a UART user id for the caller. The UART user id must be
bogdanm 89:552587b429a1 174 * used upon re-initialization of the UART or closing of the module for the user.
bogdanm 89:552587b429a1 175 * If single instance usage is needed, the APP_UART_INIT() macro should be used instead.
bogdanm 89:552587b429a1 176 *
bogdanm 89:552587b429a1 177 * @note Normally single instance initialization should be done using the APP_UART_INIT() or
bogdanm 89:552587b429a1 178 * APP_UART_INIT_FIFO() macro depending on whether the FIFO should be used by the UART, as
bogdanm 89:552587b429a1 179 * that will allocate the buffers needed by the UART module (including aligning the buffer
bogdanm 89:552587b429a1 180 * correctly).
bogdanm 89:552587b429a1 181
bogdanm 89:552587b429a1 182 * @param[in] p_comm_params Pin and communication parameters.
bogdanm 89:552587b429a1 183 * @param[in] p_buffers RX and TX buffers, NULL is FIFO is not used.
bogdanm 89:552587b429a1 184 * @param[in] error_handler Function to be called in case of an error.
bogdanm 89:552587b429a1 185 * @param[in] app_irq_priority Interrupt priority level.
bogdanm 89:552587b429a1 186 * @param[in,out] p_uart_uid User id for the UART module. The p_uart_uid must be used if
bogdanm 89:552587b429a1 187 * re-initialization and/or closing of the UART module is needed.
bogdanm 89:552587b429a1 188 * If the value pointed to by p_uart_uid is zero, this is
bogdanm 89:552587b429a1 189 * considdered a first time initialization. Otherwise this is
bogdanm 89:552587b429a1 190 * considered a re-initialization for the user with id *p_uart_uid.
bogdanm 89:552587b429a1 191 *
bogdanm 89:552587b429a1 192 * @retval NRF_SUCCESS If successful initialization.
bogdanm 89:552587b429a1 193 * @retval NRF_ERROR_INVALID_LENGTH If a provided buffer is not a power of two.
bogdanm 89:552587b429a1 194 * @retval NRF_ERROR_NULL If one of the provided buffers is a NULL pointer.
bogdanm 89:552587b429a1 195 *
bogdanm 89:552587b429a1 196 * Those errors are propagated by the UART module to the caller upon registration when Hardware Flow
bogdanm 89:552587b429a1 197 * Control is enabled. When Hardware Flow Control is not used, those errors cannot occur.
bogdanm 89:552587b429a1 198 * @retval NRF_ERROR_INVALID_STATE The GPIOTE module is not in a valid state when registering
bogdanm 89:552587b429a1 199 * the UART module as a user.
bogdanm 89:552587b429a1 200 * @retval NRF_ERROR_INVALID_PARAM The UART module provides an invalid callback function when
bogdanm 89:552587b429a1 201 * registering the UART module as a user.
bogdanm 89:552587b429a1 202 * Or the value pointed to by *p_uart_uid is not a valid
bogdanm 89:552587b429a1 203 * GPIOTE number.
bogdanm 89:552587b429a1 204 * @retval NRF_ERROR_NO_MEM GPIOTE module has reached the maximum number of users.
bogdanm 89:552587b429a1 205 */
bogdanm 89:552587b429a1 206 uint32_t app_uart_init(const app_uart_comm_params_t * p_comm_params,
bogdanm 89:552587b429a1 207 app_uart_buffers_t * p_buffers,
bogdanm 89:552587b429a1 208 app_uart_event_handler_t error_handler,
bogdanm 89:552587b429a1 209 app_irq_priority_t irq_priority,
bogdanm 89:552587b429a1 210 uint16_t * p_uart_uid);
bogdanm 89:552587b429a1 211
bogdanm 89:552587b429a1 212 /**@brief Function for getting a byte from the UART.
bogdanm 89:552587b429a1 213 *
bogdanm 89:552587b429a1 214 * @details This function will get the next byte from the RX buffer. If the RX buffer is empty
bogdanm 89:552587b429a1 215 * an error code will be returned and the app_uart module will generate an event upon
bogdanm 89:552587b429a1 216 * reception of the first byte which is added to the RX buffer.
bogdanm 89:552587b429a1 217 *
bogdanm 89:552587b429a1 218 * @param[out] p_byte Pointer to an address where next byte received on the UART will be copied.
bogdanm 89:552587b429a1 219 *
bogdanm 89:552587b429a1 220 * @retval NRF_SUCCESS If a byte has been received and pushed to the pointer provided.
bogdanm 89:552587b429a1 221 * @retval NRF_ERROR_NOT_FOUND If no byte is available in the RX buffer of the app_uart module.
bogdanm 89:552587b429a1 222 */
bogdanm 89:552587b429a1 223 uint32_t app_uart_get(uint8_t * p_byte);
bogdanm 89:552587b429a1 224
bogdanm 89:552587b429a1 225 /**@brief Function for putting a byte on the UART.
bogdanm 89:552587b429a1 226 *
bogdanm 89:552587b429a1 227 * @details This call is non-blocking.
bogdanm 89:552587b429a1 228 *
bogdanm 89:552587b429a1 229 * @param[in] byte Byte to be transmitted on the UART.
bogdanm 89:552587b429a1 230 *
bogdanm 89:552587b429a1 231 * @retval NRF_SUCCESS If the byte was succesfully put on the TX buffer for transmission.
bogdanm 89:552587b429a1 232 * @retval NRF_ERROR_NO_MEM If no more space is available in the TX buffer.
bogdanm 89:552587b429a1 233 * NRF_ERROR_NO_MEM may occur if flow control is enabled and CTS signal
bogdanm 89:552587b429a1 234 * is high for a long period and the buffer fills up.
bogdanm 89:552587b429a1 235 */
bogdanm 89:552587b429a1 236 uint32_t app_uart_put(uint8_t byte);
bogdanm 89:552587b429a1 237
bogdanm 89:552587b429a1 238 /**@brief Function for getting the current state of the UART.
bogdanm 89:552587b429a1 239 *
bogdanm 89:552587b429a1 240 * @details If flow control is disabled, the state is assumed to always be APP_UART_CONNECTED.
bogdanm 89:552587b429a1 241 *
bogdanm 89:552587b429a1 242 * When using flow control the state will be controlled by the CTS. If CTS is set active
bogdanm 89:552587b429a1 243 * by the remote side, or the app_uart module is in the process of transmitting a byte,
bogdanm 89:552587b429a1 244 * app_uart is in APP_UART_CONNECTED state. If CTS is set inactive by remote side app_uart
bogdanm 89:552587b429a1 245 * will not get into APP_UART_DISCONNECTED state until the last byte in the TXD register
bogdanm 89:552587b429a1 246 * is fully transmitted.
bogdanm 89:552587b429a1 247 *
bogdanm 89:552587b429a1 248 * Internal states in the state machine are mapped to the general connected/disconnected
bogdanm 89:552587b429a1 249 * states in the following ways:
bogdanm 89:552587b429a1 250 *
bogdanm 89:552587b429a1 251 * - UART_ON = CONNECTED
bogdanm 89:552587b429a1 252 * - UART_READY = CONNECTED
bogdanm 89:552587b429a1 253 * - UART_WAIT = CONNECTED
bogdanm 89:552587b429a1 254 * - UART_OFF = DISCONNECTED.
bogdanm 89:552587b429a1 255 *
bogdanm 89:552587b429a1 256 * @param[out] p_connection_state Current connection state of the UART.
bogdanm 89:552587b429a1 257 *
bogdanm 89:552587b429a1 258 * @retval NRF_SUCCESS The connection state was succesfully retrieved.
bogdanm 89:552587b429a1 259 */
bogdanm 89:552587b429a1 260 uint32_t app_uart_get_connection_state(app_uart_connection_state_t * p_connection_state);
bogdanm 89:552587b429a1 261
bogdanm 89:552587b429a1 262 /**@brief Function for flushing the RX and TX buffers (Only valid if FIFO is used).
bogdanm 89:552587b429a1 263 * This function does nothing if FIFO is not used.
bogdanm 89:552587b429a1 264 *
bogdanm 89:552587b429a1 265 * @retval NRF_SUCCESS Flushing completed (Current implementation will always succeed).
bogdanm 89:552587b429a1 266 */
bogdanm 89:552587b429a1 267 uint32_t app_uart_flush(void);
bogdanm 89:552587b429a1 268
bogdanm 89:552587b429a1 269 /**@brief Function for closing the UART module.
bogdanm 89:552587b429a1 270 *
bogdanm 89:552587b429a1 271 * @details This function will close any on-going UART transmissions and disable itself in the
bogdanm 89:552587b429a1 272 * GPTIO module.
bogdanm 89:552587b429a1 273 *
bogdanm 89:552587b429a1 274 * @param[in] app_uart_uid User id for the UART module. The app_uart_uid must be identical to the
bogdanm 89:552587b429a1 275 * UART id returned on initialization and which is currently in use.
bogdanm 89:552587b429a1 276
bogdanm 89:552587b429a1 277 * @retval NRF_SUCCESS If successfully closed.
bogdanm 89:552587b429a1 278 * @retval NRF_ERROR_INVALID_PARAM If an invalid user id is provided or the user id differs from
bogdanm 89:552587b429a1 279 * the current active user.
bogdanm 89:552587b429a1 280 */
bogdanm 89:552587b429a1 281 uint32_t app_uart_close(uint16_t app_uart_id);
bogdanm 89:552587b429a1 282
bogdanm 89:552587b429a1 283
bogdanm 89:552587b429a1 284 #endif //APP_UART_H__
bogdanm 89:552587b429a1 285
bogdanm 89:552587b429a1 286 /** @} */