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

Changed to use simpler HAL_IICDevice

Version 0.96. Tagged as 'OMAP3-0_96'
parent 3eb78ffd
/* (0.95)
/* (0.96)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.95
#define Module_MajorVersion_CMHG 0.96
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 08 Mar 2014
#define Module_Date_CMHG 14 Apr 2014
#define Module_MajorVersion "0.95"
#define Module_Version 95
#define Module_MajorVersion "0.96"
#define Module_Version 96
#define Module_MinorVersion ""
#define Module_Date "08 Mar 2014"
#define Module_Date "14 Apr 2014"
#define Module_ApplicationDate "08-Mar-14"
#define Module_ApplicationDate "14-Apr-14"
#define Module_ComponentName "OMAP3"
#define Module_ComponentPath "castle/RiscOS/Sources/HAL/OMAP3"
#define Module_FullVersion "0.95"
#define Module_HelpVersion "0.95 (08 Mar 2014)"
#define Module_LibraryVersionInfo "0:95"
#define Module_FullVersion "0.96"
#define Module_HelpVersion "0.96 (14 Apr 2014)"
#define Module_LibraryVersionInfo "0:96"
......@@ -176,34 +176,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