Révision 758
Ajouté par nipelloux il y a presque 4 ans
branch/pelloux/sp4c12/sp4_2021c1/sp4_2021c1/sp4_2021c1.c | ||
---|---|---|
/***********************************************************************/
|
||
/* */
|
||
/* FILE :sp4_2021c1.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 "uart0.h"
|
||
#include "sfr32c87.h"
|
||
|
||
|
||
void main(void)
|
||
{
|
||
//char k='A';
|
||
//int i=0;
|
||
uart0_init();
|
||
|
||
/* while(1)
|
||
{
|
||
k=('A'+i);
|
||
uart0_tx(k);
|
||
i++;
|
||
if(k=='Z')
|
||
{
|
||
k='A';
|
||
i=0;
|
||
}
|
||
}*/
|
||
if(uart0_rx() == 'A')
|
||
{
|
||
uart0_tx('B');
|
||
|
||
}
|
||
|
||
|
||
}
|
||
|
||
|
Formats disponibles : Unified diff
Programme qui envoie l'alphabet et test pour quand je recois A j'envoie B