projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* device/include/asm/pic16/features.h,
[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 0
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
}