[AJOUT] premier commit + ajout des fonctions init_Timer_RoueGauche et init_Timer_RoueDroite prochaine étape controle du capteur Ultrasons
This commit is contained in:
33
Code/Src/main.c
Normal file
33
Code/Src/main.c
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : main.c
|
||||
* @author : Auto-generated by STM32CubeIDE
|
||||
* @brief : Main program body
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* Copyright (c) 2026 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <config.h>
|
||||
#if !defined(__SOFT_FP__) && defined(__ARM_FP)
|
||||
#warning "FPU is not initialized, but the project is compiling for an FPU. Please initialize the FPU before use."
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
{
|
||||
motor_init();
|
||||
|
||||
init_Timer_RoueDroit(AVANCE, 0);
|
||||
init_Timer_RoueGauche(AVANCE, 0);
|
||||
/* Loop forever */
|
||||
for(;;);
|
||||
}
|
||||
Reference in New Issue
Block a user