Gpio Driver Application - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

5.8.4

GPIO Driver Application

The GPIO driver application is designed for Motorola/Freescale EVM's and it is intended to
illustrate the usage of this driver by a real example. It also verifies the functionality by blinking
user LEDs on the EVM.
The
GPIO
driver
Source}\..\sample_applications\MC56F8346EVM\gpio_demo and consists of the application
gpio_demo.mcp and the source code for the application main.c.
See Table 5-269 for the LED configuration, specific to the individual EVM's.
EVM
MC56F8006DEMO
MC56F8013DEMO
MC56F8323EVM
56F8300DEMO
MC56F8346EVM
MC56F8346CB
MC56F8357EVM
MC56F8367EVM
Example 5-246. GPIO Driver Application - appconfig.h
/*******************************************************************************
*
* Freescale Semiconductor Inc.
* (c) Copyright 2004 Freescale Semiconductor, Inc.
* (c) Copyright 2001-2004 Motorola, Inc.
* ALL RIGHTS RESERVED.
*
********************************************************************************
*
* File Name: appconfig.h
*
* Description: file for static configuration of the application
*
(initial values, interrupt vectors)
*
*****************************************************************************/
#ifndef __APPCONFIG_H
#define __APPCONFIG_H
/*.*************************************************************************
*
*
File generated by Graphical Configuration Tool
*
****************************************************************************.*/
5-344
application
can
be
Table 5-269. EVMs configuration
User LEDs on GPIO
LED1 (PA0), LED2 (PA1), LED4 (PA4)
LED1 (PA0), LED2 (PA1), LED4 (PA3)
LED0 (PC0), LED1 (PC1), LED3 (PC3)
D10 (PA0), D1(PA1)
LED0 (PC0), LED1 (PC1), LED3 (PC3)
LED0 (PC0), LED1 (PC1), LED3 (PC2)
LED0 (PC0), LED1 (PC1), LED3 (PC3)
LED0 (PC0), LED1 (PC1), LED3 (PC3)
Targeting 56F8xxx Platform
found
at
e.g.
{DSP56800E_Quick_Start
Push Button for interrupt
generation
push S1 (PB2) or S2 (PB3)
push S1 (PB2) or S2 (PB3)
short GPIO Port A pins 0-1
short GPIO Port C pins 2-3
short GPIO Port E pins 5-6
short GPIO Port E pins 5-6
short GPIO Port E pins 5-6
short GPIO Port E pins 5-6
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents