mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-26 21:18:33 -04:00
Comment the peripheral helper files for the new MicroBlaze demo application.
This commit is contained in:
parent
07e3174ad7
commit
77df4daee7
3 changed files with 66 additions and 45 deletions
|
@ -52,7 +52,7 @@
|
|||
*/
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
* Simple parallel port IO routines.
|
||||
* Simple digital IO routines.
|
||||
*-----------------------------------------------------------*/
|
||||
|
||||
/* Kernel includes. */
|
||||
|
@ -64,13 +64,20 @@
|
|||
/* Library includes. */
|
||||
#include "xgpio.h"
|
||||
|
||||
/* The hardware design that accompanies this demo project has four LED
|
||||
outputs. */
|
||||
#define partstMAX_LED 4
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* A hardware specific constant required to use the Xilinx driver library. */
|
||||
static const unsigned portBASE_TYPE uxGPIOOutputChannel = 1UL;
|
||||
|
||||
/* The current state of the output port. */
|
||||
static unsigned char ucGPIOState = 0U;
|
||||
|
||||
/* Structure that hold the state of the ouptut peripheral used by this demo.
|
||||
This is used by the Xilinx peripheral driver API functions. */
|
||||
static XGpio xOutputGPIOInstance;
|
||||
|
||||
/*
|
||||
|
@ -101,6 +108,7 @@ void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
|
|||
{
|
||||
unsigned char ucLED = 1U;
|
||||
|
||||
/* Only attempt to set the LED if it is in range. */
|
||||
if( uxLED < partstMAX_LED )
|
||||
{
|
||||
ucLED <<= ( unsigned char ) uxLED;
|
||||
|
@ -126,6 +134,7 @@ void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
|
|||
{
|
||||
unsigned char ucLED = 1U;
|
||||
|
||||
/* Only attempt to toggle the LED if it is in range. */
|
||||
if( uxLED < partstMAX_LED )
|
||||
{
|
||||
ucLED <<= ( unsigned char ) uxLED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue