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

Add GPIO device implementation

Update to API 1.0, and corresponding set of register wide accessor functions.
The tables of permitted pins come from staring at the schematics for any connectors, minus those that are "owned" by the OS.

Tested on a Pandaboard, toggling the two user LEDs and scanning the 'USER' push button (which, by the way, needs the pullup enabling as there isn't a discrete one).

Version 0.58. Tagged as 'OMAP4-0_58'
parent 404fe8c0
/* (0.57)
/* (0.58)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.57
#define Module_MajorVersion_CMHG 0.58
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 31 Mar 2018
#define Module_Date_CMHG 01 Apr 2018
#define Module_MajorVersion "0.57"
#define Module_Version 57
#define Module_MajorVersion "0.58"
#define Module_Version 58
#define Module_MinorVersion ""
#define Module_Date "31 Mar 2018"
#define Module_Date "01 Apr 2018"
#define Module_ApplicationDate "31-Mar-18"
#define Module_ApplicationDate "01-Apr-18"
#define Module_ComponentName "OMAP4"
#define Module_ComponentPath "castle/RiscOS/Sources/HAL/OMAP4"
#define Module_FullVersion "0.57"
#define Module_HelpVersion "0.57 (31 Mar 2018)"
#define Module_LibraryVersionInfo "0:57"
#define Module_FullVersion "0.58"
#define Module_HelpVersion "0.58 (01 Apr 2018)"
#define Module_LibraryVersionInfo "0:58"
......@@ -59,7 +59,8 @@ GPIO_CLEARDATAOUT * &190
GPIO_SETDATAOUT * &194
GPIO_PIN_MAX * 192
GPIO_PORT_MAX * 6
GPIO_PIN_MAX * (32 * GPIO_PORT_MAX)
; Flags for GPIOx_SetAndEnableIRQ
GPIO_LEVELDETECT0_FLAG * 1
......
This diff is collapsed.
......@@ -118,7 +118,7 @@ VideoBoardConfig # VideoBoardConfig_Size
AudioWS # Audio_WorkspaceSize
CPUClkWS # SR44x_WorkspaceSize
GPIOWS # HALDevice_GPIO_Size
GPIOWS # 6 * (HALDevice_GPIO_Size_1_0 + (2*4))
NVRAMWS # HALDeviceSize
RTCWS # RTCSize
......
......@@ -158,7 +158,7 @@ HALdescriptor DATA
IMPORT GPMC_Init
IMPORT GPIO_Init
IMPORT GPIOx_SetAsOutput
IMPORT GPIO_InitDevice
IMPORT GPIO_InitDevices
IMPORT SDIO_InitDevices
IMPORT NVMemory_Init
IMPORT NVMemory_InitDevice
......@@ -723,7 +723,7 @@ Board_InitDevices_Panda
MOVNE a2, #BoardRevision_Panda
MOVEQ a2, #BoardRevision_PandaES
Push "a1-a2"
BL GPIO_InitDevice
BL GPIO_InitDevices
; SD needs the same parameters to configure the device correctly
Pull "a1-a2"
BL SDIO_InitDevices
......
This diff is collapsed.
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