/*******************************************************************************
* Project:      Amped'RF Bluetooth
* File name:    TM_TimerControl.c
* Author:       Bill Colias
* Created:      12/20/2008
* Description:
*    Define timer values
*
* Copyright (c) 2008 Amped'RF Inc. All rights reserved.
*******************************************************************************/
#ifndef TM_SYSTEM_RESOURCE_H
#define TM_SYSTEM_RESOURCE_H

#if defined(STM32F10x)
#define TM_TICKS_PER_SECOND         (20000)
#define TM_TICKS_PER_MILLISECOND    (TM_TICKS_PER_SECOND/1000)
#define TM_MS_TICKS                 TM_TICKS_PER_MILLISECOND

#elif defined(STM32F2xx)
#define TM_TICKS_PER_SECOND         (4000)
#define TM_TICKS_PER_MILLISECOND    (TM_TICKS_PER_SECOND/1000)
#define TM_MS_TICKS                 TM_TICKS_PER_MILLISECOND

#elif defined(STM32F4xx)
#define TM_TICKS_PER_SECOND         (4000)
#define TM_TICKS_PER_MILLISECOND    (TM_TICKS_PER_SECOND/1000)
#define TM_MS_TICKS                 TM_TICKS_PER_MILLISECOND
#endif

#endif //TM_SYSTEM_RESOURCE_H
