Example #1
0
File: speed.c Project: nesl/natcar
void initcamera(void)
{      
printstr1(RST);
delay_ms(10);   
printstr1(YCrCb);
delay_ms(10);  
printstr1(AG);
delay_ms(10);  
printstr1(NF);
delay_ms(10); 
printstr1(LINMOD);
delay_ms(10);
printstr1(DS);
delay_ms(10); 
printstr1(TRACKCYCrCb);
}    
Example #2
0
void printnum1(unsigned long long n)
{
  int i,j;
  unsigned char a[16];
  unsigned long port = PORT3f8;

   i = 0;
  do {
   a[i] = n % 16;
   n = n / 16;
   i++;
  }while(n);
 
  for (j=i-1;j>=0;j--) {
   if (a[j]>=10) {
     *(volatile unsigned char*)port = 'a' + a[j] - 10;
   }else{
     *(volatile unsigned char*)port = '0' + a[j];
   }
  }
  printstr1("\r\n");
}