blob: c0ee3a709c0ea5a27ae569d30f6b8b6efd791178 [file] [log] [blame]
Christina Quast53b21052014-12-09 15:34:35 +01001/* ----------------------------------------------------------------------------
2 * ATMEL Microcontroller Software Support
3 * ----------------------------------------------------------------------------
4 * Copyright (c) 2009, Atmel Corporation
Kévin Redon9a12d682018-07-08 13:21:16 +02005 * Copyright (c) 2018, sysmocom -s.f.m.c. GmbH, Author: Kevin Redon <kredon@sysmocom.de>
Christina Quast53b21052014-12-09 15:34:35 +01006 *
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 * - Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the disclaimer below.
14 *
15 * Atmel's name may not be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
21 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 * ----------------------------------------------------------------------------
29 */
Christina Quast53b21052014-12-09 15:34:35 +010030#ifndef _UART_CONSOLE_
31#define _UART_CONSOLE_
32
33#include <stdint.h>
34
35extern void UART_Configure( uint32_t dwBaudrate, uint32_t dwMasterClock ) ;
Kévin Redond44cb802018-07-07 14:41:11 +020036extern void UART_Exit(void) ;
Christina Quast53b21052014-12-09 15:34:35 +010037extern void UART_PutChar( uint8_t uc ) ;
38extern uint32_t UART_GetChar( void ) ;
39extern uint32_t UART_IsRxReady( void ) ;
40
41
42extern void UART_DumpFrame( uint8_t* pucFrame, uint32_t dwSize ) ;
43extern void UART_DumpMemory( uint8_t* pucBuffer, uint32_t dwSize, uint32_t dwAddress ) ;
44extern uint32_t UART_GetInteger( uint32_t* pdwValue ) ;
45extern uint32_t UART_GetIntegerMinMax( uint32_t* pdwValue, uint32_t dwMin, uint32_t dwMax ) ;
46extern uint32_t UART_GetHexa32( uint32_t* pdwValue ) ;
47
48#endif /* _UART_CONSOLE_ */