1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +01:00
RIOT/cpu/esp32/include/gpio_arch.h
2025-09-12 11:25:41 +02:00

43 lines
764 B
C

/*
* SPDX-FileCopyrightText: 2021 Gunar Schorcht
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup cpu_esp32
* @{
*
* @file
* @brief Architecture specific GPIO functions for ESP32
*
* @author Gunar Schorcht <gunar@schorcht.net>
* @}
*/
#include <stdbool.h>
#include "gpio_arch_common.h"
#include "periph/gpio.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @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);
#ifdef __cplusplus
}
#endif