Tim Exton-McGuinness
/
round-robin-rtos
Round robin Scheduler
adc.c
- Committer:
- timexton
- Date:
- 2010-09-09
- Revision:
- 0:cf2d4c337b6f
File content as of revision 0:cf2d4c337b6f:
#include "globals.h" extern "C" void sleep(void); //DigitalOut myled4(LED4); extern "C" { void adc(void) { LPC_PINCON->PINSEL3 &= 0xffff3fff; //select p1.23 as normal I/O pin LPC_GPIO1->FIODIR |= 0x00800000; //set direction as output while (1) { // myled4 = !myled4; LPC_GPIO1->FIOCLR = 0x00800000; //pin off sleep(); LPC_GPIO1->FIOSET = 0x00800000; //pin on sleep(); } } }//end of extern "C"