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

38 lines
645 B
C

#include "stm32f10x.h"
<<<<<<< HEAD
#include "servo.h"
#include "motoreducteur.h"
#include "rtc.h"
int main (void)
{
MyServo_Init();
MyServo_ChangeAngle(179);
//MyMotor_Init();
//MyMotor_ChangeSpeed(2000);
//MyMotor_ChangeDirection(HORAIRE);
MyRTC_Init();
MyRTC_GetTime();
while(1){};
}
=======
#include "MyI2C.h"
#include "MySPI.h"
#include "remote.h"
#include "gpio.h"
int main (void)
{
MyGPIO_Struct_TypeDef led = {GPIOA,5,Out_PullUp}; //led
MyGPIO_Init(&led); //test des leds pour ignorer les contraintes liées aux différents ports
initRemote();
testRemote();
while(1){
};
}
>>>>>>> origin/yohan