[AJOUT] premier commit + ajout des fonctions init_Timer_RoueGauche et init_Timer_RoueDroite prochaine étape controle du capteur Ultrasons
This commit is contained in:
37
Code/Inc/config.h
Normal file
37
Code/Inc/config.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* config.h
|
||||
*
|
||||
* Created on: 28 mai 2026
|
||||
* Author: innotex
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_H_
|
||||
#define CONFIG_H_
|
||||
#include "stm32f446xx.h"
|
||||
|
||||
#define INIT_MODDER_MOTOR_PBA 0x00100000
|
||||
#define INIT_MODDER_MOTOR_PBA_MSK 0x00300000
|
||||
|
||||
#define INIT_MODDER_MOTOR_PBB 0x00100500
|
||||
#define INIT_MODDER_MOTOR_PBB_MSK 0x00300F00
|
||||
|
||||
#define INIT_OSPEEDR_MOTOR_PBA INIT_MODDER_MOTOR_PBA
|
||||
#define INIT_OSPEEDR_MOTOR_PBA_MSK INIT_MODDER_MOTOR_PBA_MSK
|
||||
|
||||
#define INIT_OSPEEDR_MOTOR_PBB INIT_MODDER_MOTOR_PBB
|
||||
#define INIT_OSPEEDR_MOTOR_PBB_MSK INIT_MODDER_MOTOR_PBB_MSK
|
||||
|
||||
#define INIT_PUPDR_MOTOR_PBA_MSK INIT_MODDER_MOTOR_PBA_MSK
|
||||
#define INIT_PUPDR_MOTOR_PBB_MSK INIT_MODDER_MOTOR_PBB_MSK
|
||||
|
||||
void motor_init(void);
|
||||
void init_Timer_RoueDroit(char sens, uint8_t vitesse);
|
||||
void init_Timer_RoueGauche(char sens, uint8_t vitesse);
|
||||
typedef enum {
|
||||
STOP = 0,
|
||||
AVANCE = 1,
|
||||
RECUL = 2
|
||||
} Direction;
|
||||
|
||||
|
||||
#endif /* CONFIG_H_ */
|
||||
Reference in New Issue
Block a user