/ src / piolib / include / piolib_priv.h
piolib_priv.h
 1  // SPDX-License-Identifier: GPL-2.0
 2  /*
 3   * Copyright (c) 2023-24 Raspberry Pi Ltd.
 4   * All rights reserved.
 5   */
 6  
 7  #ifndef _PIOLIB_PRIV_H
 8  #define _PIOLIB_PRIV_H
 9  
10  #include "pio_platform.h"
11  
12  #define DECLARE_PIO_CHIP(chip)                                                 \
13      const PIO_CHIP_T *__ptr_##chip __attribute__((section("piochips")))        \
14      __attribute__((used)) = &chip
15  
16  #endif