Commit e5d37ea0 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Changed to use simpler HAL_IICDevice

Version 0.33. Tagged as 'OMAP4-0_33'
parent 029227a0
/* (0.32)
/* (0.33)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.32
#define Module_MajorVersion_CMHG 0.33
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 23 Mar 2014
#define Module_Date_CMHG 14 Apr 2014
#define Module_MajorVersion "0.32"
#define Module_Version 32
#define Module_MajorVersion "0.33"
#define Module_Version 33
#define Module_MinorVersion ""
#define Module_Date "23 Mar 2014"
#define Module_Date "14 Apr 2014"
#define Module_ApplicationDate "23-Mar-14"
#define Module_ApplicationDate "14-Apr-14"
#define Module_ComponentName "OMAP4"
#define Module_ComponentPath "castle/RiscOS/Sources/HAL/OMAP4"
#define Module_FullVersion "0.32"
#define Module_HelpVersion "0.32 (23 Mar 2014)"
#define Module_LibraryVersionInfo "0:32"
#define Module_FullVersion "0.33"
#define Module_HelpVersion "0.33 (14 Apr 2014)"
#define Module_LibraryVersionInfo "0:33"
......@@ -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 a2, a3
MOVHS a2, #-1
CMP a1, a3
MOVHS a1, #-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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment