Library to access LPC17xx peripherals. It uses static inline functions, constant propagation and dead code elimination to be as fast as possible.

Dependents:   Chua-VGA Wolfram-1D-VGA WolframRnd-1D-VGA Basin-VGA ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers common.h Source File

common.h

00001 /* Copyright (C) 2010, 2011 by Ivo van Poorten <ivop@euronet.nl>
00002  * This file is licensed under the terms of the GNU Lesser
00003  * General Public License, version 3.
00004  */
00005 
00006 #ifndef FASTLIB_COMMON_H
00007 #define FASTLIB_COMMON_H
00008 
00009 #include <stdint.h>
00010 
00011 #define FL_IGNORE (-1)
00012 
00013 #define FL_OFF      0
00014 #define FL_ON       1
00015 
00016 #define FL_INPUT    0
00017 #define FL_OUTPUT   1
00018 
00019 #define FL_RISE     0
00020 #define FL_FALL     1
00021 #define FL_BOTH     2
00022 
00023 #define FL_DISABLE  0
00024 #define FL_ENABLE   1
00025 
00026 #define FL_DISCONNECT   0
00027 #define FL_CONNECT      1
00028 
00029 #define FL_SINGLE_EDGE  0
00030 #define FL_DOUBLE_EDGE  1
00031 
00032 #define FL_8BITS    0
00033 #define FL_16BITS   1
00034 #define FL_32BITS   3
00035 
00036 #define FL_STEREO   0
00037 #define FL_MONO     1
00038 
00039 #define FL_MASTER   0
00040 #define FL_SLAVE    1
00041 
00042 #define FL_LITTLE_ENDIAN    0
00043 #define FL_BIG_ENDIAN       1
00044 
00045 #endif