There are no built in functions for this, not sure why. You have to include <propeller.h> in your program. It would also help if you show us your code, meaning, what have you tried so far.
Ray
#include <propeller.h>
void high(int WCpin)
{
unsigned int bits = 1 << WCpin;
DIRA |= bits;
OUTA |= bits;
}
void low(int WCpin)
{
unsigned int mask = 1 << WCpin;
DIRA |= mask;
OUTA &= ~mask;
}
Comments
Ray
#include <propeller.h> void high(int WCpin) { unsigned int bits = 1 << WCpin; DIRA |= bits; OUTA |= bits; } void low(int WCpin) { unsigned int mask = 1 << WCpin; DIRA |= mask; OUTA &= ~mask; }Ray
/** * @file basicLED.c * This is the main basicLED program start point. */ #include <propeller.h> void high(int WCpin) { unsigned int bits = 1 << WCpin; DIRA |= bits; OUTA |= bits; } void low(int WCpin) { unsigned int mask = 1 << WCpin; DIRA |= mask; OUTA &= ~mask; } /** * Main program function. */ int main(void) { high(0); sleep(1); low(0); high(1); sleep(1); low(1); return 0; }