debug_test.cpp 670 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. extern "C" {
  2. extern void debug_test();
  3. }
  4. #include "allocator.h"
  5. #include <dsppp/fixed_point.hpp>
  6. #include <dsppp/matrix.hpp>
  7. #include <iostream>
  8. #include <cmsis_tests.h>
  9. #include "dsp/basic_math_functions.h"
  10. using namespace arm_cmsis_dsp;
  11. extern Q15 external_debug(const PVector<Q15,16> &a0,
  12. const PVector<Q15,16> &a1,
  13. const PVector<Q15,16> &a2,
  14. const PVector<Q15,16> &a3,
  15. const PVector<Q15,16> &b,
  16. int l);
  17. template<typename T,int NB>
  18. static void test()
  19. {
  20. PrintType<vector_traits<Q15>>();
  21. }
  22. void debug_test()
  23. {
  24. title<Q15>("Debug test");
  25. test<Q15,NBVEC_16>();
  26. }