changeset 85:76b295ea4035

8066183: Unable to gain an instance of UART (by id, by UARTConfig). UART's deviceNumber->deviceName mapping issue. Summary: Quckfix to open UART by ID if "jdk.dio.uart.ports" property is not provided. Reviewed-by: jld
author snazarki
date Thu, 22 Jan 2015 14:16:54 +0400
parents c35a455d914d
children 3e262febedc3
files config/dio.properties-raspberrypi
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/config/dio.properties-raspberrypi	Wed Jan 21 20:52:04 2015 +0300
+++ b/config/dio.properties-raspberrypi	Thu Jan 22 14:16:54 2015 +0400
@@ -1,5 +1,5 @@
 #########################################################################
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,7 @@
 
 12 = deviceType: spibus.SPIDevice, name:SPI_Slave, deviceNumber:0, address:0, csActive:1, wordLength:8, clockFrequency:500000, clockMode:1, bitOrdering:1, predefined:true
 
-40 = deviceType: uart.UART, deviceNumber:0, name:UART, baudRate:19200, dataBits:8, parity:0, stopBits:1, flowControl:0, predefined:true
+40 = deviceType: uart.UART, deviceName:ttyAMA0, name:UART, baudRate:19200, dataBits:8, parity:0, stopBits:1, flowControl:0, predefined:true
 gpio.GPIOPin = initValue:0, deviceNumber:0, direction:0, mode:1, trigger:3, predefined:true
 uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0, predefined:true