forked from acco/chti23
35 lines
771 B
C
35 lines
771 B
C
|
|
#define MSURDEUX 32
|
|
#include "DriverJeuLaser.h"
|
|
#include <stdio.h>
|
|
|
|
int DFT_ModuleAuCarre( short int * Signal64ech, char k);
|
|
|
|
extern short int LeSignal;
|
|
|
|
int tab [MSURDEUX];
|
|
|
|
int main(void)
|
|
{
|
|
|
|
// ===========================================================================
|
|
// ============= INIT PERIPH (faites qu'une seule fois) =====================
|
|
// ===========================================================================
|
|
|
|
// Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers
|
|
//CLOCK_Configure();
|
|
|
|
//============================================================================
|
|
|
|
for (int i=0;i<MSURDEUX-1;i++)
|
|
{
|
|
char k = (char)i+1;
|
|
tab[i]= DFT_ModuleAuCarre( &LeSignal, k);
|
|
//printf("k=%d : %d \n",i,tab[i]);
|
|
}
|
|
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
|