protect macro calculation

This commit is contained in:
King Kévin 2016-04-30 12:35:53 +02:00
parent a82d3dc9ef
commit f16994617c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
* @note comment out SQUARE_WAVE_TICS to not disable feature
* @{
*/
#define SQUARE_WAVE_TICKS SQUARE_WAVE_FREQUENCY/256 /**< number of square wave tics before setting rtc_tic_flag */
#define SQUARE_WAVE_TICKS (SQUARE_WAVE_FREQUENCY/256) /**< number of square wave tics before setting rtc_tic_flag */
#define SQUARE_WAVE_FREQUENCY 4096 /**< square wave output frequency from the RTC IC */
#define SQUARE_WAVE_TIMER TIM2 /**< timer peripheral */
#define SQUARE_WAVE_TIMER_RCC RCC_TIM2 /**< timer peripheral clock */