From ddd05b2c7e4b5c9f95f913b5ca24be9edc5bd7bb Mon Sep 17 00:00:00 2001 From: MDC Service Date: Wed, 25 May 2022 13:07:19 +0200 Subject: replace files with copyright header and Doxygen comments --- software/michi_funcs/board_rev_A.cpp | 38 ------------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 software/michi_funcs/board_rev_A.cpp (limited to 'software/michi_funcs/board_rev_A.cpp') diff --git a/software/michi_funcs/board_rev_A.cpp b/software/michi_funcs/board_rev_A.cpp deleted file mode 100644 index f71e27a..0000000 --- a/software/michi_funcs/board_rev_A.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include -#include -#include "freertos/FreeRTOS.h" -#include "freertos/task.h" -#include "freertos/queue.h" -#include "driver/gpio.h" -#include "schrank_ant_pcb.h" //contains setting of board revision - -#ifndef ESP32_BOARD_REV_B - -void io_init(void) -{ - -#define GPO_BIT_MASK (1ULL << PHY_PWR) - gpio_config_t o_conf; - o_conf.intr_type = GPIO_INTR_DISABLE; - o_conf.mode = GPIO_MODE_OUTPUT; - o_conf.pin_bit_mask = GPO_BIT_MASK; - o_conf.pull_down_en = GPIO_PULLDOWN_ENABLE; - o_conf.pull_up_en = GPIO_PULLUP_DISABLE; - gpio_config(&o_conf); - gpio_set_level((gpio_num_t) PHY_PWR, 1); - - // inputs - /* - #define GPI_BIT_MASK ((1ULL << SWITCH)|(1ULL << SWITCH)) - gpio_config_t i_conf; - i_conf.intr_type = GPIO_INTR_DISABLE; - i_conf.mode = GPIO_MODE_INPUT; - i_conf.pin_bit_mask = GPI_BIT_MASK; - i_conf.pull_down_en = GPIO_PULLDOWN_DISABLE; - i_conf.pull_up_en = GPIO_PULLUP_DISABLE; - gpio_config(&i_conf); - */ -} - -#endif -- cgit v1.2.3