Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
olimex_lpc_h2148.h
Go to the documentation of this file.
1 #ifndef CONFIG_OLIMEX_H2148_H
2 #define CONFIG_OLIMEX_H2148_H
3 
4 /* Master oscillator freq. */
5 #define FOSC (12000000)
6 /* PLL multiplier */
7 #define PLL_MUL (5)
8 /* CPU clock freq. */
9 #define CCLK (FOSC * PLL_MUL)
10 /* Peripheral bus speed mask 0x00->4, 0x01-> 1, 0x02 -> 2 */
11 #define PBSD_BITS 0x02
12 #define PBSD_VAL 2
13 /* Peripheral bus clock freq. */
14 #define PCLK (CCLK / PBSD_VAL)
15 
16 #ifndef USE_LED_1
17 #define USE_LED_1 1
18 #endif
19 #define LED_1_BANK 1
20 #define LED_1_PIN 24
21 
22 #ifndef USE_LED_2
23 #define USE_LED_2 1
24 #endif
25 #define LED_2_BANK 1
26 #define LED_2_PIN 23
27 
28 #endif /* CONFIG_OLIMEX_H2148_H */