forked from KutningJo/signal_processing_vorlage
begonnene Arbeit Prozess idee fertig, nur code ausarbeiten
This commit is contained in:
1 parent
c90753aa23
commit
518bc0e975
154 files changed
+21747
-1
No files matched your search
@@ -5,7 +5,17 @@
|
||||
int task_add_run( void * task ) {
|
||||
|
||||
// TODO
|
||||
add_config * config = (add_config *) task;
|
||||
for( uint32_t i = 0; i < DATA_CHANNEL_DEPTH; ++i) {
|
||||
float sin1;
|
||||
float sin2;
|
||||
float_word sin_add;
|
||||
data_channel_read(config->sources[0], (uint32_t *) &sin1);
|
||||
data_channel_read(config->sources[1], (uint32_t *) &sin2);
|
||||
sin_add.value = sin1 + sin2;
|
||||
|
||||
data_channel_write(config->sink, sin_add.word);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user