Révision 831
Ajouté par mukis il y a presque 4 ans
branch/KIS/sp4c12/Uart/Uart/Uart.c | ||
---|---|---|
#pragma INTERRUPT 18 irectrame
|
||
void uart0_init(void);
|
||
void uart0_tx(char c);
|
||
//char uart0_rx(void);
|
||
char uart0_rx(void);
|
||
int trame_OK=0;
|
||
|
||
void main(void)
|
||
... | ... | |
te_u0c1=0;
|
||
}
|
||
|
||
/*char uart0_rx(void)
|
||
char uart0_rx(void)
|
||
{
|
||
|
||
}*/
|
||
char c;
|
||
while(!ri_u0c1);
|
||
c=u0rb;
|
||
}
|
Formats disponibles : Unified diff
fonction uart0_rx