diff options
author | Divyansh Manocha <dan12n@users.noreply.github.com> | 2018-01-20 18:45:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 18:45:19 +0000 |
commit | 578ef51b9e5dbe405f6da43b70b970a1a0256ece (patch) | |
tree | 0dce71014b88aa5de5c54f3dd05617aba8b511a6 /lab3 | |
parent | 8c513dec2919c808c28361d499d757241a1c2cbb (diff) | |
download | NoiseSilencer-578ef51b9e5dbe405f6da43b70b970a1a0256ece.tar.gz NoiseSilencer-578ef51b9e5dbe405f6da43b70b970a1a0256ece.zip |
Added Comments
Diffstat (limited to 'lab3')
-rw-r--r-- | lab3/RTDSP/intio.c | 5 |
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) { |