C51 COMPILER V9.52.0.0   GPIOINIT                                                          03/23/2017 15:15:42 PAGE 1   


C51 COMPILER V9.52.0.0, COMPILATION OF MODULE GPIOINIT
OBJECT MODULE PLACED IN .\Output\GPIOInit.obj
COMPILER INVOKED BY: C:\Keil_v4\C51\BIN\C51.EXE ..\User\Source\GPIOInit.c LARGE OMF2 WARNINGLEVEL(0) BROWSE INCDIR(..\Li
                    -brary\FU68xx_Hardware_Driver\Include;..\User\Include) DEBUG PRINT(.\Listing\GPIOInit.lst) TABS(2) OBJECT(.\Output\GPIOIn
                    -it.obj)

line level    source

   1          /**************************** (C) COPYRIGHT 2015 Fortiortech shenzhen *****************************
   2          * File Name          : GPIOInit.c
   3          * Author             : Billy Long Fortiortech  Market Dept
   4          * Version            : V1.0
   5          * Date               : 01/07/2015
   6          * Description        : This file contains GPIO initial function used for Motor Control.
   7          ***************************************************************************************************
   8          * All Rights Reserved
   9          **************************************************************************************************/ 
  10          
  11          /* Includes -------------------------------------------------------------------------------------*/
  12          #include <FU68xx.h>
  13          #include <Myproject.h>
  14          
  15          
  16          /*-------------------------------------------------------------------------------------------------
  17            Function Name : void GPIO_Init(void)
  18            Description   : GPIO³õÊ¼»¯ÅäÖÃ
  19            Input         : ÎÞ
  20            Output        : ÎÞ
  21          -------------------------------------------------------------------------------------------------*/
  22          void GPIOInit(void)
  23          {
  24   1        SetBit(P0_OE, P00, 0);  // config P00 as input
  25   1        SetBit(P0_PU, P00, 1);  // enable P00 pull up 
  26   1        
  27   1        SetBit(P0_OE, P01, 1);  // config P01 as output
  28   1        SetBit(P0_PU, P01, 1);  // enable P01 pull up 
  29   1        
  30   1        SetBit(P0_OE, P02, 0);  // config P02 as input
  31   1        SetBit(P0_PU, P02, 1);  // enable P02 pull up 
  32   1        
  33   1        SetBit(P0_OE, P03, 0);  // config P03 as output 
  34   1        SetBit(P0_PU, P03, 1);  // enable P03 pull up 
  35   1      
  36   1        SetBit(P1_OE, P10, 1);  // config P11 as input
  37   1        SetBit(P1_PU, P10, 1);  // enable P11 pull up 
  38   1        GP10 = 0;
  39   1        
  40   1        SetBit(P1_OE, P11, 0);  // config P11 as input
  41   1        SetBit(P1_PU, P11, 1);  // enable P11 pull up 
  42   1        
  43   1        SetBit(P3_OE, P36, 1);  // config P11 as output
  44   1        SetBit(P3_PU, P36, 1);  // enable P11 pull up 
  45   1        
  46   1        SetBit(P1_OE, P13, 1);  // config P13 as output
  47   1        SetBit(P1_PU, P13, 1);  // enable P13 pull up 
  48   1        SetBit(P1_AN, P13, 0);  // disable P13 HBIAS output
  49   1      
  50   1        SetBit(P2_OE, P23, 0);  // config P11 as input
  51   1        SetBit(P2_PU, P23, 1);  // enable P11 pull up
  52   1        
  53   1        
C51 COMPILER V9.52.0.0   GPIOINIT                                                          03/23/2017 15:15:42 PAGE 2   

  54   1      }
  55          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     86    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
