• 大小: 1.27M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-22
  • 语言: C/C++
  • 标签: STM32F030  STM32  uCOS  

资源简介

STM32F030 UCOSii 例程代码  mdk

资源截图

代码片段和文件信息

// ------------------------------------
// 硬件连接:PB10---T-INT
//           PA4----T-CS 
//           PA5----T-CLK
//           PA6----T-OUT
//   PA7----T-DIN
//           SPI1-- AF0
//
// -------------------------------------
#include “ad7845.h“
#include “ili9328.h“
#include “stm32f0xx_spi.h“
#include “stm32f0xx_misc.h“
#include “stm32f0xx_exti.h“

extern volatile unsigned char touch_flag;

Matrix touch_para ;
Point  display ;
long double linear=0 ;

 long double aa1=0bb1=0cc1=0aa2=0bb2=0cc2=0;
/* DisplaySample LCD坐标上对应的ads7843采样AD值 如:LCD 坐标4545 应该的X Y采样ADC分别为3388920 */
Point ScreenSample[4];
/* 给4个校验点 */
Point DisplaySample[4] =   
{
    { 45 45 }
    { 45 270}
    { 190190}
    {210280}
} ;


/******************************************************
* 函数名:AD7845_Init();
* 描述  :初始化ADC784的spi接口
* 输入  : 首先配置时钟,然后配置GPIO,最后配置ADC端口复用
* 输出  :无
* 注意  :
*********************************************************/ 
void AD7845_Init(void)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      16254  2012-09-04 22:54  stm32f030_ucosii_led\drive\ad7845.c

     文件       2950  2012-09-04 10:39  stm32f030_ucosii_led\drive\ad7845.h

     文件       3071  2012-08-02 13:43  stm32f030_ucosii_led\drive\adc.c

     文件        113  2012-08-02 13:16  stm32f030_ucosii_led\drive\adc.h

     文件       9048  2011-05-06 23:23  stm32f030_ucosii_led\drive\ascii.h

     文件       3172  2012-08-07 17:34  stm32f030_ucosii_led\drive\calib.c

     文件       1349  2012-08-08 11:43  stm32f030_ucosii_led\drive\calib.h

     文件       1204  2012-07-31 17:41  stm32f030_ucosii_led\drive\exit.c

     文件        116  2012-07-30 22:53  stm32f030_ucosii_led\drive\exit.h

     文件      13954  2012-09-03 21:26  stm32f030_ucosii_led\drive\gui.c

     文件       1300  2012-08-17 19:41  stm32f030_ucosii_led\drive\gui.h

     文件      20102  2012-08-17 16:59  stm32f030_ucosii_led\drive\ili9328.c

     文件       3269  2012-09-03 21:42  stm32f030_ucosii_led\drive\ili9328.h

     文件        959  2012-07-30 19:36  stm32f030_ucosii_led\drive\key.c

     文件        168  2012-07-30 19:37  stm32f030_ucosii_led\drive\key.h

     文件        733  2012-10-04 16:38  stm32f030_ucosii_led\drive\led.c

     文件        204  2012-10-04 16:38  stm32f030_ucosii_led\drive\led.h

     文件       7897  2012-08-05 15:40  stm32f030_ucosii_led\drive\rtc.c

     文件        275  2012-08-05 15:24  stm32f030_ucosii_led\drive\rtc.h

     文件        493  2012-07-31 18:52  stm32f030_ucosii_led\drive\systick.c

     文件        193  2012-07-31 18:53  stm32f030_ucosii_led\drive\systick.h

     文件       1820  2012-07-31 19:51  stm32f030_ucosii_led\drive\uart.c

     文件        173  2012-07-26 11:48  stm32f030_ucosii_led\drive\uart.h

     文件      19316  2012-08-10 18:23  stm32f030_ucosii_led\drive\w25x16.c

     文件       2891  2012-08-03 17:56  stm32f030_ucosii_led\drive\w25x16.h

     文件       9603  2012-09-17 20:02  stm32f030_ucosii_led\drive\xpt2046.c

     文件       1981  2012-09-11 16:45  stm32f030_ucosii_led\drive\xpt2046.h

     文件      19520  2012-04-25 11:09  stm32f030_ucosii_led\lib\inc\stm32f0xx_adc.h

     文件      12353  2012-04-25 11:09  stm32f030_ucosii_led\lib\inc\stm32f0xx_cec.h

     文件      10385  2012-04-25 11:09  stm32f030_ucosii_led\lib\inc\stm32f0xx_comp.h

............此处省略164个文件信息

评论

共有 条评论