2018-10-08 12:20:49 +02:00
|
|
|
/*
|
2022-07-27 16:35:52 +02:00
|
|
|
* Copyright (C) 2021 Gunar Schorcht
|
2018-10-08 12:20:49 +02:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu_esp32
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2018-11-05 11:27:00 +01:00
|
|
|
* @brief Architecture specific GPIO functions for ESP32
|
2018-10-08 12:20:49 +02:00
|
|
|
*
|
|
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GPIO_ARCH_H
|
|
|
|
#define GPIO_ARCH_H
|
|
|
|
|
2022-02-01 21:46:30 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2019-12-16 07:41:01 +01:00
|
|
|
#include "gpio_arch_common.h"
|
2022-06-19 13:34:04 +02:00
|
|
|
#include "periph/gpio.h"
|
2018-10-08 12:20:49 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-03-19 10:36:22 +01:00
|
|
|
/**
|
|
|
|
* @brief Called before the power management enters a light or deep sleep mode
|
|
|
|
* @param mode sleep mode that is entered
|
|
|
|
*/
|
|
|
|
void gpio_pm_sleep_enter(unsigned mode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Called after the power management left light sleep mode
|
|
|
|
* @param cause wake-up cause
|
|
|
|
*/
|
|
|
|
void gpio_pm_sleep_exit(uint32_t cause);
|
|
|
|
|
2018-10-08 12:20:49 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GPIO_ARCH_H */
|