-/* procesor H8S/2638 ver 1.1 */
+/* procesor H8S/2638 board EDK2638 ver 1.1 */
#include <types.h>
#include <cpu_def.h>
#include <h8s2638h.h>
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;
//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 */