If you've managed to successfully compile your app without errors or warnings, it probably is running.
you probably want
code:, btw.GPIO0 ^= 1;
------------------
If you've managed to successfully compile your app without errors or warnings, it probably is running.
you probably want
code:, btw.GPIO0 ^= 1;
------------------
Im using a PIC12F675, with MPLABS 8.1 and PICC Lite 9.6, along with the free version of Salvo. I was just wondering which options to put into the salvocfg.h file to run this simple program below. The program compile with no errors, but unfortunatley the program does nothign in the pickit 1 demo board. I'm thinking it might have to do witht he config file but im not sure.
Also I'm using the spf40amb.lib file for my only library file.
#include <pic.h>
#include <salvo.h>
//#include "salvocfg.h"
_OSLabel(TaskA1)
_OSLabel(TaskB1)
void TaskA( void )
{
for (;
{
GPIO0 = 1;
OS_Yield(TaskB1);
}
}
void TaskB( void )
{
for (;
{
GPIO1 = 1;
OS_Yield(TaskB1);
}
}
void main( void )
{
OSInit();
TRISIO = 0x00;
OSCreateTask(TaskA, OSTCBP(1), 10);
OSCreateTask(TaskB, OSTCBP(2), 10);
for (;
OSSched();
}
Users browsing this forum: No registered users and 0 guests