Skip to content

Commit

Permalink
cpu/nrf51822: fixed timers
Browse files Browse the repository at this point in the history
- changed TIMER_0 to be a 24-bit timer -> see Nordic PAN #32
- cleaned up timer initialization code
- added check if an interrupt channel was active
  • Loading branch information
haukepetersen committed Nov 12, 2014
1 parent d4269b6 commit a0685ea
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 167 deletions.
6 changes: 3 additions & 3 deletions cpu/nrf51822/include/hwtimer_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
/**
* @ingroup cpu_nrf51822
* @{
*
*
* @file
* @brief CPU specific hwtimer configuration options
*
*
* @author Hauke Petersen <hauke.peterse@fu-berlin.de>
*/

Expand All @@ -26,7 +26,7 @@
#define HWTIMER_MAXTIMERS 3 /**< the CPU implementation supports 3 HW timers */

#define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS (0xFFFFFFFF) /**< 32-bit timer */
#define HWTIMER_MAXTICKS (0xFFFFFF) /**< 24-bit timer -> see PAN note */
/** @} */


Expand Down
Loading

0 comments on commit a0685ea

Please sign in to comment.