rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
config.h
Go to the documentation of this file.
1 /* This file is part of rflpc. Copyright 2010-2011 Michael Hauspie
2  *
3  * rflpc is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * rflpc is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with rflpc. If not, see <http://www.gnu.org/licenses/>.
15  */
16 #ifndef __RFLPC_CONFIG_H__
17 #define __RFLPC_CONFIG_H__
18 
23 /*
24  Author: Michael Hauspie <michael.hauspie@univ-lille1.fr>
25  Created: 2011-07-04
26  Time-stamp: <2012-03-21 09:56:54 (hauspie)>
27 
28  This files permits the configuration of the platform.
29  It includes a platform-dependent config file for your target.
30 
31  Only mbed is available, but you can create one for your LPC17xx platform.
32 
33  */
34 
35 /* Include file that defines what is compiled in the library */
36 #include "config-options.h"
37 
38 #ifdef RFLPC_CONFIG_PLATFORM_MBED
39 /* If you want to use the library on another LPC17xx based platform, create a
40  config-xxx.h file for it (copy the config-mbed.h as a starting base). The file
41  should define some pin connections and the activation/deactivation macro for
42  parts of the library.
43 */
44 #include "config-mbed.h"
45 #endif
46 
47 
48 
57 #ifndef RFLPC_STACK_SIZE
58 #define RFLPC_STACK_SIZE 1024
59 #endif
60 
67 #define RFLPC_IRQ_DEBUG_ENABLE
68 
70 #define RFLPC_IRQn_COUNT (PLL1_IRQn + 16 +1)
71 
75 #endif
Configure the library to use with the MBED platform (http://www.mbed.org)