Commit d3f4d7ef authored by ROOL's avatar ROOL 🤖
Browse files

Transition Pi HAL to GPIO API 1.00

Detail:
  Move the register accesses for GPIO to the HAL, since they are hardware specific.
  Add recognition of board types for Pi 3, Compute module 3, rev 3 Pi 0's, and the newer Pi 2's with BCM2837 on them.
Admin:
  Based in part on a submission from Tank.
  Tested on a Pi 2. Requires corresponding GPIO module (tag GPIO-1_00-1_11_2_1 or later).

Version 0.67. Tagged as 'BCM2835-0_67'
parent e626e215
/* (0.66)
/* (0.67)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.66
#define Module_MajorVersion_CMHG 0.67
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 20 Jan 2017
#define Module_Date_CMHG 11 Feb 2017
#define Module_MajorVersion "0.66"
#define Module_Version 66
#define Module_MajorVersion "0.67"
#define Module_Version 67
#define Module_MinorVersion ""
#define Module_Date "20 Jan 2017"
#define Module_Date "11 Feb 2017"
#define Module_ApplicationDate "20-Jan-17"
#define Module_ApplicationDate "11-Feb-17"
#define Module_ComponentName "BCM2835"
#define Module_ComponentPath "mixed/RiscOS/Sources/HAL/BCM2835"
#define Module_FullVersion "0.66"
#define Module_HelpVersion "0.66 (20 Jan 2017)"
#define Module_LibraryVersionInfo "0:66"
#define Module_FullVersion "0.67"
#define Module_HelpVersion "0.67 (11 Feb 2017)"
#define Module_LibraryVersionInfo "0:67"
......@@ -341,6 +341,7 @@ BoardRevision_Manuf_Mask * 15 :SHL: BoardRevision_Manuf_Shift
BoardRevision_Manuf_Sony * 0 :SHL: BoardRevision_Manuf_Shift
BoardRevision_Manuf_Egoman * 1 :SHL: BoardRevision_Manuf_Shift
BoardRevision_Manuf_Embest * 2 :SHL: BoardRevision_Manuf_Shift
BoardRevision_Manuf_SonyJP * 3 :SHL: BoardRevision_Manuf_Shift
BoardRevision_Manuf_Embest2 * 4 :SHL: BoardRevision_Manuf_Shift
BoardRevision_Proc_Shift * 12
BoardRevision_Proc_Mask * 15 :SHL: BoardRevision_Proc_Shift
......@@ -357,6 +358,7 @@ BoardRevision_Model_B2 * 4 :SHL: BoardRevision_Model_Shift
BoardRevision_Model_Compute * 6 :SHL: BoardRevision_Model_Shift
BoardRevision_Model_B3 * 8 :SHL: BoardRevision_Model_Shift
BoardRevision_Model_Zero * 9 :SHL: BoardRevision_Model_Shift
BoardRevision_Model_Compute3 * 10 :SHL: BoardRevision_Model_Shift
BoardRevision_Rev_Shift * 0
BoardRevision_Rev_Mask * 15 :SHL: BoardRevision_Rev_Shift
......
......@@ -152,7 +152,8 @@ DMAController # HALDevice_DMAC_Size_0_1 ; see Hdr:HALDevice
DMAChannels # DMAC_DeviceSize*DMA_CH_Count ; List of channel devices (indexed by physical channel #)
VCHIQDevice # HALDevice_VCHIQ_Size
GPIODevice # HALDevice_GPIO_Size
GPIO0Device # HALDevice_GPIO_Size_1_0 + 16
GPIO1Device # HALDevice_GPIO_Size_1_0 + 16
VDUDevice # HALDevice_VDU_Size
VDUDevSpec # VDUDevSpec_Size
RTCDeviceStruct # 80
......
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