4f757c6990
git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@4395 ddd99763-3ecb-0310-9145-efcb8ce7c51f
20 lines
213 B
C
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());
|
|
}
|
|
}
|