Statistics
| Revision:

root / branch / faye / sp4c12 / SP4c1 / SP4c1 / SP4c1.c @ 773

History | View | Annotate | Download (1 KB)

1
/***********************************************************************/
2
/*                                                                     */
3
/*  FILE        :SP4c1.c                                               */
4
/*  DATE        :Thu, Jun 03, 2021                                     */
5
/*  DESCRIPTION :main program file.                                    */
6
/*  CPU GROUP   :87B                                                   */
7
/*                                                                     */
8
/*  This file is generated by Renesas Project Generator (Ver.4.18).    */
9
/*  NOTE:THIS IS A TYPICAL EXAMPLE.                                    */
10
/***********************************************************************/
11

    
12
#include "sfr32c87.h"
13

    
14

    
15
void uart0_init()
16

    
17
// initialisation  du port serie
18
 
19
{
20
         registre u0mr
21
        
22
        smd0_u0mr = 1;
23
        smd1_u0mr = 0;
24
        smd2_u0mr = 1;
25
        ckdir_u0mr = 0;
26
        stps_u0mr = 0;
27
        prye_u0mr = 0;
28
        iopol_u0mr = 0;
29
        u0mr = 0x05;
30
        
31
        u0brg = 64;
32
        
33
        
34

    
35
        
36
}