/*******************************************************************************
 * Copyright (c) 2018 Renesas Electronics Corporation. All rights reserved.
 *
 * DESCRIPTION   : SCIF driver header
 ******************************************************************************/

#ifndef SCIF_H_
#define SCIF_H_

/* Define  */
#define	PFC_GPSR_SCIF_MASK	(0x00000030UL)	/* SCIF0/HSCIF0_B RX/TX */
#define	PFC_GPSR_SCIF_VAL	(0x00000030UL)	/* SCIF0/HSCIF0_B RX/TX */
#define	PFC_IPSR_SCIF_MASK	(0x0FF00000UL)	/* SCIF0 RX/TX */
#define	PFC_IPSR_SCIF_VAL	(0x04400000UL)	/* SCIF0 RX/TX */
#define BIT7	(uint32_t)(1U << 7U)		/* Module Stop 2 bit7(SCIF0) */

#define CR_CODE			(0x0DU)
#define LF_CODE			(0x0AU)

/* Prototype */
void scif_init(void);
void console_puts(char* str,char rtn);
void console_putc(uint8_t outchar);

#endif /* SCIF_H_ */
