Revision 139 branch/noisette/Emb_App/programme_principal_etud.c

View differences:

programme_principal_etud.c
122 122

  
123 123

  
124 124
void main()
125
{
125
{
126
	CanFrame comm;/*, requete, reponse;*/
126 127
	ports_mcu();
127 128
    lcd_init();
128 129
	periph_init();
......
140 141
		LED_J=1;
141 142
		dly_tsk(100);
142 143
		LED_J=0;
143
		dly_tsk(100);
144
		dly_tsk(100);
145
		
146
		comm.data.id= 'T';
147
		comm.data.rtr=0;
148
		comm.data.val=120;
149
		snd_dtq(CanTx, comm.msg);
150
		/*requete.data.id='R';
151
		requete.data.rtr=1;
152
		snd_dtq(CanTx, requete.msg);
153
		
154
		rcv_dtq(CanRx, &reponse.msg);
155
		alpha=reponse.data.val;*/
144 156
    }
145 157
}
146 158

  

Also available in: Unified diff