Projet

Général

Profil

« Précédent | Suivant » 

Révision 832

Ajouté par modia3 il y a environ 4 ans

fonction d'attente et de lecture d'un caractère sur la liaison série: char uart0_rx()

Voir les différences:

branch/dia/sp4c12/SP4c1/SP4c1/SP4c1.c
int i;
int j;
uart0_init();
// uart0_rx();
uart0_rx();
while(1)
{
......
}
/*
char uart0_rx(void)
{
char c;
while(ri_u0c1);
while(!ri_u0c1);
c=u0rb;
}
*/

Formats disponibles : Unified diff