Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
471 kaklik 1
#include ".\main.h"
2
 
3
 
4
void main()
5
{
6
   int8 ble;
7
 
8
   setup_adc_ports(NO_ANALOGS);
9
   setup_adc(ADC_OFF);
10
   setup_spi(FALSE);
11
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
12
   setup_timer_1(T1_DISABLED);
13
   setup_timer_2(T2_DISABLED,0,1);
14
   setup_comparator(NC_NC_NC_NC);
15
   setup_vref(FALSE);
16
 
17
   output_low(PIN_C1);
18
 
19
   While(true)
20
   {
21
   output_c(ble++);
22
   delay_ms(100);
23
/*
24
      Output_high(PIN_B2);
25
      Delay_ms(100);
26
      Output_low(PIN_B2);
27
      Delay_ms(100);
28
*/
29
   }
30
 
31
}