Commit a9f7850d authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Fix HAL_UARTModemControl

Detail:
  s/UART:
  - HAL_UARTModemControl now uses the correct AND mask; previous code would have always had bit 0 of the mask set.
  - Fixed code in HAL_UARTModemControl that was testing for calls that don't update the register
Admin:
  Builds, but untested
  Identical fix was tested in OMAP3 HAL


Version 0.09. Tagged as 'OMAP4-0_09'
parent 23a21f07
/* (0.08)
/* (0.09)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.08
#define Module_MajorVersion_CMHG 0.09
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 Jun 2012
#define Module_Date_CMHG 11 Jun 2012
#define Module_MajorVersion "0.08"
#define Module_Version 8
#define Module_MajorVersion "0.09"
#define Module_Version 9
#define Module_MinorVersion ""
#define Module_Date "07 Jun 2012"
#define Module_Date "11 Jun 2012"
#define Module_ApplicationDate "07-Jun-12"
#define Module_ApplicationDate "11-Jun-12"
#define Module_ComponentName "OMAP4"
#define Module_ComponentPath "castle/RiscOS/Sources/HAL/OMAP4"
#define Module_FullVersion "0.08"
#define Module_HelpVersion "0.08 (07 Jun 2012)"
#define Module_LibraryVersionInfo "0:8"
#define Module_FullVersion "0.09"
#define Module_HelpVersion "0.09 (11 Jun 2012)"
#define Module_LibraryVersionInfo "0:9"
......@@ -425,11 +425,11 @@ HAL_UARTModemControl
BaseAddr
PHPSEI ip, a4
LDRB a4, [a1, #UART_MCR]
CMP a2, #-1
ORR a3, a3, #(256 - (UART_MCR_DTR + UART_MCR_RTS)) ; Only allow DTR+RTS to be modified
ORR a3, a3, #(255 - (UART_MCR_DTR + UART_MCR_RTS)) ; Only allow DTR+RTS to be modified
AND a2, a2, #(UART_MCR_DTR + UART_MCR_RTS)
ANDNE a3, a3, a4
EORNE a3, a3, a2
AND a3, a3, a4
EOR a3, a3, a2
CMP a3, a4
STRNEB a3, [a1, #UART_MCR]
PLP ip
AND a1, a4, #(UART_MCR_DTR + UART_MCR_RTS)
......
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