aboutsummaryrefslogtreecommitdiffstats
path: root/lab3
diff options
context:
space:
mode:
authorDivyansh Manocha <dan12n@users.noreply.github.com>2018-01-20 18:45:19 +0000
committerGitHub <noreply@github.com>2018-01-20 18:45:19 +0000
commit578ef51b9e5dbe405f6da43b70b970a1a0256ece (patch)
tree0dce71014b88aa5de5c54f3dd05617aba8b511a6 /lab3
parent8c513dec2919c808c28361d499d757241a1c2cbb (diff)
downloadNoiseSilencer-578ef51b9e5dbe405f6da43b70b970a1a0256ece.tar.gz
NoiseSilencer-578ef51b9e5dbe405f6da43b70b970a1a0256ece.zip
Added Comments
Diffstat (limited to 'lab3')
-rw-r--r--lab3/RTDSP/intio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lab3/RTDSP/intio.c b/lab3/RTDSP/intio.c
index 5493cb7..3dbd01f 100644
--- a/lab3/RTDSP/intio.c
+++ b/lab3/RTDSP/intio.c
@@ -147,7 +147,7 @@ void init_HWI(void)
}
-/******************** WRITE YOUR INTERRUPT SERVICE ROUTINE HERE***********************/
+//Populates the table with appropriate sine values
void sine_init(void)
{
int i;
@@ -157,6 +157,7 @@ void sine_init(void)
}
}
+//Returns the sample according to the sampling frequency
float sinegen(void)
{
unsigned sample_index = sine_phase_ind * sine_freq * SINE_TABLE_SIZE / sampling_freq;
@@ -165,6 +166,8 @@ float sinegen(void)
return table[sample_index];
}
+/******************** INTERRUPT SERVICE ROUTINE ***********************/
+
/********************************** Ex2 ***************************************/
void ISR_AIC(void)
{