mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 10:17:30 +02:00
Bulk replace header guards to use
This commit is contained in:
@ -12,8 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef _EXCEPTION_STUB_HPP_
|
||||
#define _EXCEPTION_STUB_HPP_
|
||||
#pragma once
|
||||
|
||||
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
#define TRY_CATCH_OR_DO(block, action) \
|
||||
@ -38,6 +37,3 @@
|
||||
block
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // _EXCEPTION_STUB_HPP_
|
||||
|
@ -12,12 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "esp_log.h"
|
||||
#include "driver/uart.h"
|
||||
|
||||
#ifndef _UART_COMPAT_H_
|
||||
#define _UART_COMPAT_H_
|
||||
|
||||
/**
|
||||
* @brief This is a compatible header, which just takes care of different data ptr type
|
||||
* across different IDF version in driver/uart
|
||||
@ -31,5 +30,3 @@ static inline int uart_write_bytes_compat(uart_port_t uart_num, const void* src,
|
||||
#endif
|
||||
return uart_write_bytes(uart_num, data, size);
|
||||
}
|
||||
|
||||
#endif //_UART_COMPAT_H_
|
||||
|
@ -12,8 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef _UART_RESOURCE_HPP_
|
||||
#define _UART_RESOURCE_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "cxx_include/esp_modem_dte.hpp"
|
||||
#include "esp_modem_config.h"
|
||||
@ -35,5 +34,3 @@ struct uart_resource {
|
||||
|
||||
|
||||
} // namespace esp_modem
|
||||
|
||||
#endif // _UART_RESOURCE_HPP_
|
||||
|
@ -12,8 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef _UART_TERMINAL_HPP_
|
||||
#define _UART_TERMINAL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "cxx_include/esp_modem_dte.hpp"
|
||||
|
||||
@ -25,4 +24,3 @@ std::unique_ptr<Terminal> create_uart_terminal(const esp_modem_dte_config *confi
|
||||
|
||||
} // namespace esp_modem
|
||||
|
||||
#endif // _UART_TERMINAL_HPP_
|
||||
|
@ -12,8 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef _VFS_TERMINAL_HPP_
|
||||
#define _VFS_TERMINAL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "cxx_include/esp_modem_dte.hpp"
|
||||
|
||||
@ -24,5 +23,3 @@ namespace esp_modem {
|
||||
std::unique_ptr<Terminal> create_vfs_terminal(const esp_modem_dte_config *config);
|
||||
|
||||
} // namespace esp_modem
|
||||
|
||||
#endif // _VFS_TERMINAL_HPP_
|
||||
|
Reference in New Issue
Block a user