Ajout d'un capteur US sur PA1, PA5, PA8, PA12 -> Attention conflie de timer avec timer pour roue moteur droit. Chercher une solution + voir pour adapter le code pour le pinage définitif prévue soit sur D12, D13 pin arduino STM32
This commit is contained in:
@@ -24,9 +24,26 @@
|
||||
#define INIT_PUPDR_MOTOR_PBA_MSK INIT_MODDER_MOTOR_PBA_MSK
|
||||
#define INIT_PUPDR_MOTOR_PBB_MSK INIT_MODDER_MOTOR_PBB_MSK
|
||||
|
||||
extern volatile uint32_t it_count;
|
||||
extern uint32_t index_time;
|
||||
extern uint32_t nbr_un;
|
||||
extern uint32_t nbr_un_final;
|
||||
extern volatile uint8_t finReception;
|
||||
|
||||
void motor_init(void);
|
||||
void init_Timer_RoueDroit(char sens, uint8_t vitesse);
|
||||
void init_Timer_RoueGauche(char sens, uint8_t vitesse);
|
||||
|
||||
void InitGPIOUS(void);
|
||||
void InitTimerUS(void);
|
||||
void TIM2_IRQHandler(void);
|
||||
void UltraSoundMgt(void);
|
||||
void set_RoueGauche_Sens(int sens, uint8_t vitesse);
|
||||
uint32_t ComputeDistance(uint32_t nbrUnFinal);
|
||||
|
||||
|
||||
|
||||
|
||||
typedef enum {
|
||||
STOP = 0,
|
||||
AVANCE = 1,
|
||||
|
||||
Reference in New Issue
Block a user