Skip to content

Commit

Permalink
Merge pull request #3779 from haukepetersen/add_lpc2387_timer
Browse files Browse the repository at this point in the history
cpu/lpc2387: added periph timer implementation
  • Loading branch information
haukepetersen committed Sep 4, 2015
2 parents 2d23161 + 84d6112 commit ea4fb69
Show file tree
Hide file tree
Showing 15 changed files with 337 additions and 262 deletions.
1 change: 1 addition & 0 deletions boards/avsextrem/Makefile.features
@@ -1,4 +1,5 @@
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_MCU_GROUP = arm7
5 changes: 5 additions & 0 deletions boards/avsextrem/include/board.h
Expand Up @@ -56,6 +56,11 @@ extern "C" {
#define STDIO_RX_BUFSIZE (64U)
/** @} */

/**
* @brief Deprecated HW_TIMER definition (to be removed)
*/
#define HW_TIMER TIMER_DEV(0)

/**
* @brief Initialize the board's clock system
*/
Expand Down
16 changes: 16 additions & 0 deletions boards/avsextrem/include/periph_conf.h
Expand Up @@ -25,6 +25,22 @@
extern "C" {
#endif

/**
* @brief Clock configuration
* @{
*/
#define CLOCK_CORECLOCK (72000000U) /* this board runs with 72MHz */

#define CLOCK_PCLK (CLOCK_CORECLOCK)
/** @} */

/**
* @brief Timer configuration, select a number from 1 to 4
* @{
*/
#define TIMER_NUMOF (1U)
/** @} */

/**
* @brief PWM device and pinout configuration
*/
Expand Down
51 changes: 0 additions & 51 deletions boards/msba2-common/lpc2387-timer3.c

This file was deleted.

1 change: 1 addition & 0 deletions boards/msba2/Makefile.features
Expand Up @@ -2,6 +2,7 @@ FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += config
FEATURES_MCU_GROUP = arm7
5 changes: 5 additions & 0 deletions boards/msba2/include/board.h
Expand Up @@ -53,6 +53,11 @@ extern "C" {
#define STDIO_RX_BUFSIZE (64U)
/** @} */

/**
* @brief Deprecated HW_TIMER definition (to be removed)
*/
#define HW_TIMER TIMER_DEV(0)

/**
* @brief initialize the board's clock system
*/
Expand Down
16 changes: 16 additions & 0 deletions boards/msba2/include/periph_conf.h
Expand Up @@ -25,6 +25,22 @@
extern "C" {
#endif

/**
* @brief Clock configuration
* @{
*/
#define CLOCK_CORECLOCK (72000000U) /* the msba2 runs with 72MHz */

#define CLOCK_PCLK (CLOCK_CORECLOCK)
/** @} */

/**
* @brief Timer configuration, select a number from 1 to 4
* @{
*/
#define TIMER_NUMOF (1U)
/** @} */

/**
* @brief PWM device and pinout configuration
*/
Expand Down
1 change: 1 addition & 0 deletions boards/pttu/Makefile.features
@@ -1,4 +1,5 @@
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_MCU_GROUP = arm7
5 changes: 5 additions & 0 deletions boards/pttu/include/board.h
Expand Up @@ -59,6 +59,11 @@ void bl_init_clks(void);
#define STDIO_RX_BUFSIZE (64U)
/** @} */

/**
* @brief Deprecated HW_TIMER definition (to be removed)
*/
#define HW_TIMER TIMER_DEV(0)

/**
* @name dummy-defines for LEDs
* @{
Expand Down
16 changes: 16 additions & 0 deletions boards/pttu/include/periph_conf.h
Expand Up @@ -25,6 +25,22 @@
extern "C" {
#endif

/**
* @brief Clock configuration
* @{
*/
#define CLOCK_CORECLOCK (72000000U) /* the msba2 runs with 72MHz */

#define CLOCK_PCLK (CLOCK_CORECLOCK)
/** @} */

/**
* @brief Timer configuration, select a number from 1 to 4
* @{
*/
#define TIMER_NUMOF (1U)
/** @} */

/**
* @brief PWM device and pinout configuration
*/
Expand Down
2 changes: 1 addition & 1 deletion cpu/lpc2387/Makefile.include
Expand Up @@ -2,4 +2,4 @@ INCLUDES += -I$(RIOTCPU)/lpc2387/include

include $(RIOTCPU)/arm7_common/Makefile.include

USEMODULE += arm7_common periph periph_common bitfield newlib
USEMODULE += arm7_common periph periph_common bitfield newlib hwtimer_compat
206 changes: 0 additions & 206 deletions cpu/lpc2387/hwtimer_cpu.c

This file was deleted.

0 comments on commit ea4fb69

Please sign in to comment.