diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 9d12456..1687730 100755 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -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}""." REQUIRES ssd1306 driver esp_adc hal esp_timer) diff --git a/main/include/menu.h b/main/include/menu.h new file mode 100644 index 0000000..3baceef --- /dev/null +++ b/main/include/menu.h @@ -0,0 +1,5 @@ +#ifndef MENU_H +#define MENU_H + + +#endif \ No newline at end of file diff --git a/main/mcpwm.c b/main/mcpwm.c index 44dfc6c..4b34a54 100755 --- a/main/mcpwm.c +++ b/main/mcpwm.c @@ -36,8 +36,6 @@ float duty = CONFIG_DUTY_PWM; /*############################################*/ void mcpwm_init(){ ESP_LOGI("MCPWM","started"); - - 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); diff --git a/main/menu.c b/main/menu.c new file mode 100644 index 0000000..e69de29