zoom/testdac/pic/main.c
jim 4f757c6990 turn on interrupts
git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@4395 ddd99763-3ecb-0310-9145-efcb8ce7c51f
2007-02-26 22:36:28 +00:00

20 lines
213 B
C

#include <pic.h>
#include "config.h"
#include "serial.h"
#include "dac.h"
__CONFIG(CONFIGWORD);
void main(void) {
CMCON = 7;
GIE = 1;
serial_init();
dac_init();
while(1)
{
dac_set(serial_get());
}
}