projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
[fw/sdcc]
/
device
/
lib
/
pic16
/
libio
/
adc
/
adcbusy.c
1
2
#include <pic18fregs.h>
3
4
#include <adc.h>
5
6
7
char adc_busy(void) _naked
8
{
9
#if 1
10
return (ADCON0bits.GO);
11
#else
12
_asm
13
movlw 0x00
14
btfsc _ADCON0bits, 2
15
addlw 0x01
16
return
17
_endasm;
18
#endif
19
}