Use more defines when using main clock or master clock

This commit is contained in:
Philippe Teuwen 2019-08-06 13:40:08 +02:00
commit 8b3159c83d
6 changed files with 11 additions and 8 deletions

View file

@ -17,6 +17,10 @@
#include "pm3_cmd.h"
#include "common.h"
// Check bootrom.c for actual clock settings
#define MAINCK 16000000
#define MCK (4 * MAINCK)
#define WDT_HIT() AT91C_BASE_WDTC->WDTC_WDCR = 0xa5000001
#define PWM_CH_MODE_PRESCALER(x) ((x) << 0)