4.115
Last change
on this file since 75acd9e was
75acd9e,
checked in by Alexander Krutwig <alexander.krutwig@…>, on 04/01/15 at 13:33:25
|
bsps: Convert clock drivers to use a timecounter
Update #2271.
|
-
Property mode set to
100644
|
File size:
1012 bytes
|
Rev | Line | |
---|
[b056194c] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup lpc24xx |
---|
| 5 | * |
---|
| 6 | * @brief Clock driver configuration. |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | * Copyright (c) 2009 |
---|
| 11 | * embedded brains GmbH |
---|
| 12 | * Obere Lagerstr. 30 |
---|
| 13 | * D-82178 Puchheim |
---|
| 14 | * Germany |
---|
| 15 | * <rtems@embedded-brains.de> |
---|
| 16 | * |
---|
| 17 | * The license and distribution terms for this file may be |
---|
| 18 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 19 | * http://www.rtems.org/license/LICENSE. |
---|
[b056194c] | 20 | */ |
---|
| 21 | |
---|
| 22 | #ifndef LIBBSP_ARM_LPC24XX_LPC_CLOCK_CONFIG_H |
---|
| 23 | #define LIBBSP_ARM_LPC24XX_LPC_CLOCK_CONFIG_H |
---|
| 24 | |
---|
| 25 | #include <bsp.h> |
---|
| 26 | #include <bsp/irq.h> |
---|
| 27 | #include <bsp/lpc24xx.h> |
---|
| 28 | #include <bsp/io.h> |
---|
| 29 | |
---|
| 30 | #ifdef __cplusplus |
---|
| 31 | extern "C" { |
---|
| 32 | #endif /* __cplusplus */ |
---|
| 33 | |
---|
| 34 | #define LPC_CLOCK_INTERRUPT LPC24XX_IRQ_TIMER_0 |
---|
| 35 | |
---|
| 36 | #define LPC_CLOCK_TIMER_BASE TMR0_BASE_ADDR |
---|
| 37 | |
---|
[75acd9e] | 38 | #define LPC_CLOCK_TIMECOUNTER_BASE TMR1_BASE_ADDR |
---|
| 39 | |
---|
[4a6cc2a] | 40 | #define LPC_CLOCK_REFERENCE LPC24XX_PCLK |
---|
[b056194c] | 41 | |
---|
| 42 | #define LPC_CLOCK_MODULE_ENABLE() \ |
---|
[4a6cc2a] | 43 | lpc24xx_module_enable(LPC24XX_MODULE_TIMER_0, LPC24XX_MODULE_PCLK_DEFAULT) |
---|
[b056194c] | 44 | |
---|
| 45 | #ifdef __cplusplus |
---|
| 46 | } |
---|
| 47 | #endif /* __cplusplus */ |
---|
| 48 | |
---|
| 49 | #endif /* LIBBSP_ARM_LPC24XX_LPC_CLOCK_CONFIG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.