Subversion Repositories svnkaklik

Rev

Rev 471 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

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