changed structer of whole Project

-Added GPIO.c
-Added ADC.c
-Added mcpwm.c
-Added all headrs for new files
-Fixed Header usage
-Fixed parsed pins only import  once
This commit is contained in:
2025-01-26 01:07:40 +01:00
parent e93e5c8c15
commit 56f6c33124
15 changed files with 609 additions and 552 deletions

19
main/include/GPIO.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef GPIO_H
#define GPIO_H
#include <stdbool.h>
#include <stdint.h>
//configure GPIOs
void configure_GPIO_dir();
//functions for external Encoder
int get_direction();
float get_speed_index();
float get_speed_AB();
//functions for internal Encoder
int16_t get_enc_in_counter();
void set_enc_in_counter(int16_t inital_value);
bool get_enc_in_but();
#endif