Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freshhope committed Feb 19, 2018
0 parents commit 13e3fe9
Show file tree
Hide file tree
Showing 8 changed files with 1,761 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
Binary file added Filter/IIR_Filter_int32.slx
Binary file not shown.
Binary file added Filter/Test_PIL_IIR_Filter.slx
Binary file not shown.
28 changes: 28 additions & 0 deletions Filter/iir_startup.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
% IIR_STARTUP.M file for stm32F2xx models
%
% $ iir_startup.m 2009-05-14 dlange $

%here = fileparts(mfilename('fullpath'));
%STM32F4xx = fullfile(here,'CodeGeneration','STM32F4xx');

% path:
%addpath(fullfile(STM32F2xx,'blocks'),'-end')
%addpath(fullfile(STM32F2xx,'str9comStick'),'-end')
%addpath(fullfile(STM32F2xx,'IAR_Ewarm','Settings'),'-end')

% read in data from file testdata.txt as input to the model
fid = fopen('testdata.txt','rt');
testdata = cell2mat(textscan(fid, '%f\n','headerlines',3));
fclose(fid);

% parameter values for gain b0 and gain a1
a1 = 0.9;
b0 = 0.1;

% create time vector for input values
t = linspace(0,1,1001)';

% clear temporary variables
clear ans fid here STM32F4xx

% [EOF]: iir_startup.m
Loading

0 comments on commit 13e3fe9

Please sign in to comment.