Subversion Repositories svnkaklik

Rev

Go to most recent revision | Blame | Last modification | View Log | Download

#include "D:\KAKL\PIC\AX25smpl\AX25smpl.h"

#define  TXo PIN_C0           // To the transmitter modulator
#include "AX25.c"             // Podprogram pro prenos telemetrie
char AXstring[40];            // Buffer pro prenos telemetrie

void main()
{
   int n;

   setup_adc_ports(RA0_RA1_RA3_ANALOG);
   setup_adc(ADC_CLOCK_INTERNAL);
   setup_spi(FALSE);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);

   n=0;
   while(true)
   {
      sprintf(AXstring,"Counter: %U\0", n++);  // Convert DATA to String.
      SendPacket(&AXstring[0]);
      delay_ms(1000);
   }
}