Menu.c/.h erstellt
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
idf_component_register(SRCS "ADC.c" "GPIO.c" "mcpwm.c" "functions.c" "app_main.c"
|
idf_component_register(SRCS "menu.c" "ADC.c" "GPIO.c" "mcpwm.c" "functions.c" "app_main.c"
|
||||||
INCLUDE_DIRS "include""${CMAKE_SOURCE_DIR}""."
|
INCLUDE_DIRS "include""${CMAKE_SOURCE_DIR}""."
|
||||||
REQUIRES ssd1306 driver esp_adc hal esp_timer)
|
REQUIRES ssd1306 driver esp_adc hal esp_timer)
|
||||||
|
|||||||
5
main/include/menu.h
Normal file
5
main/include/menu.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#ifndef MENU_H
|
||||||
|
#define MENU_H
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -36,8 +36,6 @@ float duty = CONFIG_DUTY_PWM;
|
|||||||
/*############################################*/
|
/*############################################*/
|
||||||
void mcpwm_init(){
|
void mcpwm_init(){
|
||||||
ESP_LOGI("MCPWM","started");
|
ESP_LOGI("MCPWM","started");
|
||||||
|
|
||||||
|
|
||||||
double tick_period_ns = 1e9 / CONFIG_TIMER_BASE_FREQ; // Zeit pro Tick in ns
|
double tick_period_ns = 1e9 / CONFIG_TIMER_BASE_FREQ; // Zeit pro Tick in ns
|
||||||
uint32_t dead_time_ticks = (uint32_t)round(CONFIG_DEAD_TIME_PWM / tick_period_ns);
|
uint32_t dead_time_ticks = (uint32_t)round(CONFIG_DEAD_TIME_PWM / tick_period_ns);
|
||||||
|
|
||||||
|
|||||||
0
main/menu.c
Normal file
0
main/menu.c
Normal file
Reference in New Issue
Block a user