SMARTEST lib for MPS2

Dependents:   MSP2_LCD_HOLA

Committer:
FelipeVR
Date:
Thu Aug 23 13:39:38 2018 +0000
Revision:
0:f1a413971403
SMARTEST LCD

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FelipeVR 0:f1a413971403 1 /*-----------------------------------------------------------------------------
FelipeVR 0:f1a413971403 2 * Name: LED.h
FelipeVR 0:f1a413971403 3 * Purpose: Low level LED definitions
FelipeVR 0:f1a413971403 4 *-----------------------------------------------------------------------------
FelipeVR 0:f1a413971403 5 * This file is part of the uVision/ARM development tools.
FelipeVR 0:f1a413971403 6 * This software may only be used under the terms of a valid, current,
FelipeVR 0:f1a413971403 7 * end user licence from KEIL for a compatible version of KEIL software
FelipeVR 0:f1a413971403 8 * development tools. Nothing else gives you the right to use this software.
FelipeVR 0:f1a413971403 9 *
FelipeVR 0:f1a413971403 10 * This software is supplied "AS IS" without warranties of any kind.
FelipeVR 0:f1a413971403 11 *
FelipeVR 0:f1a413971403 12 * Copyright (c) 2013 KEIL - An ARM Company. All rights reserved.
FelipeVR 0:f1a413971403 13 *----------------------------------------------------------------------------*/
FelipeVR 0:f1a413971403 14
FelipeVR 0:f1a413971403 15 #ifndef __LED_H
FelipeVR 0:f1a413971403 16 #define __LED_H
FelipeVR 0:f1a413971403 17
FelipeVR 0:f1a413971403 18 #include <stdint.h>
FelipeVR 0:f1a413971403 19
FelipeVR 0:f1a413971403 20 #define FPGA_LEDS 0
FelipeVR 0:f1a413971403 21 #define MCC_LEDS 1
FelipeVR 0:f1a413971403 22
FelipeVR 0:f1a413971403 23 #define NUM_FPGA_LEDS 2
FelipeVR 0:f1a413971403 24 #define NUM_FPGA_LEDS_MASK 0x3
FelipeVR 0:f1a413971403 25 #define NUM_MCC_LEDS 8
FelipeVR 0:f1a413971403 26 #define NUM_MCC_LEDS_MASK 0xFF
FelipeVR 0:f1a413971403 27
FelipeVR 0:f1a413971403 28 extern void LED_Initialize (uint32_t port);
FelipeVR 0:f1a413971403 29 extern void LED_Uninitialize (void);
FelipeVR 0:f1a413971403 30 extern void LED_On (uint32_t num, uint32_t port);
FelipeVR 0:f1a413971403 31 extern void LED_Off (uint32_t num, uint32_t port);
FelipeVR 0:f1a413971403 32 extern void LED_Out (uint32_t val, uint32_t port);
FelipeVR 0:f1a413971403 33 extern uint32_t LED_NumLeds (uint32_t port);
FelipeVR 0:f1a413971403 34
FelipeVR 0:f1a413971403 35 #endif /* __LED_H */