/* ****************************************************************************** * * @file gpio.c * @brief gpio module * @ic sy8835 * * @version 1.0 * @date 2024/11/01 15:00:40 * @author Alex Xu * * Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd. * All Rights Reserved * * History: * Revision Date Author Desc * 1.0.0 2024/11/01 Alex build this file ******************************************************************************/ /*_____ I N C L U D E S ____________________________________________________*/ #include "gpio.h" #include "sleep.h" #include "userapp.h" #include "led.h" /******************************************************************************\ Macro definitions \******************************************************************************/ /******************************************************************************\ Variables definitions \******************************************************************************/ //uint8_t System_Rst_Cnt = 0; //系统软复位定时器 /******************************************************************************\ Functions definitions \******************************************************************************/ /* ******************************************************************************* * void Gpio_Init(void) * * Description : gpio Initialization. --- 系统初始化调用。 * * Arguments : * Returns : * Notes : * ******************************************************************************* */ #if 0 void GPIO_Init(void) { /* GPIO */ // SFRADDR = P0_OE; // SFRDATA |= 0x1C; //P02,P03,P04设置成输出模式 SFRADDR = P1_OE; SFRDATA = 0x01; } #endif