Révision 815
Ajouté par ahkurklu il y a presque 4 ans
branch/KURKLU/sp4c12/sp4c12/sp4c12/sp4c12.c | ||
---|---|---|
|
||
|
||
int rectrame(char * Buffer){
|
||
|
||
int i=0;
|
||
char c1,c2;
|
||
char c;
|
||
while(uart0_rx()!='$');
|
||
while(uart0_rx()!='*'){
|
||
c = uart0_rx();
|
||
Buffer[i]= c;
|
||
i=i+1;
|
||
}
|
||
c1 = uart0_rx();
|
||
c2 = uart0_rx();
|
||
return 1;
|
||
}
|
||
|
||
|
||
void main(void)
|
||
{
|
||
char b;
|
||
char tab[100];
|
||
int i;
|
||
char b;
|
||
char c = 'A';
|
||
uart0_init();//initialisation
|
||
uart0_init();
|
||
i=rectrame(tab);
|
||
|
||
//initialisation
|
||
/*
|
||
while(1){//Affichage alphabet en boucle
|
||
uart0_tx(c);
|
Formats disponibles : Unified diff
Ajout fonction rectrame en cours