Deuxième version plateau
This commit is contained in:
commit
8f4a6d8c6c
9 changed files with 10 additions and 19 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -24,7 +24,3 @@
|
|||
**/Objects/
|
||||
**/Listings/
|
||||
**/Debug/
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,3 @@ void Plateau_Init (void){
|
|||
My_USART_Init(USART1);
|
||||
MyUSART_ActiveIT(USART1, 6, &handler_USART1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,4 +40,3 @@ void ADC1_2_IRQHandler(void){
|
|||
// ts = 9.010913347*(Rain +1000.00)*0.000000000008;
|
||||
// cycle = ts*12/0.000001;
|
||||
// ADC->SMPR1 |=
|
||||
//}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "stm32f10x.h"
|
||||
#include "GPIO.h"
|
||||
#include <stm32f10x.h>
|
||||
#include <GPIO.h>
|
||||
|
||||
void MyGPIO_Init(GPIO_TypeDef *GPIO, char pin, char conf){
|
||||
if (GPIO == GPIOA) {RCC->APB2ENR |= (RCC_APB2ENR_IOPAEN);}
|
||||
|
|
@ -55,4 +55,3 @@ void MyGPIO_Reset(GPIO_TypeDef *GPIO, char GPIO_Pin){
|
|||
void MyGPIO_Toggle(GPIO_TypeDef *GPIO, char GPIO_Pin){
|
||||
if (((GPIO->ODR>>GPIO_Pin)&1) == 1) MyGPIO_Reset(GPIO, GPIO_Pin);
|
||||
else MyGPIO_Set(GPIO, GPIO_Pin);
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef MYGPIO_H
|
||||
#define MYGPIO_H
|
||||
#include "stm32f10x.h"
|
||||
#include <stm32f10x.h>
|
||||
|
||||
#define In_Floating 0x4
|
||||
#define In_PullDown 0x8
|
||||
|
|
|
|||
|
|
@ -88,4 +88,3 @@ void TIM3_IRQHandler(void){
|
|||
void TIM4_IRQHandler(void){
|
||||
TIM4->SR&=~TIM_SR_UIF;
|
||||
Ptr_fct_t4();
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef MYTIMER_H
|
||||
#define MYTIMER_H
|
||||
#include "stm32f10x.h"
|
||||
#include <stm32f10x.h>
|
||||
|
||||
#define MyTimer_Base_Start(Timer) Timer->CR1|=TIM_CR1_CEN;
|
||||
#define MyTimer_Base_Stop(Timer) Timer->CR1&=~TIM_CR1_CEN;
|
||||
|
|
|
|||
|
|
@ -75,4 +75,3 @@ void USART1_IRQHandler(void){
|
|||
void USART3_IRQHandler(void){
|
||||
USART3->SR&=~USART_SR_RXNE;
|
||||
ptr_fct_u3();
|
||||
}
|
||||
Loading…
Reference in a new issue