BE-CHTI-2020.2021/PjtKEIL_StepDFT/Src/principal.c

39 lines
768 B
C
Executable file

#include "DriverJeuLaser.h"
//short int = 16 bit signé
//char = 8 bit non signé (0 à 255)
extern int DFT_ModuleAuCarre(short int*, char);
extern short int LeSignal;
int res[64];
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();
char k;
for(k=0;k<64;k++){
res[k] = DFT_ModuleAuCarre(&LeSignal, k);
}
//============================================================================
while (1)
{
}
}