; Copyright 2015 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;

;
; Please note, as of 16 Oct 2015 this HALDevice may still change.
; This comment will be removed once stability is reached
;
        [       :LNOT: :DEF: __HAL_SPIDevice_HDR__
        GBLL    __HAL_SPIDevice_HDR__
; Define a HAL device to let the HAL pass addresses to modules
        GET     Hdr:HALDevice
                                ^       0
HALDevice_SPI                   #       HALDeviceSize
; Additional device fields
HALDevice_SPI_sb                #       4       ; (internal use) HAL sb/r9
HALDevice_Capabilities          #       4       ; query interface capabilities
HALDevice_Configure             #       4       ; configure interface
HALDevice_1                     #       4       ; placeholder
HALDevice_2                     #       4       ; placeholder
HALDevice_3                     #       4       ; placeholder
HALDevice_4                     #       4       ; placeholder
HALDevice_5                     #       4       ; placeholder
HALDevice_SPI_Size              *       :INDEX: @

        ] ; __HAL_SPIDevice_HDR__

        END