cleanup header guard names to be consistent (#1179)

This commit is contained in:
Graham Sanderson 2023-01-18 08:40:10 -06:00 committed by GitHub
parent 99ee33ad25
commit 88bc4f974c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 60 additions and 60 deletions

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PICO_H_ #ifndef _PICO_H
#define PICO_H_ #define _PICO_H
/** \file pico.h /** \file pico.h
* \defgroup pico_base pico_base * \defgroup pico_base pico_base

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PICO_CONFIG_H_ #ifndef _PICO_CONFIG_H
#define PICO_CONFIG_H_ #define _PICO_CONFIG_H
// ----------------------------------------------------- // -----------------------------------------------------
// NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLY CODE SO // NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLY CODE SO

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_DIVIDER_H_ #ifndef _PICO_DIVIDER_H
#define _PICO_DIVIDER_H_ #define _PICO_DIVIDER_H
#include "pico.h" #include "pico.h"
#include "hardware/divider.h" #include "hardware/divider.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PLATFORM_CRITICAL_SECTION_H #ifndef _PICO_CRITICAL_SECTION_H
#define _PLATFORM_CRITICAL_SECTION_H #define _PICO_CRITICAL_SECTION_H
#include "pico/lock_core.h" #include "pico/lock_core.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PLATFORM_MUTEX_H #ifndef _PICO_MUTEX_H
#define _PLATFORM_MUTEX_H #define _PICO_MUTEX_H
#include "pico/lock_core.h" #include "pico/lock_core.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PLATFORM_SEM_H #ifndef _PICO_SEM_H
#define _PLATFORM_SEM_H #define _PICO_SEM_H
#include "pico/lock_core.h" #include "pico/lock_core.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_DATETIME_H #ifndef _PICO_UTIL_DATETIME_H
#define _PICO_DATETIME_H #define _PICO_UTIL_DATETIME_H
#include "pico.h" #include "pico.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _UTIL_QUEUE_H #ifndef _PICO_UTIL_QUEUE_H
#define _UTIL_QUEUE_H #define _PICO_UTIL_QUEUE_H
#include "pico.h" #include "pico.h"
#include "hardware/sync.h" #include "hardware/sync.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_GPIO_H_ #ifndef _HARDWARE_GPIO_H
#define _HARDWARE_GPIO_H_ #define _HARDWARE_GPIO_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_PLATFORM_H_ #ifndef _PICO_PLATFORM_H
#define _PICO_PLATFORM_H_ #define _PICO_PLATFORM_H
#include "hardware/platform_defs.h" #include "hardware/platform_defs.h"
#include <stddef.h> #include <stddef.h>

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _BOOT_STAGE2_CONFIG_H_ #ifndef _BOOT_STAGE2_CONFIG_H
#define _BOOT_STAGE2_CONFIG_H_ #define _BOOT_STAGE2_CONFIG_H
// NOTE THIS HEADER IS INCLUDED FROM ASSEMBLY // NOTE THIS HEADER IS INCLUDED FROM ASSEMBLY

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_ADC_H_ #ifndef _HARDWARE_ADC_H
#define _HARDWARE_ADC_H_ #define _HARDWARE_ADC_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/adc.h" #include "hardware/structs/adc.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_CLOCKS_H_ #ifndef _HARDWARE_CLOCKS_H
#define _HARDWARE_CLOCKS_H_ #define _HARDWARE_CLOCKS_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/clocks.h" #include "hardware/structs/clocks.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_DMA_H_ #ifndef _HARDWARE_DMA_H
#define _HARDWARE_DMA_H_ #define _HARDWARE_DMA_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/dma.h" #include "hardware/structs/dma.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_EXCEPTION_H_ #ifndef _HARDWARE_EXCEPTION_H
#define _HARDWARE_EXCEPTION_H_ #define _HARDWARE_EXCEPTION_H
#include "pico.h" #include "pico.h"
#include "hardware/address_mapped.h" #include "hardware/address_mapped.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_GPIO_H_ #ifndef _HARDWARE_GPIO_H
#define _HARDWARE_GPIO_H_ #define _HARDWARE_GPIO_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/sio.h" #include "hardware/structs/sio.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_IRQ_H_ #ifndef _HARDWARE_IRQ_H
#define _HARDWARE_IRQ_H_ #define _HARDWARE_IRQ_H
// These two config items are also used by assembler, so keeping separate // These two config items are also used by assembler, so keeping separate
// PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=4, advanced=true, group=hardware_irq // PICO_CONFIG: PICO_MAX_SHARED_IRQ_HANDLERS, Maximum number of shared IRQ handlers, default=4, advanced=true, group=hardware_irq

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_PIO_H_ #ifndef _HARDWARE_PIO_H
#define _HARDWARE_PIO_H_ #define _HARDWARE_PIO_H
#include "pico.h" #include "pico.h"
#include "hardware/address_mapped.h" #include "hardware/address_mapped.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_PIO_INSTRUCTIONS_H_ #ifndef _HARDWARE_PIO_INSTRUCTIONS_H
#define _HARDWARE_PIO_INSTRUCTIONS_H_ #define _HARDWARE_PIO_INSTRUCTIONS_H
#include "pico.h" #include "pico.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_PLL_H_ #ifndef _HARDWARE_PLL_H
#define _HARDWARE_PLL_H_ #define _HARDWARE_PLL_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/pll.h" #include "hardware/structs/pll.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_VREG_H_ #ifndef _HARDWARE_VREG_H
#define _HARDWARE_VREG_H_ #define _HARDWARE_VREG_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/vreg_and_chip_reset.h" #include "hardware/structs/vreg_and_chip_reset.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _HARDWARE_XOSC_H_ #ifndef _HARDWARE_XOSC_H
#define _HARDWARE_XOSC_H_ #define _HARDWARE_XOSC_H
#include "pico.h" #include "pico.h"
#include "hardware/structs/xosc.h" #include "hardware/structs/xosc.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PLATFORM_BOOTROM_H #ifndef _PICO_BOOTROM_H
#define _PLATFORM_BOOTROM_H #define _PICO_BOOTROM_H
#include "pico.h" #include "pico.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_SF_TABLE_H #ifndef _PICO_BOOTROM_SF_TABLE_H
#define _PICO_SF_TABLE_H #define _PICO_BOOTROM_SF_TABLE_H
// NOTE THESE FUNCTION IMPLEMENTATIONS MATCH THE BEHAVIOR DESCRIBED IN THE BOOTROM SECTION OF THE RP2040 DATASHEET // NOTE THESE FUNCTION IMPLEMENTATIONS MATCH THE BEHAVIOR DESCRIBED IN THE BOOTROM SECTION OF THE RP2040 DATASHEET

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _EXAMPLE_CYW43_ARCH_ARCH_FREERTOS_SYS_H #ifndef _PICO_CYW43_ARCH_ARCH_FREERTOS_H
#define _EXAMPLE_CYW43_ARCH_ARCH_FREERTOS_SYS_H #define _PICO_CYW43_ARCH_ARCH_FREERTOS_H
#include "pico/cyw43_arch/arch_common.h" #include "pico/cyw43_arch/arch_common.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_INT64_H #ifndef _PICO_INT64_OPS_H
#define _PICO_INT64_H #define _PICO_INT64_OPS_H
#include "pico/types.h" #include "pico/types.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_MEMORY_H #ifndef _PICO_MEM_OPS_H
#define _PICO_MEMORY_H #define _PICO_MEM_OPS_H
#include "pico/types.h" #include "pico/types.h"

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_PLATFORM_H_ #ifndef _PICO_PLATFORM_H
#define _PICO_PLATFORM_H_ #define _PICO_PLATFORM_H
/** \file platform.h /** \file platform.h
* \defgroup pico_platform pico_platform * \defgroup pico_platform pico_platform

View File

@ -29,8 +29,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#ifndef PICO_PRINTF_H_ #ifndef _PICO_PRINTF_H
#define PICO_PRINTF_H_ #define _PICO_PRINTF_H
/** \file printf.h /** \file printf.h
* \defgroup pico_printf pico_printf * \defgroup pico_printf pico_printf

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef _PICO_UNIQUE_ID_H_ #ifndef _PICO_UNIQUE_ID_H
#define _PICO_UNIQUE_ID_H_ #define _PICO_UNIQUE_ID_H
#include "pico.h" #include "pico.h"