Code source pour le BE-CHTI de l'année 2020-2021
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.

principal.c 768B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "DriverJeuLaser.h"
  2. //short int = 16 bit signé
  3. //char = 8 bit non signé (0 à 255)
  4. extern int DFT_ModuleAuCarre(short int*, char);
  5. extern short int LeSignal;
  6. int res[64];
  7. int main(void)
  8. {
  9. // ===========================================================================
  10. // ============= INIT PERIPH (faites qu'une seule fois) =====================
  11. // ===========================================================================
  12. // Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers
  13. CLOCK_Configure();
  14. char k;
  15. for(k=0;k<64;k++){
  16. res[k] = DFT_ModuleAuCarre(&LeSignal, k);
  17. }
  18. //============================================================================
  19. while (1)
  20. {
  21. }
  22. }