diff options
Diffstat (limited to 'firmware/target/arm/as3525/clock-target.h')
-rw-r--r-- | firmware/target/arm/as3525/clock-target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/clock-target.h b/firmware/target/arm/as3525/clock-target.h index 21fd4c65d2..f4b223cdff 100644 --- a/firmware/target/arm/as3525/clock-target.h +++ b/firmware/target/arm/as3525/clock-target.h | |||
@@ -63,5 +63,8 @@ | |||
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #define AS3525_SD_IDENT_FREQ 400000 /* must be between 100 & 400 kHz */ | 65 | #define AS3525_SD_IDENT_FREQ 400000 /* must be between 100 & 400 kHz */ |
66 | #if ((CLK_DIV(AS3525_PCLK_FREQ, AS3525_SD_IDENT_FREQ) / 2) - 1) >= (1<<8) /* 8 bits */ | ||
67 | #error SD IDENTIFICATION frequency is too low : clock divider will not fit ! | ||
68 | #endif | ||
66 | 69 | ||
67 | #endif /* CLOCK_TARGET_H */ | 70 | #endif /* CLOCK_TARGET_H */ |