Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit fe6d34d

Browse files
committed
Initial updates for R2019a
Signed-off-by: Travis Collins <[email protected]>
1 parent 7e4d7f5 commit fe6d34d

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

+adi/+common/DDS.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
methods (Hidden, Access=protected)
5252

5353
function ToggleDDS(obj,value)
54-
chanPtr = getChan(obj,'altvoltage0',true);
54+
chanPtr = getChan(obj,obj.iioDev,'altvoltage0',true);
5555
iio_channel_attr_write_bool(obj,chanPtr,'raw',value);
5656
end
5757

@@ -60,7 +60,7 @@ function DDSUpdate(obj)
6060
for g=1:obj.channelCount/2
6161
for k=1:4
6262
id = sprintf('altvoltage%d',k-1);
63-
chanPtr = getChan(obj,id,true);
63+
chanPtr = getChan(obj,obj.iioDev,id,true);
6464
iio_channel_attr_write_double(obj,chanPtr,'frequency',obj.DDSFrequencies(g,k));
6565
iio_channel_attr_write_double(obj,chanPtr,'scale',obj.DDSScales(g,k));
6666
iio_channel_attr_write_double(obj,chanPtr,'phase',obj.DDSPhases(g,k));

+adi/+common/RxTx.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function releaseChanBuffers(obj)
8484
% Disable the channels
8585
if obj.enabledChannels
8686
for k=1:obj.channelCount
87-
disableChannel(obj, obj.channel_names{k}, obj.isOutput);
87+
disableChannel(obj, obj.iioDev, obj.channel_names{k}, obj.isOutput);
8888
end
8989
obj.enabledChannels = false;
9090
end
@@ -101,7 +101,7 @@ function releaseChanBuffers(obj)
101101

102102
% Enable the channel(s)
103103
for k=1:obj.channelCount
104-
enableChannel(obj, obj.channel_names{k}, obj.isOutput);
104+
enableChannel(obj, obj.iioDev, obj.channel_names{k}, obj.isOutput);
105105
end
106106
obj.enabledChannels = true;
107107

.gitlab-ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build:2018_R1:
1111
- matlab
1212
stage: build
1313
script:
14+
- export MLRELEASE=R2019a
1415
- ./CI/scripts/dockermake build
1516
- ./CI/scripts/dockermake add_libad9361
1617
- ./CI/scripts/dockermake gen_tlbx
@@ -31,7 +32,7 @@ build:master:
3132
stage: build
3233
script:
3334
- export HDLBRANCH=hdl_2018_r2
34-
- export MLRELEASE=R2018b
35+
- export MLRELEASE=R2019a
3536
- ./CI/scripts/dockermake build
3637
- export HDLBRANCH=
3738
- export MLRELEASE=
@@ -49,6 +50,7 @@ test:2018_R1:
4950
dependencies:
5051
- build:2018_R1
5152
script:
53+
- export MLRELEASE=R2019a
5254
- ./CI/scripts/dockermake test
5355
- ./CI/scripts/dockermake zip
5456
artifacts:
@@ -68,6 +70,7 @@ test_installer:2018_R1_Installer:
6870
dependencies:
6971
- build:2018_R1
7072
script:
73+
- export MLRELEASE=R2019a
7174
- cp mltbx/* .
7275
- pwd
7376
- ls
@@ -91,6 +94,7 @@ test:2018_R1:
9194
dependencies:
9295
- build:2018_R1
9396
script:
97+
- export MLRELEASE=R2019a
9498
- ./CI/scripts/dockermake test
9599
- ./CI/scripts/dockermake zip
96100
artifacts:
@@ -110,6 +114,7 @@ test:targeting_demos:
110114
dependencies:
111115
- build:2018_R1
112116
script:
117+
- export MLRELEASE=R2019a
113118
- ./CI/scripts/dockermake test_targeting_demos
114119
artifacts:
115120
when: always
@@ -127,6 +132,7 @@ test_hardware:Streaming_Hardware:
127132
dependencies:
128133
- build:2018_R1
129134
script:
135+
- export MLRELEASE=R2019a
130136
- cd CI/scripts
131137
- make test_streaming
132138
artifacts:
@@ -145,6 +151,7 @@ test_hardware:EVM_Hardware:
145151
dependencies:
146152
- build:2018_R1
147153
script:
154+
- export MLRELEASE=R2019a
148155
- cd CI/scripts
149156
- make test_evm
150157
artifacts:

CI/scripts/bsp.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ mltbx/*
6060
<param.matlabpath.excludes />
6161
<param.javaclasspath.excludes />
6262
<param.exported.on.package>false</param.exported.on.package>
63-
<param.release.start>R2018b</param.release.start>
64-
<param.release.end>R2018b</param.release.end>
63+
<param.release.start>__ML-RELEASE__</param.release.start>
64+
<param.release.end>__ML-RELEASE__</param.release.end>
6565
<param.release.current.only>true</param.release.current.only>
6666
<param.compatiblity.windows>true</param.compatiblity.windows>
6767
<param.compatiblity.macos>false</param.compatiblity.macos>
@@ -116,7 +116,7 @@ mltbx/*
116116
</build-deliverables>
117117
<workflow />
118118
<matlab>
119-
<root>/usr/local/MATLAB/R2018b</root>
119+
<root>/usr/local/MATLAB/__ML-RELEASE__</root>
120120
<toolboxes>
121121
<toolbox name="matlabcoder" />
122122
<toolbox name="embeddedcoder" />

CI/scripts/genTlbx.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
version = '18.2.1';
2+
version = '19.1';
3+
ml = ver('MATLAB');
4+
ml = ml.Release(2:end-1);
35

46
%%
57
cd(fileparts((mfilename('fullpath'))));
@@ -13,6 +15,7 @@
1315

1416
f = strrep(f,'__REPO-ROOT__',p);
1517
f = strrep(f,'__VERSION__',version);
18+
f = strrep(f,'__ML-RELEASE__',ml);
1619

1720
fid = fopen('../../bsp.prj','w');
1821
fprintf(fid,'%s',f);

0 commit comments

Comments
 (0)