|
/***********************************************************************/
|
|
/* */
|
|
/* FILE :uart0.c */
|
|
/* DATE :Wed, Jun 02, 2021 */
|
|
/* DESCRIPTION :main program file. */
|
|
/* CPU GROUP :87B */
|
|
/* */
|
|
/* This file is generated by Renesas Project Generator (Ver.4.18). */
|
|
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
|
/***********************************************************************/
|
|
#include "sfr32c87.h"
|
|
#include "uart0.h"
|
|
char c;
|
|
void main (void)
|
|
{
|
|
int i=0;
|
|
uart_unit();
|
|
while (1)
|
|
{
|
|
for (i=0; i<26; i++)
|
|
{
|
|
uart0_tx();
|
|
}
|
|
}
|
|
|
|
}
|
|
void uart0_init(void)
|
|
{
|
|
u0mr=0x05;
|
|
u0brg=0x20;
|
|
u0c1=0x05;
|
|
u0c0=0x11;
|
|
pd6=0xF8;
|
|
ps0=0x08;
|
|
}
|
|
void uart0_tx(char c)
|
|
{
|
|
|
|
}
|
|
char uart0_rx(void)
|
|
{
|
|
|
|
}
|
|
|