代码搜索:GPIO
找到约 10,000 项符合「GPIO」的源代码
代码结果 10,000
www.eeworm.com/read/25701/949320
h hal_gpio.h
/*
* --------------"拉普兰德K60底层库"-----------------
*
* 测试硬件平台:LPLD_K60 Card
* 版权所有:北京拉普兰德电子技术有限公司
* 网络销售:http://laplenden.taobao.com
* 公司门户:http://www.lpld.cn
*
* 文件名: HAL_GPIO.h
* 用途:
www.eeworm.com/read/25809/950397
c gpio_test.c
/************
****利用按键输入来控制对应的LED灯,演示LE1的GPIO功能
************/
#include "gpio_def.h"
void main(void)
{
gpio_init();
while(1)
{
ledlight(keyscan());
}
}
www.eeworm.com/read/25809/950398
c gpio_app.c
#include "gpio_def.h"
#include "reg24le1.h"
void gpio_init(void)
{
P0DIR=0xFF;//input
P1DIR=0x00;//output
P0CON=0xd8;//read pin
P1CON=0X00;
P1=0X00;
P0=0X00;
}
//通过读取输入的按键号来点亮对应的灯
vo
www.eeworm.com/read/25809/950402
obj gpio_app.obj
www.eeworm.com/read/25809/950406
lst gpio_test.lst
C51 COMPILER V9.00 GPIO_TEST 11/13/2010 14:46:40 PAGE 1
C51 COMPILER V9.00, COMPILATION OF MODULE GPIO_TEST
OBJECT MODULE PLACED
www.eeworm.com/read/25809/950408
h gpio_def.h
#include "reg24le1.h"
#ifndef __GPIO_DEF_H__
#define __GPIO_DEF_H__
#define led0 P10
#define led1 P11
#define led2 P12
#define KEY0 P00
#define KEY1 P01
#define KEY2 P02
#define fa
www.eeworm.com/read/25809/950409