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:
19
main/include/GPIO.h
Normal file
19
main/include/GPIO.h
Normal 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
|
||||
Reference in New Issue
Block a user