voilier-team-1/keilproject/Source/Principale.c

30 lines
648 B
C
Raw Normal View History

2023-03-22 15:28:54 +01:00
#include "stm32f10x.h"
2023-04-07 13:53:08 +02:00
#include "gpio.h"
#include "servo.h"
#include "motoreducteur.h"
2023-04-05 08:25:25 +02:00
#include "rtc.h"
2023-04-07 13:53:08 +02:00
#include "remote.h"
2023-03-22 15:28:54 +01:00
void initImplementation(void);
2023-03-22 15:28:54 +01:00
int main (void)
{
//MyGPIO_Struct_TypeDef led = {GPIOA,5,Out_PullUp}; //led
//MyGPIO_Init(&led); //test des leds pour ignorer les contraintes li<6C>es aux diff<66>rents ports
initImplementation();
//MyRTC_GetTime(&sec, &min, &hour, &day, &date, &month, &year);
while(1){};
}
void initImplementation(void)
2023-03-22 15:28:54 +01:00
{
MyServo_Init();
MyServo_ChangeAngle(179);
2023-04-07 13:53:08 +02:00
initRemote();
testRemote();
MyMotor_Init();
MyMotor_ChangeSpeed(0);
MyMotor_ChangeDirection(HORAIRE);
2023-04-05 08:25:25 +02:00
MyRTC_Init();
}