Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
HAL
HAL_OMAP4
Commits
e5d37ea0
Commit
e5d37ea0
authored
Apr 14, 2014
by
Robert Sprowson
Browse files
Changed to use simpler HAL_IICDevice
Version 0.33. Tagged as 'OMAP4-0_33'
parent
029227a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
34 deletions
+16
-34
VersionNum
VersionNum
+10
-10
s/I2C
s/I2C
+6
-24
No files found.
VersionNum
View file @
e5d37ea0
/* (0.3
2
)
/* (0.3
3
)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.3
2
#define Module_MajorVersion_CMHG 0.3
3
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG
23 Ma
r 2014
#define Module_Date_CMHG
14 Ap
r 2014
#define Module_MajorVersion "0.3
2
"
#define Module_Version 3
2
#define Module_MajorVersion "0.3
3
"
#define Module_Version 3
3
#define Module_MinorVersion ""
#define Module_Date "
23 Ma
r 2014"
#define Module_Date "
14 Ap
r 2014"
#define Module_ApplicationDate "
23-Ma
r-14"
#define Module_ApplicationDate "
14-Ap
r-14"
#define Module_ComponentName "OMAP4"
#define Module_ComponentPath "castle/RiscOS/Sources/HAL/OMAP4"
#define Module_FullVersion "0.3
2
"
#define Module_HelpVersion "0.3
2
(
23 Ma
r 2014)"
#define Module_LibraryVersionInfo "0:3
2
"
#define Module_FullVersion "0.3
3
"
#define Module_HelpVersion "0.3
3
(
14 Ap
r 2014)"
#define Module_LibraryVersionInfo "0:3
3
"
s/I2C
View file @
e5d37ea0
...
...
@@ -194,34 +194,16 @@ HAL_IICType
; HAL_IICDevice
; in:
; r0 = irq_descriptor ptr
; r1 = bus number
; r0 = bus number
; out:
; r0 filled in
; typedef struct irq_descriptor
; {
; int device;
; union {
; struct {
; unsigned char *addr;
; int maskandpolarity;
; } bit;
; struct {
; int (*forme)(void *handle);
; void *handle;
; } func;
; } sub;
; } irq_descriptor;
;
; r0 = device number
HAL_IICDevice
LDRB
a3
,
[
sb
,
#
BoardConfig_NumI2C
]
CMP
a
2
,
a3
MOVHS
a
2
,
#-
1
CMP
a
1
,
a3
MOVHS
a
1
,
#-
1
ADDLO
a3
,
sb
,
#
BoardConfig_HALI2CIRQ
LDRLOB
a2
,
[
a3
,
a2
]
MOV
a3
,
#
0
MOV
a4
,
#
0
STMIA
a1
,
{
a2
-
a4
}
LDRLOB
a1
,
[
a3
,
a1
]
MOV
pc
,
lr
; HAL_IICTransfer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment