代码搜索结果
找到约 10,000 项符合
GPIO 的代码
gpio.c
/**********************************************************************
* File: Gpio.c
* Devices: TMS320F2808, TMS320F2806, TMS320F2801
* Author: David M. Alter, Texas Instruments Inc.
* History:
gpio.c
/**********************************************************************
* File: Gpio.c
* Devices: TMS320F2812, TMS320F2811, TMS320F2810
* Author: David M. Alter, Texas Instruments Inc.
* History:
gpio.h
/****************************************Copyright (c)**************************************************
** 广州周立功单片机发展有限公司
** 研 究
gpio.h
#ifndef GPIO_H__
#define GPIO_H__
#define GP_OUTPUT 1
#define GP_INPUT 0
void gpio_init(int id, int pin, int direciton);
void gpio_write(int id, int pin, int value);
int gpio_read(int i
gpio.c
#include
#include "gpio.h"
#include "Socksv2.h"
#include "CEDDK.h"
const unsigned long gpio_addr[] =
{
0x20024000,
0x20025000,
0x20026000,
0x20027000,
0x2002
gpio.lst
GAS LISTING /tmp/cc80EFvs.s page 1
1 .section .mdebug.abi32
2 .previous
3 .section .debug_abbrev,"",@progbits
4 $Ldebug_abbr
gpio.h
#ifndef GPIO_H
#define GPIO_H
#include "example.h"
#define GPIO_READ 0x00
#define GPIO_WRITE 0x01
#ifdef GPIO_2
#define GPIO2_PHYS_ADDR 0x11700000
#define GPIO2_OUTPUT_ENABLE 0x010
gpio.c
#include "gpio.h"
#include "example.h"
#ifdef GPIO_2
static AU1X00_GPIO2 * const gpio2 = (AU1X00_GPIO2 *)KSEG1(GPIO2_PHYS_ADDR);
int gpioRead(int signal)
{
signal -= 200;
gpio2->dir
gpio.h
/******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
* File Name : gpio.h
* Author : MCD Application Team
* Date First Issued : 08/06/2003
* Descr
gpio.c
/******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
* File Name : gpio.c
* Author : MCD Application Team
* Date First Issued : 06/08/2003
* Descr