IIC,从51移殖到STM32,第二次握手出问题

/******************** (C) COPYRIGHT 2013 XXXXXX *****************************
* File Name          : iic.h
* Author             :
* Description        : iic simulation or iic hardware procedure.
********************************************************************************
History:
        2013-12        Initial version.

*******************************************************************************/


/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __IIC_H__
#define __IIC_H__

/* Includes ------------------------------------------------------------------*/
#include "stm8l15x.h"

/* Exported types ------------------------------------------------------------*/
typedef struct IIC_PORT_struct
{
        __IO        uint8_t        *DDR;
        __IO        uint8_t *IDR;
        __IO        uint8_t *ODR;
                        uint8_t SCL_MASK;
                        uint8_t SCL_NMASK;