资源简介

本公司自主研发的产品LED显示控制卡编辑及GUI显示程序,WINDOWS平台采用C++Builder开发,硬件平台采用STM32开发,代码质量超好,不卖钱了,全拿到网上免费分享!!!本资料仅用于学习之用,请勿用于商业目的。如果需要用于商业目的,请与本人联系。

资源截图

代码片段和文件信息

/*******************************************************************************
* Project Name          : PLC-RTOS
* File Name          : CPU.c
* Author             : Li Lihua
* Version            : V1.0.1
* Date               : 11/10/2011
* Description        : 
*******************************************************************************/

#include 
#include “config.h“
#include “stm32f10x.h“
#include “uart.h“
#include “bsp.h“


tGpioInf X_GPIO[] = 
{
{X00_GPIO X00_PIN}
{X01_GPIO X01_PIN}
{X02_GPIO X02_PIN}
{X03_GPIO X03_PIN}
{X04_GPIO X04_PIN}
{X05_GPIO X05_PIN}
{X06_GPIO X06_PIN}
{X07_GPIO X07_PIN}
{X10_GPIO X10_PIN}
{X11_GPIO X11_PIN}
{X12_GPIO X12_PIN}
{X13_GPIO X13_PIN}
{X14_GPIO X14_PIN}
{X15_GPIO X15_PIN}
{X16_GPIO X16_PIN}
{X17_GPIO X17_PIN}
};


tGpioInf Y_GPIO[] = 
{
{Y00_GPIO Y00_PIN}
{Y01_GPIO Y01_PIN}
{Y02_GPIO Y02_PIN}
{Y03_GPIO Y03_PIN}
{Y04_GPIO Y04_PIN}
{Y05_GPIO Y05_PIN}
{Y06_GPIO Y06_PIN}
{Y07_GPIO Y07_PIN}
{Y10_GPIO Y10_PIN}
{Y11_GPIO Y11_PIN}
{Y12_GPIO Y12_PIN}
{Y13_GPIO Y13_PIN}
{Y14_GPIO Y14_PIN}
{Y15_GPIO Y15_PIN}
{Y16_GPIO Y16_PIN}
{Y17_GPIO Y17_PIN}
};


void SetAllYPortHigh(void)
{
uint i;
for (i=0; i<16; i++)
{
SET_GPIO_HIGH(Y_GPIO[i].gpio Y_GPIO[i].pin);
}
}

void SetAllYPortLow(void)
{
uint i;
for (i=0; i<16; i++)
{
SET_GPIO_LOW(Y_GPIO[i].gpio Y_GPIO[i].pin);
}
}


void OutXPort(BYTE dat)
{
UINT i;

for (i=0; i<8; i++)
{
if (dat&(0x01< {
SET_GPIO_HIGH(X_GPIO[i].gpio X_GPIO[i].pin);
}
else
{
SET_GPIO_LOW(X_GPIO[i].gpio X_GPIO[i].pin);
}
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-28 17:08  LED_Ctrl\
     文件         104  2012-04-09 17:25  LED_Ctrl\cdebug.bat
     文件          94  2012-02-23 10:17  LED_Ctrl\copy.bat
     文件          98  2012-04-09 17:26  LED_Ctrl\crelease.bat
     目录           0  2018-04-27 15:18  LED_Ctrl\Full_prj\
     目录           0  2018-04-28 18:41  LED_Ctrl\Full_prj\MDK-ARM\
     文件      156689  2014-02-15 21:18  LED_Ctrl\Full_prj\MDK-ARM\Led_ctrl.David
     文件       36184  2014-02-15 20:54  LED_Ctrl\Full_prj\MDK-ARM\Led_ctrl.dep
     文件       88487  2018-04-27 16:18  LED_Ctrl\Full_prj\MDK-ARM\Led_ctrl.uvgui.llh_oem
     文件       24021  2018-04-27 16:18  LED_Ctrl\Full_prj\MDK-ARM\Led_ctrl.uvopt
     文件       37448  2018-04-27 16:18  LED_Ctrl\Full_prj\MDK-ARM\Led_ctrl.uvproj
     目录           0  2018-04-27 15:18  LED_Ctrl\GNU\
     文件        8668  2012-02-17 17:05  LED_Ctrl\GNU\main.o
     文件        5417  2012-02-28 15:16  LED_Ctrl\GNU\makefile
     文件        8941  2012-02-14 09:03  LED_Ctrl\GNU\makefile_20120215
     文件        9225  2012-02-15 09:58  LED_Ctrl\GNU\makefile_20120215_2
     文件        9257  2012-02-15 10:12  LED_Ctrl\GNU\makefile_20120215_3
     文件        5176  2012-02-15 19:38  LED_Ctrl\GNU\makefile_Full
     文件        3043  2011-04-21 19:33  LED_Ctrl\GNU\stm32f103v-ROM.ld
     文件        6878  2011-03-19 12:13  LED_Ctrl\GNU\stm32f10x_md_flash_offset.ld
     文件        6479  2012-02-13 09:47  LED_Ctrl\GNU\STM32_COMMON.ld
     文件        6180  2012-02-13 09:50  LED_Ctrl\GNU\STM32_SEC_FLASH.ld
     文件       13725  2012-02-21 09:07  LED_Ctrl\GNU\stm_plc.ld
     文件       32768  2010-12-30 13:06  LED_Ctrl\HEX2BIN.EXE
     目录           0  2018-04-27 15:18  LED_Ctrl\lib\
     文件      767376  2011-11-03 08:57  LED_Ctrl\lib\BSP_Debug.lib
     文件      756938  2011-11-03 08:57  LED_Ctrl\lib\bsp_Release.lib
     文件     2912468  2012-04-09 18:54  LED_Ctrl\lib\kernel.lib
     文件     2930502  2012-04-09 19:00  LED_Ctrl\lib\kernel_Debug.lib
     文件     2912468  2012-04-09 18:54  LED_Ctrl\lib\kernel_Release.lib
     文件      928826  2011-12-07 03:11  LED_Ctrl\lib\libc.a
............此处省略322个文件信息

评论

共有 条评论