diff options
Diffstat (limited to 'lab3/RTDSP')
-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) { |