Erfolgreiche Bearbeitung der ersten Praktikumsaufgabe add und Erstellung der Struktur und Lookuptable für sine

This commit is contained in:
bleichda78620
2024-11-20 11:33:53 +01:00
parent 0d1b73e3e0
commit ab82ab9395
210 changed files with 25108 additions and 12 deletions
+10 -1
View File
@@ -5,7 +5,16 @@
int task_add_run( void * task ) {
// TODO
add_config* config = (add_config*) task;
for(uint32_t i = 0; i < DATA_CHANNEL_DEPTH; i++)
{
float a, b;
float_word c;
data_channel_read(config->sources[0], (uint32_t*)&a);
data_channel_read(config->sources[1], (uint32_t*)&b);
c.value = a + b;
data_channel_write(config->sink, c.word);
}
return 0;
}