These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /*----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 2 * Name: ADC.h
frank26080115 0:bf7b9fba3924 3 * Purpose: MCB1700 low level ADC definitions
frank26080115 0:bf7b9fba3924 4 * Version: V1.00
frank26080115 0:bf7b9fba3924 5 * Note(s):
frank26080115 0:bf7b9fba3924 6 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 7 * This file is part of the uVision/ARM development tools.
frank26080115 0:bf7b9fba3924 8 * This software may only be used under the terms of a valid, current,
frank26080115 0:bf7b9fba3924 9 * end user licence from KEIL for a compatible version of KEIL software
frank26080115 0:bf7b9fba3924 10 * development tools. Nothing else gives you the right to use this software.
frank26080115 0:bf7b9fba3924 11 *
frank26080115 0:bf7b9fba3924 12 * This software is supplied "AS IS" without warranties of any kind.
frank26080115 0:bf7b9fba3924 13 *
frank26080115 0:bf7b9fba3924 14 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
frank26080115 0:bf7b9fba3924 15 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 16 * History:
frank26080115 0:bf7b9fba3924 17 * V1.00 Initial Version
frank26080115 0:bf7b9fba3924 18 *----------------------------------------------------------------------------*/
frank26080115 0:bf7b9fba3924 19
frank26080115 0:bf7b9fba3924 20 #ifndef __ADC_H
frank26080115 0:bf7b9fba3924 21 #define __ADC_H
frank26080115 0:bf7b9fba3924 22
frank26080115 0:bf7b9fba3924 23 #include "lpc_types.h"
frank26080115 0:bf7b9fba3924 24
frank26080115 0:bf7b9fba3924 25 #define ADC_VALUE_MAX 0xFFF
frank26080115 0:bf7b9fba3924 26
frank26080115 0:bf7b9fba3924 27
frank26080115 0:bf7b9fba3924 28 extern void ADC_init (void);
frank26080115 0:bf7b9fba3924 29 extern void ADC_startCnv(void);
frank26080115 0:bf7b9fba3924 30 extern void ADC_stopCnv (void);
frank26080115 0:bf7b9fba3924 31 extern uint32_t ADC_getCnv (void);
frank26080115 0:bf7b9fba3924 32
frank26080115 0:bf7b9fba3924 33 #endif