Premier commit
This commit is contained in:
parent
a7a27d7bb3
commit
ddf3538d45
5 changed files with 34 additions and 0 deletions
4
CantoOrvikPilotes/Include/GPIO.h
Normal file
4
CantoOrvikPilotes/Include/GPIO.h
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extern int ChercherEtat(GPIO_TypeDef * GPIO, int pin);
|
||||
extern void ResetBroche(uint32_t GPIO, int Broche);
|
||||
extern void SetBroche(uint32_t GPIO, int Broche);
|
||||
extern void ConfigureBroche(uint32_t GPIO, int Broche, int IO, char Mode);
|
||||
20
CantoOrvikPilotes/Include/MyTimer.h
Normal file
20
CantoOrvikPilotes/Include/MyTimer.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "stm32f10x.h"
|
||||
|
||||
//TIMERS
|
||||
extern void MyTimer_Base_Init ( TIM_TypeDef * Timer , unsigned short ValARR , unsigned short ValPSC );
|
||||
extern void EnableTimer(void);
|
||||
extern void ConfigureBroches();
|
||||
extern void ConfigureTimers();
|
||||
#define MyTimer_Base_Start(Timer) (Timer->CR1 |= TIM_CR1_CEN)
|
||||
#define MyTimer_Base_Stop(Timer) (Timer -> CR1 =(0x0))
|
||||
extern volatile int g_tick_count; // Declara que a variável existe em outro arquivo
|
||||
extern void TIM2_IRQHandler(void);
|
||||
extern void TIM3_IRQHandler(void);
|
||||
extern void TIM4_IRQHandler(void);
|
||||
extern void MyTimer_ActiveIT(TIM_TypeDef *Timer, char Prio,void(*IT_function)(void));
|
||||
//PWM
|
||||
extern void MyTimer_PWM(TIM_TypeDef *Timer, char Channel);
|
||||
extern void MyTimer_Set_DutyCycle(TIM_TypeDef *Timer, char Channel, float DutyCycle_Percent);
|
||||
void Test(void);
|
||||
void ConfigureIT();
|
||||
void ConfigurePWM();
|
||||
7
CantoOrvikPilotes/Include/Nucleo.h
Normal file
7
CantoOrvikPilotes/Include/Nucleo.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include "stm32f10x.h"
|
||||
extern void ConfigHorloge(void);
|
||||
extern void ConfigBroche(void);
|
||||
extern int BoutonAppuye(void);
|
||||
extern void AllumerLED(void);
|
||||
extern void EteindreLED(void);
|
||||
extern void TogglePin(GPIO_TypeDef*GPIO, int Broche);
|
||||
3
CantoOrvikPilotes/Include/PWM.h
Normal file
3
CantoOrvikPilotes/Include/PWM.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "stm32f10x.h"
|
||||
extern void MyTimer_PWM(TIM_TypeDef *Timer, char Channel);
|
||||
extern void MyTimer_Set_DutyCycle(TIM_TypeDef *Timer, char Channel, float DutyCycle_Percent);
|
||||
BIN
CantoOrvikPilotes/Include/test.h
Normal file
BIN
CantoOrvikPilotes/Include/test.h
Normal file
Binary file not shown.
Loading…
Reference in a new issue