Commit fcbfaf8d authored by Ben Avison's avatar Ben Avison
Browse files

Made GPIO module ROMmable

Detail:
  Changed to use CModule shared makefile.
  No need to call __RelocCode when targeting ROM (relocation is done at
  ROM link time instead). In fact, the linker doesn't create __RelocCode
  in this case, so link fails unless it's removed.
Admin:
  Tested on Raspberry Pi

Version 0.51. Tagged as 'GPIO-0_51'
parent 94ea5609
Dir <Obey$Dir>
amu_machine rom THROWBACK=-throwback
amu standalone THROWBACK=-throwback
Dir <Obey$Dir>
amu_machine clean
amu clean
stripdepnd
Dir <Obey$Dir>
amu rom THROWBACK=-throwback
# Makefile for GPIO
COMPONENT = GPIO
RESOURCES = No
ROM_SOURCE = GetAll.s
ROM_MODULE ?= rm.${COMPONENT}
ROM_OBJECT ?= o.${TARGET}
HDRS =
OBJS = GetAll
RES_OBJ =
CMHGFILE =
CUSTOMRES = custom
ROMASMDEFINES = -pd "ROM SETL {TRUE}"
include StdTools
include AAsmModule
include CModule
# Dynamic dependencies:
;
; This file is automatically maintained by srccommit, do not edit manually.
; Last processed by srccommit version: 1.1.
;
GBLS Module_MajorVersion
GBLA Module_Version
GBLS Module_MinorVersion
......@@ -7,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "0.50"
Module_Version SETA 050
Module_MajorVersion SETS "0.51"
Module_Version SETA 51
Module_MinorVersion SETS ""
Module_Date SETS "20 Mar 2013"
Module_ApplicationDate SETS "20-Mar-13"
Module_Date SETS "29 Apr 2014"
Module_ApplicationDate SETS "29-Apr-14"
Module_ComponentName SETS "GPIO"
Module_ComponentPath SETS ""
Module_FullVersion SETS "0.50"
Module_HelpVersion SETS "0.50 (20 Mar 2013)"
Module_ComponentPath SETS "bsd/RiscOS/Sources/ThirdParty/TankStage/HWSupport/GPIO"
Module_FullVersion SETS "0.51"
Module_HelpVersion SETS "0.51 (29 Apr 2014)"
END
/* (0.51)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.51
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 29 Apr 2014
#define Module_MajorVersion "0.51"
#define Module_Version 51
#define Module_MinorVersion ""
#define Module_Date "29 Apr 2014"
#define Module_ApplicationDate "29-Apr-14"
#define Module_ComponentName "GPIO"
#define Module_ComponentPath "bsd/RiscOS/Sources/ThirdParty/TankStage/HWSupport/GPIO"
#define Module_FullVersion "0.51"
#define Module_HelpVersion "0.51 (29 Apr 2014)"
#define Module_LibraryVersionInfo "0:51"
......@@ -27,8 +27,14 @@
;s.InitModule
[ :LNOT::DEF: ROM
GBLL ROM
ROM SETL {FALSE}
]
[ :LNOT: ROM
IMPORT |__RelocCode| ; Link symbol for relocation routine
]
;******************************************************************************
......@@ -39,7 +45,9 @@
RM_Init
PUSH {r1-r11,lr}
[ :LNOT: ROM
BL |__RelocCode| ; initialise absolute code pointers
]
MOV r0,#OSModule_Alloc ;
LDR r3,maxRMA ;
SWI XOS_Module ;
......
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