/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include "esp_system.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "driver/uart.h"
uint8_t gpio_intr = 0;
TaskHandle_t test_Handle = NULL;
void test_Task(void *pvParameters);
TaskHandle_t test1_Handle = NULL;
void test1_Task(void *pvParameters);
void gpio_handler(void *p);
/******************************************************************************
* FunctionName : app_main
* Description : entry of user application, init user function here
* Parameters : none
* Returns : none
*******************************************************************************/
void app_main(void)
{
uart_set_baudrate(UART_NUM_0, 115200);
vTaskDelay(1000 / portTICK_PERIOD_MS);
printf("SDK version:%s\n", esp_get_idf_version());
xTaskCreate((TaskFunction_t)test_Task,
(const char *)"test_Task",
&