HALDevice_GPIO header extension
John Ballance (21) 85 posts |
Hi As part of making the iMx6 HAL interfaces more readily visible I am proposing to add the following to the HALDevice_GPIO header. Can anyone see any reason why not? The basic device API has ALDevice_Version = 0. ; Extra entries for API 0.1 with basic GPIO control in the HAL ; HALDevice_Version = 1 HALDevice_GPIOReadBit # 4 HALDevice_GPIOWriteBit # 4 HALDevice_GPIOSetAsInput # 4 HALDevice_GPIOSetAsOutput # 4 HALDevice_GPIOSetAndEnableIRQ # 4 HALDevice_GPIOIRQClear # 4 HALDevice_GPIODisableIRQ # 4 HALDevice_GPIOReadBitAddr # 4 HALDevice_GPIODeviceNumber # 4 HALDevice_GPIO_Size_0_1 * :INDEX: @ ; This extends the HAL GPIO device to provide routines as above.
Readbitaddr returns the address in a1 of the register containing the bit Readbit returns a1 = 0 or 1 |
Tank (53) 374 posts |
Replied by email…. |