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

Export GPIODevice header

Thanks to Jeffrey Lee for permission to relicense this work alongside the GPIO module.

Version 0.61. Tagged as 'GPIO-0_61'
parent 41a17a23
Dir <Obey$Dir>
amu export
......@@ -29,11 +29,12 @@
#
COMPONENT = GPIO
ASMHDRS = GPIODevice
ASMCHDRS = GPIODevice
HDRS =
OBJS = GetAll
RES_OBJ =
CMHGFILE =
CUSTOMRES = custom
CUSTOMRES = no
ROMASMDEFINES = -pd "ROM SETL {TRUE}"
include CModule
......
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "0.60"
Module_Version SETA 60
Module_MajorVersion SETS "0.61"
Module_Version SETA 61
Module_MinorVersion SETS ""
Module_Date SETS "25 Feb 2015"
Module_ApplicationDate SETS "25-Feb-15"
Module_Date SETS "28 Oct 2015"
Module_ApplicationDate SETS "28-Oct-15"
Module_ComponentName SETS "GPIO"
Module_ComponentPath SETS "bsd/RiscOS/Sources/ThirdParty/TankStage/HWSupport/GPIO"
Module_FullVersion SETS "0.60"
Module_HelpVersion SETS "0.60 (25 Feb 2015)"
Module_FullVersion SETS "0.61"
Module_HelpVersion SETS "0.61 (28 Oct 2015)"
END
/* (0.60)
/* (0.61)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.60
#define Module_MajorVersion_CMHG 0.61
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 25 Feb 2015
#define Module_Date_CMHG 28 Oct 2015
#define Module_MajorVersion "0.60"
#define Module_Version 60
#define Module_MajorVersion "0.61"
#define Module_Version 61
#define Module_MinorVersion ""
#define Module_Date "25 Feb 2015"
#define Module_Date "28 Oct 2015"
#define Module_ApplicationDate "25-Feb-15"
#define Module_ApplicationDate "28-Oct-15"
#define Module_ComponentName "GPIO"
#define Module_ComponentPath "bsd/RiscOS/Sources/ThirdParty/TankStage/HWSupport/GPIO"
#define Module_FullVersion "0.60"
#define Module_HelpVersion "0.60 (25 Feb 2015)"
#define Module_LibraryVersionInfo "0:60"
#define Module_FullVersion "0.61"
#define Module_HelpVersion "0.61 (28 Oct 2015)"
#define Module_LibraryVersionInfo "0:61"
;
; Copyright (c) 2011, RISC OS Open Ltd
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and the following disclaimer.
; * Redistributions in binary form must reproduce the above copyright
; notice, this list of conditions and the following disclaimer in the
; documentation and/or other materials provided with the distribution.
; * Neither the name of the copyright holder nor the names of their
; contributors may be used to endorse or promote products derived from
; this software without specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;
SUBT GPIO HAL device constants
OldOpt SETA {OPT}
OPT OptNoList+OptNoP1List
[ :LNOT: :DEF: Included_Hdr_GPIODevice
GBLL Included_Hdr_GPIODevice
Included_Hdr_GPIODevice SETL {TRUE}
; Device for GPIO devices
; This device just reports the board type and revision, so that the GPIO manager
; knows how everything is set up and which bits should be off-limits.
^ HALDeviceSize
HALDevice_GPIOType # 4
HALDevice_GPIORevision # 4
HALDevice_GPIO_Size * :INDEX: @
; Type & revision values specific to HALDeviceID_GPIO_OMAP3:
^ 0
GPIOType_OMAP3_BeagleBoard # 1 ; It's a BeagleBoard or BB-xM
GPIOType_OMAP3_DevKit8000 # 1 ; It's a DevKit 8000
GPIOType_OMAP3_IGEPv2 # 1 ; It's an IGEP v2
GPIOType_OMAP3_Pandora # 1 ; It's a Pandora
GPIOType_OMAP3_TouchBook # 1 ; It's a TouchBook
; BeagleBoard revision values:
^ 0
; BeagleBoard:
GPIORevision_BeagleBoard_AB # 1 ; Rev A or B
GPIORevision_BeagleBoard_C123 # 1 ; Rev C1, C2 or C3
GPIORevision_BeagleBoard_C4 # 1 ; Rev C4
; BeagleBoard-xM:
GPIORevision_BeagleBoard_xMA # 1 ; Rev A
GPIORevision_BeagleBoard_xMB # 1 ; Rev B
GPIORevision_BeagleBoard_xMC # 1 ; Rev C
; DevKit revision values:
^ 0
GPIORevision_DevKit8000_Unknown # 1
; IGEP revision values:
^ 0
GPIORevision_IGEPv2_BC # 1 ; Rev B or C (B-compatible)
GPIORevision_IGEPv2_C # 1 ; Rev C (not a B-compatible one)
; Pandora revision values:
^ 0
GPIORevision_Pandora_Unknown # 1
; TouchBook revision values:
^ 0
GPIORevision_TouchBook_Unknown # 1
; Type & revision values specific to HALDeviceID_GPIO_BCM2835:
^ 0
GPIOType_BCM2835_RaspberryPi # 1 ; It's a Raspberry Pi
; Raspberry Pi revision values:
^ 0
GPIORevision_RaspberryPi_B_1 # 1 ; Model B Rev 1.0
GPIORevision_RaspberryPi_B_2 # 1 ; Model B Rev 2.0
GPIORevision_RaspberryPi_A_2 # 1 ; Model A Rev 2.0
GPIORevision_RaspberryPi_BPlus # 1 ; Model B+
GPIORevision_RaspberryPi_C_1 # 1 ; Model Compute Rev 1.0
GPIORevision_RaspberryPi_APlus # 1 ; Model A+
GPIORevision_RaspberryPi_Mk2_B_1 # 1 ; Model Pi 2
; Type & revision values specific to HALDeviceID_GPIO_OMAP4:
^ 0
GPIOType_OMAP4_Panda # 1 ; It's a PandaBoard or PandaBoard-ES
; Panda revision values:
^ 0
GPIORevision_Panda # 1 ; PandaBoard
GPIORevision_PandaES # 1 ; PandaBoard-ES
; iMx6 type and revision values:
^ 0
GPIOType_iMx6Q # 1 ; iMx6Quad
^ 0
GPIORevision_iMx6Q_WBrevB # 1 ; Initial development
GPIORevision_iMx6Q_WBrevC1 # 1 ; Subsequent
]
OPT OldOpt
END
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