summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-13 20:30:02 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-13 20:30:02 +0200
commit7f3a3ca4095286a6a995cde423375c1da8064bfb (patch)
treeeb6d842f4a479e54ec8ab797946d0ba2c851307b /firmware/drivers
parent0a618e37524a948ff78b5aa0d0d924176c7e6ebb (diff)
Add comment on CCLK.
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/i2s.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/i2s.h b/firmware/drivers/i2s.h
index 386476e..8107e30 100644
--- a/firmware/drivers/i2s.h
+++ b/firmware/drivers/i2s.h
@@ -37,9 +37,10 @@ void i2s_set_power(int power);
/**
* Clock selection mode. See table 41, pg. 57.
+ * CCLK is the CPU clock rate (ie. 100Mhz on LPC1768)
*/
typedef enum {
- I2S_CCLK_4 = 0b00, ///< PCLK_peripheral = CCLK/4
+ I2S_CCLK_4 = 0b00, ///< PCLK_peripheral = CCLK/4 (default)
I2S_CCLK = 0b01, ///< PCLK_peripheral = CCLK
I2S_CCLK_2 = 0b10, ///< PCLK_peripheral = CCLK/2
I2S_CCLK_8 = 0b11, ///< PCLK_peripheral = CCLK/8