From bd2c299a5cca8d87528b78da9198775b4868cddd Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Tue, 21 Feb 2012 14:05:55 +0000 Subject: [PATCH] Added optional channelend argument --- module_usb_aud_shared/clocking/clocking.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/module_usb_aud_shared/clocking/clocking.h b/module_usb_aud_shared/clocking/clocking.h index 88fc786b..5d7d8f9e 100644 --- a/module_usb_aud_shared/clocking/clocking.h +++ b/module_usb_aud_shared/clocking/clocking.h @@ -4,11 +4,15 @@ /* Functions that handle master clock generation. These need modifying for an existing design */ -/* Any initialisation required for master clock generation - run once at start up */ -void ClockingInit(void); +/* Any initialisation required for master clock generation - run once at start up + * An optional chanend is passed for communcation to another thread e.g. a I2C server thread + */ +void ClockingInit(chanend ?c); -/* Configuration for a specific master clock frequency - run every sample frequency change */ -void ClockingConfig(unsigned mClkFreq); +/* Configuration for a specific master clock frequency - run every sample frequency change +* An optional chanend is passed for communcation to another thread e.g. a I2C server thread + */ +void ClockingConfig(unsigned mClkFreq, chanend ?c); /** Clock generation and digital audio I/O handling.