diff options
| author | onelife.real <[email protected]> | 2011-06-20 01:56:28 +0000 |
|---|---|---|
| committer | onelife.real <[email protected]> | 2011-06-20 01:56:28 +0000 |
| commit | 69ad018bc04639dd295de0005dc128b99721064f (patch) | |
| tree | 64dd0b0235b9d81c38a2c1818456cb036b4f9ce5 /bsp/efm32/drv_timer.h | |
| parent | 1eca19cb01309eaddbdc42cb12c17f1425124800 (diff) | |
*** EFM32 branch ***
1. Add SD card driver (SPI mode)
2. Add ELM ChaN FatFs support (Please read "Readme.txt")
- Warning: FatFs is really FAT! (35KB)
3. Upgrade EFM32 libraries (CMSIS and efm32lib) to version 2.0.0
4. Merge all of the C source code in "libcpu\arm\cortex-m3\" into "cpuport.c"
5. Merge all of the assembly source code in "libcpu\arm\cortex-m3\" into "context_gcc.S" (except "start_gcc.S")
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1525 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/efm32/drv_timer.h')
| -rw-r--r-- | bsp/efm32/drv_timer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bsp/efm32/drv_timer.h b/bsp/efm32/drv_timer.h index e125418967..b9c41794fb 100644 --- a/bsp/efm32/drv_timer.h +++ b/bsp/efm32/drv_timer.h @@ -34,7 +34,10 @@ struct efm32_timer_control_t /* Exported constants ---------------------------------------------------------*/
/* Exported macro -------------------------------------------------------------*/
-#define TMR_CFG_PRESCALER timerPrescale1024
+#define TMR_MODE_ONESHOT (true)
+#define TMR_MODE_CONTINUOUS (false)
+
+#define TMR_CFG_PRESCALER timerPrescale1024
/* Exported functions --------------------------------------------------------- */
void rt_hw_timer_init(void);
|
