Skip to content

Commit a9d8c5b

Browse files
committed
include: intertupt_controller: esp32: Correct include-guard
Both `include/zephyr/drivers/interrupt_controller/intc_esp32.h` and `include/zephyr/drivers/interrupt_controller/intc_esp32c3.h` define `ZEPHYR_INCLUDE_DRIVERS_ESP_INTR_ALLOC_H__` to prevent duplicate inclusion, so it cannot be properly prevented. Change to a file path name-based definition. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 6dc0af9 commit a9d8c5b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/zephyr/drivers/interrupt_controller/intc_esp32.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef ZEPHYR_INCLUDE_DRIVERS_ESP_INTR_ALLOC_H__
8-
#define ZEPHYR_INCLUDE_DRIVERS_ESP_INTR_ALLOC_H__
7+
#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_ESP32_H_
8+
#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_ESP32_H_
99

1010
#include <stdint.h>
1111
#include <stdbool.h>
@@ -311,4 +311,4 @@ void esp_intr_noniram_disable(void);
311311
*/
312312
void esp_intr_noniram_enable(void);
313313

314-
#endif
314+
#endif /* ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_ESP32_H_ */

include/zephyr/drivers/interrupt_controller/intc_esp32c3.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef ZEPHYR_INCLUDE_DRIVERS_ESP_INTR_ALLOC_H__
8-
#define ZEPHYR_INCLUDE_DRIVERS_ESP_INTR_ALLOC_H__
7+
#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_ESP32C3_H_
8+
#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_ESP32C3_H_
99

1010
#include <stdint.h>
1111
#include <stdbool.h>
@@ -118,4 +118,4 @@ int esp_intr_enable(int source);
118118
*/
119119
uint32_t esp_intr_get_enabled_intmask(int status_mask_number);
120120

121-
#endif
121+
#endif /* ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_ESP32C3_H_ */

0 commit comments

Comments
 (0)