aboutsummaryrefslogtreecommitdiffstats
path: root/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2018-02-15 12:04:58 +0000
committerymherklotz <ymherklotz@gmail.com>2018-02-15 12:04:58 +0000
commitf7552f668de19e0341ac94bbc9c1ee7f502c230f (patch)
tree3d7c3f0548c65665ebc1eb0d2000599f8c7f689f /lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c
parentc2cea2844c962f349673e488183e6606b0a76e7b (diff)
downloadNoiseSilencer-f7552f668de19e0341ac94bbc9c1ee7f502c230f.tar.gz
NoiseSilencer-f7552f668de19e0341ac94bbc9c1ee7f502c230f.zip
removing .metadata
Diffstat (limited to 'lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c')
-rw-r--r--lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30d9714c7506001814daa3a49c232c181
-rw-r--r--lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/b01c90f77406001814daa3a49c232c18157
-rw-r--r--lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/d0d3fe2ddf0100181ce89bcacea457860
-rw-r--r--lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/e0245e173f070018153483e962c7925e98
4 files changed, 0 insertions, 256 deletions
diff --git a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30d9714c7506001814daa3a49c232c18 b/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30d9714c7506001814daa3a49c232c18
deleted file mode 100644
index b4748f5..0000000
--- a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/30d9714c7506001814daa3a49c232c18
+++ /dev/null
@@ -1 +0,0 @@
-"../dsp_bios_.tcf" "../intio.c" \ No newline at end of file
diff --git a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/b01c90f77406001814daa3a49c232c18 b/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/b01c90f77406001814daa3a49c232c18
deleted file mode 100644
index 3f1fdbc..0000000
--- a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/b01c90f77406001814daa3a49c232c18
+++ /dev/null
@@ -1,157 +0,0 @@
-/*************************************************************************************
- DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING
- IMPERIAL COLLEGE LONDON
-
- EE 3.19: Real Time Digital Signal Processing
- Dr Paul Mitcheson and Daniel Harvey
-
- LAB 3: Interrupt I/O
-
- ********* I N T I O. C **********
-
- Demonstrates inputing and outputing data from the DSK's audio port using interrupts.
-
- *************************************************************************************
- Updated for use on 6713 DSK by Danny Harvey: May-Aug 2006
- Updated for CCS V4 Sept 10
- ************************************************************************************/
-/*
- * You should modify the code so that interrupts are used to service the
- * audio port.
- */
-/**************************** Pre-processor statements ******************************/
-
-#include <stdlib.h>
-// Included so program can make use of DSP/BIOS configuration tool.
-#include "dsp_bios_cfg.h"
-
-/* The file dsk6713.h must be included in every program that uses the BSL. This
- example also includes dsk6713_aic23.h because it uses the
- AIC23 codec module (audio interface). */
-#include "dsk6713.h"
-#include "dsk6713_aic23.h"
-
-// math library (trig functions)
-#include <math.h>
-
-// Some functions to help with writing/reading the audio ports when using interrupts.
-#include <helper_functions_ISR.h>
-#include "Matlab/filter_coeff.txt"
-// Some functions to help with configuring hardware
-#include "helper_functions_polling.h"
-
-
-// PI defined here for use in your code
-#define PI 3.141592653589793
-#define N 249
-double buffer[N];
-unsigned int ptr = N-1;
-
-/******************************* Global declarations ********************************/
-
-/* Audio port configuration settings: these values set registers in the AIC23 audio
- interface to configure it. See TI doc SLWS106D 3-3 to 3-10 for more info. */
-DSK6713_AIC23_Config Config = { \
- /**********************************************************************/
- /* REGISTER FUNCTION SETTINGS */
- /**********************************************************************/\
- 0x0017, /* 0 LEFTINVOL Left line input channel volume 0dB */\
- 0x0017, /* 1 RIGHTINVOL Right line input channel volume 0dB */\
- 0x01f9, /* 2 LEFTHPVOL Left channel headphone volume 0dB */\
- 0x01f9, /* 3 RIGHTHPVOL Right channel headphone volume 0dB */\
- 0x0011, /* 4 ANAPATH Analog audio path control DAC on, Mic boost 20dB*/\
- 0x0000, /* 5 DIGPATH Digital audio path control All Filters off */\
- 0x0000, /* 6 DPOWERDOWN Power down control All Hardware on */\
- 0x0043, /* 7 DIGIF Digital audio interface format 16 bit */\
- 0x008d, /* 8 SAMPLERATE Sample rate control 8 KHZ */\
- 0x0001 /* 9 DIGACT Digital interface activation On */\
- /**********************************************************************/
-};
-
-
-// Codec handle:- a variable used to identify audio interface
-DSK6713_AIC23_CodecHandle H_Codec;
-
- /******************************* Function prototypes ********************************/
-void init_hardware(void);
-void init_HWI(void);
-void ISR_AIC(void);
-short non_circ_fir(void);
-/********************************** Main routine ************************************/
-void main(){
- // initialize board and the audio port
- init_hardware();
-
- /* initialize hardware interrupts */
- init_HWI();
-
- /* loop indefinitely, waiting for interrupts */
- while(1) {};
-}
-
-/********************************** init_hardware() **********************************/
-void init_hardware()
-{
- // Initialize the board support library, must be called first
- DSK6713_init();
-
- // Start the AIC23 codec using the settings defined above in config
- H_Codec = DSK6713_AIC23_openCodec(0, &Config);
-
- /* Function below sets the number of bits in word used by MSBSP (serial port) for
- receives from AIC23 (audio port). We are using a 32 bit packet containing two
- 16 bit numbers hence 32BIT is set for receive */
- MCBSP_FSETS(RCR1, RWDLEN1, 32BIT);
-
- /* Configures interrupt to activate on each consecutive available 32 bits
- from Audio port hence an interrupt is generated for each L & R sample pair */
- MCBSP_FSETS(SPCR1, RINTM, FRM);
-
- /* These commands do the same thing as above but applied to data transfers to
- the audio port */
- MCBSP_FSETS(XCR1, XWDLEN1, 32BIT);
- MCBSP_FSETS(SPCR1, XINTM, FRM);
-}
-
-/********************************** init_HWI() **************************************/
-void init_HWI()
-{
- IRQ_globalDisable(); // Globally disables interrupts
- IRQ_nmiEnable(); // Enables the NMI interrupt (used by the debugger)
- IRQ_map(IRQ_EVT_RINT1,4); // Maps an event to a physical interrupt
- IRQ_enable(IRQ_EVT_RINT1); // Enables the event
- IRQ_globalEnable(); // Globally enables interrupts
-}
-
-/******************** INTERRUPT SERVICE ROUTINE ***********************/
-void ISR_AIC()
-{
- unsigned int i;
- short sample_in, sample_out;
-
- sample_in = mono_read_16Bit();
-
- if (ptr < 0)
- ptr = N-1
-
- buffer[ptr] = (float) sample_in / 32767.f;
-
- sample_out = non_circ_fir();
-
- mono_write_16Bit(sample_out);
-// mono_write_16Bit(sample_in);
-}
-
-// Perform linear convolution
-short non_circ_fir()
-{
-
- double y = 0;
- int M, i;
- M = sizeof(b) / sizeof(b[0]);
- for(i = 0; i < N; i++) {
- y += x[i] * b[M-i-1];
- }
- return y*32767;
-}
-
diff --git a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/d0d3fe2ddf0100181ce89bcacea45786 b/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/d0d3fe2ddf0100181ce89bcacea45786
deleted file mode 100644
index e69de29..0000000
--- a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/d0d3fe2ddf0100181ce89bcacea45786
+++ /dev/null
diff --git a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/e0245e173f070018153483e962c7925e b/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/e0245e173f070018153483e962c7925e
deleted file mode 100644
index 89864cb..0000000
--- a/lab4/.metadata/.plugins/org.eclipse.core.resources/.history/8c/e0245e173f070018153483e962c7925e
+++ /dev/null
@@ -1,98 +0,0 @@
-################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-C67_SRCS :=
-S_UPPER_SRCS :=
-CMD_UPPER_SRCS :=
-LIB_SRCS :=
-OBJ_SRCS :=
-C55_SRCS :=
-C_SRCS :=
-A_SRCS :=
-CPP_SRCS :=
-O_SRCS :=
-LD_SRCS :=
-TCF_SRCS :=
-ASM_SRCS :=
-CXX_SRCS :=
-ASM_UPPER_SRCS :=
-OPT_SRCS :=
-C43_SRCS :=
-C64_SRCS :=
-S62_SRCS :=
-S55_SRCS :=
-CMD_SRCS :=
-S67_SRCS :=
-C++_SRCS :=
-SA_SRCS :=
-S64_SRCS :=
-C_UPPER_SRCS :=
-S??_SRCS :=
-S43_SRCS :=
-C62_SRCS :=
-TCF_UPPER_SRCS :=
-S_SRCS :=
-C??_SRCS :=
-CC_SRCS :=
-GEN_SRCS :=
-S62_DEPS :=
-GEN_CMDS :=
-ASM_DEPS :=
-C55_DEPS :=
-C6000_EXECUTABLE_OUTPUTS :=
-S_UPPER_DEPS :=
-S_DEPS :=
-CPP_DEPS :=
-C64_DEPS :=
-C43_DEPS :=
-C62_DEPS :=
-OBJS :=
-C??_DEPS :=
-S??_DEPS :=
-S55_DEPS :=
-C_DEPS :=
-C_UPPER_DEPS :=
-SA_DEPS :=
-C++_DEPS :=
-CC_DEPS :=
-S64_DEPS :=
-CXX_DEPS :=
-S43_DEPS :=
-S67_DEPS :=
-C67_DEPS :=
-ASM_UPPER_DEPS :=
-OPT_DEPS :=
-S62_DEPS__QTD :=
-OBJS__QTD :=
-C64_DEPS__QTD :=
-ASM_DEPS__QTD :=
-C62_DEPS__QTD :=
-C_UPPER_DEPS__QTD :=
-S??_DEPS__QTD :=
-GEN_CMDS__QTD :=
-S55_DEPS__QTD :=
-S64_DEPS__QTD :=
-C55_DEPS__QTD :=
-C67_DEPS__QTD :=
-GEN_SRCS__QTD :=
-CPP_DEPS__QTD :=
-C43_DEPS__QTD :=
-C_DEPS__QTD :=
-S43_DEPS__QTD :=
-C6000_EXECUTABLE_OUTPUTS__QTD :=
-CC_DEPS__QTD :=
-S67_DEPS__QTD :=
-OPT_DEPS__QTD :=
-S_UPPER_DEPS__QTD :=
-C??_DEPS__QTD :=
-CXX_DEPS__QTD :=
-C++_DEPS__QTD :=
-S_DEPS__QTD :=
-SA_DEPS__QTD :=
-ASM_UPPER_DEPS__QTD :=
-
-# Every subdirectory with source files must be described here
-SUBDIRS := \
-. \
-