Projet

Général

Profil

« Précédent | Suivant » 

Révision 337

Ajouté par thcoulaud il y a presque 4 ans

Avancement programme clavier (question 8)

Voir les différences:

SP4b1.c
/* This file is generated by Renesas Project Generator (Ver.4.18). */
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
/***********************************************************************/
#include "sfr32c87.h"
void main(void)
{
char t;
void main(){
pd10=0X0F;
p10=0X00;
pu31=0XFF;
while (1){
if ((t & 0xF0)!=0XF0){
p10=0X0E;
t=p10;
}
if ((t & 0xF0)!=0XF0){
p10=0X0D;
t=p10;
}
if ((t & 0xF0)!=0XF0){
p10=0X0B;
t=p10;
}
if ((t & 0xF0)!=0XF0){
p10=0X07;
t=p10;
}
}
}
+
+

Formats disponibles : Unified diff