boards/arm/rp23xx: fix implicit declaration of function rp23xx_dev_gpio_init
- Created a file rp23xx_common_pico.h with function
prototype
int rp23xx_dev_gpio_init(void);
to allow cmake + ninja to build without errors.
- Updated file rp23xx_pico.h with
for all boards.
Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
parent
6d15c3969c
commit
8baa788484
5 changed files with 76 additions and 4 deletions
72
boards/arm/rp23xx/common/include/rp23xx_common_pico.h
Normal file
72
boards/arm/rp23xx/common/include/rp23xx_common_pico.h
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/****************************************************************************
|
||||
* boards/arm/rp23xx/common/include/rp23xx_common_pico.h
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership. The
|
||||
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_ARM_RP23XX_COMMON_INCLUDE_RP23XX_COMMON_PICO_H
|
||||
#define __BOARDS_ARM_RP23XX_COMMON_INCLUDE_RP23XX_COMMON_PICO_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
#include <nuttx/config.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: rp23xx_dev_gpio_init
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEV_GPIO
|
||||
int rp23xx_dev_gpio_init(void);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __BOARDS_ARM_RP23XX_COMMON_INCLUDE_RP23XX_COMMON_PICO_H */
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "rp23xx_pico.h"
|
||||
#include "rp23xx_common_pico.h"
|
||||
#include "rp23xx_common_bringup.h"
|
||||
|
||||
#ifdef CONFIG_RP23XX_PWM
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
int rp23xx_bringup(void);
|
||||
|
||||
#ifdef CONFIG_DEV_GPIO
|
||||
#if defined(CONFIG_DEV_GPIO) && !defined(CONFIG_ARCH_BOARD_COMMON)
|
||||
int rp23xx_dev_gpio_init(void);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
int rp23xx_bringup(void);
|
||||
|
||||
#ifdef CONFIG_DEV_GPIO
|
||||
#if defined(CONFIG_DEV_GPIO) && !defined(CONFIG_ARCH_BOARD_COMMON)
|
||||
int rp23xx_dev_gpio_init(void);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
int rp23xx_bringup(void);
|
||||
|
||||
#ifdef CONFIG_DEV_GPIO
|
||||
#if defined(CONFIG_DEV_GPIO) && !defined(CONFIG_ARCH_BOARD_COMMON)
|
||||
int rp23xx_dev_gpio_init(void);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue