chiark
/
gitweb
/
~ijackson
/
trains.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nice graph colourings
[trains.git]
/
detpic
/
i2clib.incm
1
;======================================================================
2
; MACROS FOR I2CLIB USERS
3
; see i2clib.inc
4
5
;----------
6
i2cpanic macro morse_addr
7
; Like panic but turns off the I2C controller
8
bc_f SSPCON1, SSPEN
9
panic morse_addr
10
endm
11
12
;--------------------
13
i2cs_read_data_macro macro
14
mov_wf SSPBUF
15
bs_f SSPCON1, CKP
16
endm