Subversion Repositories svnkaklik

Rev

Rev 410 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log

Rev 410 Rev 659
1
#include ".\blik.h"
1
#include ".\blik.h"
2
 
2
 
3
 
3
 
4
void main()
4
void main()
5
{
5
{
6
 
6
 
7
   setup_adc_ports(NO_ANALOGS);
7
   setup_adc_ports(NO_ANALOGS);
8
   setup_adc(ADC_OFF);
8
   setup_adc(ADC_OFF);
9
   setup_spi(FALSE);
9
   setup_spi(FALSE);
10
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
10
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
11
   setup_timer_1(T1_DISABLED);
11
   setup_timer_1(T1_DISABLED);
12
   setup_timer_2(T2_DISABLED,0,1);
12
   setup_timer_2(T2_DISABLED,0,1);
13
   setup_comparator(NC_NC_NC_NC);
13
   setup_comparator(NC_NC_NC_NC);
14
   setup_vref(FALSE);
14
   setup_vref(FALSE);
15
 
15
 
16
   While(true)
16
   While(true)
17
   {
17
   {
18
      Delay_ms(500);
18
      Delay_ms(500);
19
      Output_high(PIN_B1);
19
      Output_high(PIN_B1);
20
      Delay_ms(500);
20
      Delay_ms(500);
21
      Output_low(PIN_B1);
21
      Output_low(PIN_B1);
22
   }
22
   }
23
 
23
 
24
}
24
}