Révision 892
Ajouté par frkanaan il y a presque 4 ans
uart0.c | ||
---|---|---|
|
||
te_u0c1=1;
|
||
re_u0c1=1;
|
||
|
||
// Config port 6 pd6 = 0x08
|
||
/*
|
||
pd6_1 = 0;
|
||
pd6_2 = 0;
|
||
|
||
ps0_1 = 0;
|
||
ps0_2 = 0;
|
||
ps0_3 = 1;
|
||
*/
|
||
}
|
||
|
||
|
||
void uart0_tx(char c)
|
||
{
|
||
|
||
te_u0c1 = 1;
|
||
u0tb = c;
|
||
te_u0c1 = 0;
|
||
}
|
||
|
||
|
||
char uart0_rx(void)
|
||
{
|
||
|
||
while(ri_u0c1!=0)
|
||
return u0rb;
|
||
}
|
Formats disponibles : Unified diff
clavier marche (tp4b1)+ avancement et mise en place des tp4c12