From 210b52e622e5d326dbbf02b3706955cb8b71c4c6 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Mon, 18 Jan 2021 07:51:05 +0800 Subject: [PATCH] gpio.h: remove extern "C" (#19799) --- selfdrive/common/gpio.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/selfdrive/common/gpio.h b/selfdrive/common/gpio.h index 479b4f7e06..f501342690 100644 --- a/selfdrive/common/gpio.h +++ b/selfdrive/common/gpio.h @@ -1,5 +1,4 @@ -#ifndef GPIO_H -#define GPIO_H +#pragma once #include @@ -20,16 +19,5 @@ #define GPIO_STM_BOOT0 0 #endif - -#ifdef __cplusplus -extern "C" { -#endif - int gpio_init(int pin_nr, bool output); int gpio_set(int pin_nr, bool high); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif