12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //###########################################################################
- //
- // FILE: DSP2803x_Gpio.c
- //
- // TITLE: DSP2803x General Purpose I/O Initialization & Support Functions.
- //
- //###########################################################################
- // $TI Release: F2803x C/C++ Header Files and Peripheral Examples V130 $
- // $Release Date: May 8, 2015 $
- // $Copyright: Copyright (C) 2009-2015 Texas Instruments Incorporated -
- // http://www.ti.com/ ALL RIGHTS RESERVED $
- //###########################################################################
- #include "DSP2803x_Device.h" // DSP2803x Headerfile Include File
- #include "DSP2803x_Examples.h" // DSP2803x Examples Include File
- //---------------------------------------------------------------------------
- // InitGpio:
- //---------------------------------------------------------------------------
- // This function initializes the Gpio to a known (default) state.
- //
- // For more details on configuring GPIO's as peripheral functions,
- // refer to the individual peripheral examples and/or GPIO setup example.
- void InitGpio(void)
- {
- EALLOW;
- //¿ØÖÆLED
- GpioCtrlRegs.GPAPUD.bit.GPIO22 = 0;
- GpioCtrlRegs.GPAMUX2.bit.GPIO22 = 0;
- GpioCtrlRegs.GPADIR.bit.GPIO22 = 1;
- EDIS;
- InitECanGpio();
- }
- void RunLedSet(void)
- {
- GpioDataRegs.GPASET.bit.GPIO14 = 1;
- }
- void RunLedClr(void)
- {
- GpioDataRegs.GPACLEAR.bit.GPIO14 = 1;
- }
- //===========================================================================
- // End of file.
- //===========================================================================
|