chti23_grpe_genty_pitault/soft/PjtKEIL_StepDFT/Src/principal.c
2023-05-22 11:18:06 +02:00

37 lines
877 B
C

#include "DriverJeuLaser.h"
extern int DFT_ModuleAuCarre(short int* Signal64ech, char k);
extern int DFT_PartieReelle(short int* Signal64ech, char k);
extern int DFT_PartieImaginaire(short int* Signal64ech, char k);
extern int16_t LeSignal;
unsigned int test = 0;
unsigned int test2 = 0;
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();
//============================================================================
int once = 1;
while (1)
{
if (once) {
once = 0;
for (int i = 0; i < 64; i++)
test = DFT_ModuleAuCarre(&LeSignal, i);
}
}
}