FUTURE_SEQUANA: Flatten PDL library paths

This change moves all PDL drivers into common source and include
directories to alleviate issue with Windows version of GNU Make 4.x
maximum command line length limit.
pull/10346/head
Leszek Rusinowicz 2019-03-20 11:37:47 +01:00
parent 801e555121
commit 270f368bbd
93 changed files with 99 additions and 100 deletions

View File

@ -19,7 +19,7 @@
#include "ipc_rpc.h"
#include "rpc_defs.h"
#include "cy_ipc_config.h"
#include "ipc/cy_ipc_pipe.h"
#include "cy_ipc_pipe.h"
#define RPC_GEN RPC_GEN_IMPLEMENTATION
#include "rpc_api.h"

View File

@ -21,11 +21,11 @@
#if defined(CY_DEVICE_PSOC6ABLE2)
#if !defined(CY_PSOC6ABLE2_REV_0A_SUPPORT_DISABLE)
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#endif /* !defined(CY_PSOC6ABLE2_REV_0A_SUPPORT_DISABLE) */
#if !defined(CY_IPC_DEFAULT_CFG_DISABLE)
#include "ipc/cy_ipc_drv.h"
#include "flash/cy_flash.h"
#include "cy_ipc_drv.h"
#include "cy_flash.h"
#endif /* !defined(CY_IPC_DEFAULT_CFG_DISABLE) */
#endif /* defined(CY_DEVICE_PSOC6ABLE2) */
@ -583,7 +583,7 @@ void Cy_SysResetCM4(void)
* linker configuration files. The following symbols used by the cymcuelftool.
*
*******************************************************************************/
#if defined (__ARMCC_VERSION)
#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION < 6000000)
__asm void Cy_MemorySymbols(void)
{
/* Flash */

View File

@ -20,7 +20,7 @@
#include "Semaphore.h"
#include "mbed_assert.h"
#include "cy_ipc_config.h"
#include "ipc/cy_ipc_pipe.h"
#include "cy_ipc_pipe.h"
#include <stdarg.h>
#include "platform/SingletonPtr.h"

View File

@ -20,8 +20,8 @@
#include "psoc6_utils.h"
#if defined(CY_DEVICE_PSOC6ABLE2) && !defined(CY_IPC_DEFAULT_CFG_DISABLE)
#include "ipc/cy_ipc_drv.h"
#include "flash/cy_flash.h"
#include "cy_ipc_drv.h"
#include "cy_flash.h"
#endif /* defined(CY_DEVICE_PSOC6ABLE2) && !defined(CY_IPC_DEFAULT_CFG_DISABLE) */

View File

@ -12,9 +12,9 @@
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#include "ipc/cy_ipc_drv.h"
#include "ipc/cy_ipc_pipe.h"
#include "ipc/cy_ipc_sema.h"
#include "cy_ipc_drv.h"
#include "cy_ipc_pipe.h"
#include "cy_ipc_sema.h"
#include "cy_ipc_config.h"

View File

@ -17,18 +17,18 @@
#include <string.h>
#include "device.h"
#include "gpio/cy_gpio.h"
#include "syslib/cy_syslib.h"
#include "sysclk/cy_sysclk.h"
#include "systick/cy_systick.h"
#include "sysanalog/cy_sysanalog.h"
#include "cy_gpio.h"
#include "cy_syslib.h"
#include "cy_sysclk.h"
#include "cy_systick.h"
#include "cy_sysanalog.h"
#if FEATURE_BLE
#include "ble/cy_ble_clk.h"
#endif // FEATURE_BLE
#define CY_NEED_CYCLOCKSTARTUPERROR 1
#include "syspm/cy_syspm.h"
#include "cy_syspm.h"
#include "psoc6_utils.h"

View File

@ -300,8 +300,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "sysanalog/cy_sysanalog.h"
#include "cy_syslib.h"
#include "cy_sysanalog.h"
#ifndef CY_IP_MXS40PASS_CTB
#error "The CTB driver is not supported on this device"

View File

@ -338,9 +338,9 @@
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syspm/cy_syspm.h"
#include "syslib/cy_syslib.h"
#include "sysclk/cy_sysclk.h"
#include "cy_syspm.h"
#include "cy_syslib.h"
#include "cy_sysclk.h"
#ifndef CY_IP_MXS40PASS_CTDAC
#error "The CTDAC driver is not supported on this device"

View File

@ -150,7 +150,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#ifndef CY_IP_M4CPUSS_DMA

View File

@ -109,7 +109,7 @@
*/
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
/***************************************
* Macro Definitions

View File

@ -296,7 +296,7 @@
*/
#include <cy_device_headers.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#if defined(__cplusplus)
extern "C" {

View File

@ -120,7 +120,7 @@
#define CY_GPIO_H
#include <stddef.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#if defined(__cplusplus)

View File

@ -142,8 +142,8 @@
#include <stddef.h>
#include <stdbool.h>
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#ifndef CY_IP_MXAUDIOSS
#error "The I2S driver is not supported on this device"

View File

@ -282,7 +282,7 @@
/******************************************************************************/
/* Include files */
/******************************************************************************/
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#include "cy_ipc_config.h"
#include <stddef.h>

View File

@ -17,9 +17,9 @@
/******************************************************************************/
/* Include files */
/******************************************************************************/
#include "ipc/cy_ipc_drv.h"
#include "syslib/cy_syslib.h"
#include "sysint/cy_sysint.h"
#include "cy_ipc_drv.h"
#include "cy_syslib.h"
#include "cy_sysint.h"
/**
* \addtogroup group_ipc_pipe IPC pipes layer (IPC_PIPE)

View File

@ -150,8 +150,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#ifndef CY_IP_MXLPCOMP
#error "The LPCOMP driver is not supported on this device"

View File

@ -105,7 +105,7 @@
#if !defined CY_LVD_H
#define CY_LVD_H
#include "syspm/cy_syspm.h"
#include "cy_syspm.h"
#ifdef __cplusplus
extern "C" {

View File

@ -121,7 +121,7 @@ extern "C" {
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#ifndef CY_IP_MXS40SRSS_MCWDT
#error "The MCWDT driver is not supported on this device"

View File

@ -161,8 +161,8 @@
/******************************************************************************/
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#include <stddef.h>
#include <stdbool.h>

View File

@ -178,7 +178,7 @@
#define CY_PROFILE_H
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include <stddef.h>
#ifndef CY_IP_MXPROFILE

View File

@ -380,7 +380,7 @@
#include <stdbool.h>
#include <stddef.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#if defined(__cplusplus)

View File

@ -280,8 +280,8 @@
#include <stddef.h>
#include <stdbool.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#ifndef CY_IP_MXS40SRSS_RTC
#error "The RTC driver is not supported on this device"

View File

@ -584,8 +584,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#ifndef CY_IP_MXS40PASS_SAR
#error "The SAR driver is not supported on this device"

View File

@ -99,8 +99,8 @@
#include <stddef.h>
#include <stdbool.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#ifndef CY_IP_MXSCB
#error "The SCB driver is not supported on this device"

View File

@ -247,8 +247,8 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#include "cy_device_headers.h"
#ifndef CY_IP_MXSMIF

View File

@ -19,7 +19,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#include "cy_smif.h"

View File

@ -144,8 +144,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#ifndef CY_IP_MXS40PASS
#error "The SysAnalog driver is not supported on this device"

View File

@ -574,8 +574,8 @@
#define __CY_SYSCLK_H__
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "syspm/cy_syspm.h"
#include "cy_syslib.h"
#include "cy_syspm.h"
#include <stdbool.h>
#if defined(__cplusplus)

View File

@ -154,7 +154,7 @@
#define CY_SYSINT_H
#include <stddef.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#if defined(__cplusplus)

View File

@ -621,7 +621,7 @@
#include <stdbool.h>
#include <stddef.h>
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#ifdef __cplusplus
extern "C" {

View File

@ -84,7 +84,7 @@
*/
#include <stdint.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#ifdef __cplusplus
extern "C" {

View File

@ -201,7 +201,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include "cy_device_headers.h"
#ifndef CY_IP_MXTCPWM

View File

@ -132,7 +132,7 @@
#define CY_TRIGMUX_H
#include "cy_device_headers.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#ifndef CY_IP_MXPERI_TR
#error "The TRIGMUX driver is not supported on this device"

View File

@ -11,7 +11,7 @@
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#include "ctb/cy_ctb.h"
#include "cy_ctb.h"
#if defined(__cplusplus)
extern "C" {

View File

@ -10,7 +10,7 @@
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#include "ctdac/cy_ctdac.h"
#include "cy_ctdac.h"
#if defined(__cplusplus)
extern "C" {

View File

@ -12,7 +12,7 @@
*******************************************************************************/
#include "cy_efuse.h"
#include "ipc/cy_ipc_drv.h"
#include "cy_ipc_drv.h"
/** \cond INTERNAL */
#define CY_EFUSE_OPCODE_SUCCESS (0xA0000000UL) /**< The command completed with no errors */

View File

@ -10,12 +10,12 @@
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#include "flash/cy_flash.h"
#include "sysclk/cy_sysclk.h"
#include "sysint/cy_sysint.h"
#include "ipc/cy_ipc_drv.h"
#include "ipc/cy_ipc_sema.h"
#include "ipc/cy_ipc_pipe.h"
#include "cy_flash.h"
#include "cy_sysclk.h"
#include "cy_sysint.h"
#include "cy_ipc_drv.h"
#include "cy_ipc_sema.h"
#include "cy_ipc_pipe.h"
/***************************************
* Data Structure definitions

View File

@ -12,9 +12,9 @@
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#include "ipc/cy_ipc_drv.h"
#include "ipc/cy_ipc_sema.h"
#include "syslib/cy_syslib.h"
#include "cy_ipc_drv.h"
#include "cy_ipc_sema.h"
#include "cy_syslib.h"
#include <string.h> /* The memset() definition */
/* Defines a mask to Check if semaphore count is a multiple of 32 */

View File

@ -12,7 +12,7 @@
#include "cy_sysclk.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#include <math.h>
#include <stdlib.h>

View File

@ -12,7 +12,7 @@
*******************************************************************************/
#include "cy_syslib.h"
#include "ipc/cy_ipc_drv.h"
#include "cy_ipc_drv.h"
#if !defined(NDEBUG)
#include <string.h>
#endif /* NDEBUG */

View File

@ -11,7 +11,7 @@
*******************************************************************************/
#include "cy_wdt.h"
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#if defined(__cplusplus)
extern "C" {

View File

@ -16,7 +16,7 @@
#include "device.h"
#include "flash_api.h"
#include "drivers/peripheral/flash/cy_flash.h"
#include "cy_flash.h"
#if DEVICE_FLASH

View File

@ -22,7 +22,7 @@
#include "PinNamesTypes.h"
#include "PinNames.h"
#include "drivers/peripheral/gpio/cy_gpio.h"
#include "cy_gpio.h"
#ifdef __cplusplus
extern "C" {

View File

@ -23,10 +23,10 @@
#include "i2c_api.h"
#include "psoc6_utils.h"
#include "drivers/peripheral/sysclk/cy_sysclk.h"
#include "drivers/peripheral/gpio/cy_gpio.h"
#include "drivers/peripheral/scb/cy_scb_i2c.h"
#include "drivers/peripheral/sysint/cy_sysint.h"
#include "cy_sysclk.h"
#include "cy_gpio.h"
#include "cy_scb_i2c.h"
#include "cy_sysint.h"
#define I2C_DEFAULT_SPEED 100000
#define NUM_I2C_PORTS 8

View File

@ -17,8 +17,7 @@
#include "ipcpipe_transport.h"
#include "cy_ipc_config.h"
#include "ipc/cy_ipc_pipe.h"
//#include "syspm/cy_syspm.h"
#include "cy_ipc_pipe.h"
#ifdef __cplusplus
extern "C" {

View File

@ -19,8 +19,8 @@
#include "device.h"
#include "mbed_error.h"
#include "lp_ticker_api.h"
#include "device/drivers/peripheral/mcwdt/cy_mcwdt.h"
#include "device/drivers/peripheral/sysint/cy_sysint.h"
#include "cy_mcwdt.h"
#include "cy_sysint.h"
#include "psoc6_utils.h"
#if DEVICE_LPTICKER

View File

@ -25,8 +25,8 @@
#include "gpio_irq_api.h"
#include "gpio_object.h"
#include "drivers/peripheral/sysclk/cy_sysclk.h"
#include "drivers/peripheral/syspm/cy_syspm.h"
#include "cy_sysclk.h"
#include "cy_syspm.h"
#ifdef __cplusplus
extern "C" {

View File

@ -30,7 +30,7 @@
* a global static variable for interrupt status saving.
*/
#include "syslib/cy_syslib.h"
#include "cy_syslib.h"
#define error(arg) CY_ASSERT(0)
#define MBED_ASSERT CY_ASSERT

View File

@ -22,8 +22,8 @@
#include <stdint.h>
#include <device.h>
#include "drivers/peripheral/gpio/cy_gpio.h"
#include "drivers/peripheral/sysclk/cy_sysclk.h"
#include "cy_gpio.h"
#include "cy_sysclk.h"
#else

View File

@ -27,10 +27,10 @@
#include "serial_api.h"
#include "psoc6_utils.h"
#include "drivers/peripheral/sysclk/cy_sysclk.h"
#include "drivers/peripheral/gpio/cy_gpio.h"
#include "drivers/peripheral/scb/cy_scb_uart.h"
#include "drivers/peripheral/sysint/cy_sysint.h"
#include "cy_sysclk.h"
#include "cy_gpio.h"
#include "cy_scb_uart.h"
#include "cy_sysint.h"
#define UART_OVERSAMPLE 12
#define UART_DEFAULT_BAUDRATE 115200

View File

@ -24,10 +24,10 @@
#include "spi_api.h"
#include "psoc6_utils.h"
#include "drivers/peripheral/sysclk/cy_sysclk.h"
#include "drivers/peripheral/gpio/cy_gpio.h"
#include "drivers/peripheral/scb/cy_scb_spi.h"
#include "drivers/peripheral/sysint/cy_sysint.h"
#include "cy_sysclk.h"
#include "cy_gpio.h"
#include "cy_scb_spi.h"
#include "cy_sysint.h"
#define SPI_DEFAULT_SPEED 100000
#define NUM_SPI_PORTS 8

View File

@ -23,10 +23,10 @@
#include "mbed_error.h"
#include "psoc6_utils.h"
#include "drivers/peripheral/sysint/cy_sysint.h"
#include "drivers/peripheral/sysclk/cy_sysclk.h"
#include "drivers/peripheral/tcpwm/cy_tcpwm_counter.h"
#include "drivers/peripheral/syspm/cy_syspm.h"
#include "cy_sysint.h"
#include "cy_sysclk.h"
#include "cy_tcpwm_counter.h"
#include "cy_syspm.h"
/** Each CPU core in PSoC6 needs its own usec timer.
** Although each of TCPWM timers have two compare registers,