Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

task_add.c 687B

1234567891011121314151617181920212223242526
  1. #include "task_add.h"
  2. #include "data_channel.h"
  3. #include <stdio.h>
  4. #include <system.h>
  5. add_config ADD_SINE_COSINE_CONFIG = {
  6. .name = "add_sine_cosine",
  7. .binding = BINDING_SW,
  8. .software = task_add_run,
  9. .configure = NULL,
  10. .hardware = HARDWARE_TASK_3_BASE,
  11. .sources = { DATA_CHANNEL_0_BASE, DATA_CHANNEL_1_BASE },
  12. .sink = DATA_CHANNEL_3_BASE,
  13. .cycle_count = 0 };
  14. add_config ADD_RAND_CONFIG = {
  15. .name = "add_rand",
  16. .binding = BINDING_SW,
  17. .software = task_add_run,
  18. .configure = NULL,
  19. .hardware = HARDWARE_TASK_4_BASE,
  20. .sources = { DATA_CHANNEL_2_BASE, DATA_CHANNEL_3_BASE },
  21. .sink = DATA_CHANNEL_4_BASE,
  22. .cycle_count = 0 };