]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Minor hardware setup correction - TxD0/1 has to be set to 1.
authorStanislav Marek <mareks1@fel.cvut.cz>
Wed, 2 Nov 2005 14:21:00 +0000 (14:21 +0000)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 16 Nov 2010 15:54:50 +0000 (16:54 +0100)
darcs-hash:20051102142158-5f899-d6022647d70d4e4e4685941f7b81e72efbb06ae1.gz

board/h8300/edk2638/libs/bspbase/bsp0hwinit.c

index f36200745233cdedfba1813bb4bff92b691ade59..7d60c1cc7749cf3398c49f007acb121af108322d 100644 (file)
@@ -1,4 +1,4 @@
-/* procesor H8S/2638 ver 1.1  */
+/* procesor H8S/2638 board EDK2638 ver 1.1 */
 #include <types.h>
 #include <cpu_def.h>
 #include <h8s2638h.h>
@@ -23,7 +23,7 @@ static void deb_led_out(char val)
   if(!(val&1))
     *DIO_P3DR |= 4;
  #else
-  *DIO_P1DDR |=(P1DDR_P15DDRm|P1DDR_P14DDRm); /* set P1.5 and P1.4 as output */
+  SHADOW_REG_SET(DIO_P1DDR,(P1DDR_P15DDRm|P1DDR_P14DDRm)); /* set P1.5 and P1.4 as output */
 
   if (val&1)
     *DIO_P1DR |=P1DR_P14DRm;
@@ -68,6 +68,7 @@ void _setup_board()
 
   //SHADOW_REG_SET(DIO_P3DDR,0xc4);
   //SHADOW_REG_SET(DIO_P1DDR,0x03); /*A20 and A21 are outputs*/
+  *DIO_P3DR=0x09;      /* Inactive value of TxD0 and TxD1 has to be log 1 */
   SHADOW_REG_SET(DIO_P3DDR,0x09); /* TxD0 and TxD1 to outputs */
 
   /* Setup system clock oscilator */