projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* device/include/pic16/pic18f66j60.h,
[fw/sdcc]
/
device
/
lib
/
pic16
/
libio
/
adc
/
adcbusy.c
1
2
#include <pic18fregs.h>
3
#include <adc.h>
4
5
6
char adc_busy(void) __naked
7
{
8
#if 0
9
return (ADCON0bits.GO);
10
#else
11
__asm
12
movlw 0x00
13
#if defined(__SDCC_ADC_STYLE2455) || defined(__SDCC_ADC_STYLE97J60)
14
btfsc _ADCON0bits, 0
15
#else /* all other devices */
16
btfsc _ADCON0bits, 2
17
#endif
18
addlw 0x01
19
return
20
__endasm;
21
#endif
22
}
23