protect macro calculation
This commit is contained in:
parent
a82d3dc9ef
commit
f16994617c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue