mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10346 from lrusinowicz/sequana_armc6_fixes
FUTURE_SEQUANA: Add suport for ARMC6pull/10019/head
commit
67de89d119
|
@ -142,7 +142,13 @@ LR_IROM1 FLASH_START (FLASH_SIZE - 0x8000)
|
|||
* (.noinit)
|
||||
}
|
||||
|
||||
ARM_LIB_STACK RAM_START+RAM_SIZE EMPTY -Stack_Size
|
||||
; Application heap area (HEAP)
|
||||
ARM_LIB_HEAP +0
|
||||
{
|
||||
* (HEAP)
|
||||
}
|
||||
|
||||
ARM_LIB_STACK RAM_START + RAM_SIZE EMPTY - Stack_Size
|
||||
{ ; Stack region growing down
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -132,10 +132,6 @@ LR_IROM1 FLASH_START FLASH_SIZE
|
|||
.ANY (+RW, +ZI)
|
||||
}
|
||||
|
||||
ARM_LIB_STACK RAM_START+RAM_SIZE EMPTY -Stack_Size
|
||||
{ ; Stack region growing down
|
||||
}
|
||||
|
||||
; Place variables in the section that should not be initialized during the
|
||||
; device startup.
|
||||
RW_IRAM1 +0 UNINIT
|
||||
|
@ -143,6 +139,16 @@ LR_IROM1 FLASH_START FLASH_SIZE
|
|||
* (.noinit)
|
||||
}
|
||||
|
||||
; Application heap area (HEAP)
|
||||
ARM_LIB_HEAP +0
|
||||
{
|
||||
* (HEAP)
|
||||
}
|
||||
|
||||
ARM_LIB_STACK RAM_START + RAM_SIZE EMPTY - Stack_Size
|
||||
{ ; Stack region growing down
|
||||
}
|
||||
|
||||
; Used for the digital signature of the secure application and the
|
||||
; Bootloader SDK appication. The size of the section depends on the required
|
||||
; data size.
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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) */
|
||||
|
||||
|
||||
|
@ -409,7 +409,7 @@ void Cy_SystemInitFpuEnable(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 */
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
|
@ -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"
|
||||
|
@ -922,10 +922,12 @@ __STATIC_INLINE uint32_t Cy_CTDAC_GetInterruptStatus(const CTDAC_Type *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_CTDAC_ClearInterrupt(CTDAC_Type *base)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
base->INTR = CTDAC_INTR_VDAC_EMPTY_Msk;
|
||||
|
||||
/* Dummy read for buffered writes. */
|
||||
(void) base->INTR;
|
||||
unused = base->INTR;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
|
@ -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
|
|
@ -109,7 +109,7 @@
|
|||
*/
|
||||
|
||||
#include "cy_device_headers.h"
|
||||
#include "syslib/cy_syslib.h"
|
||||
#include "cy_syslib.h"
|
||||
|
||||
/***************************************
|
||||
* Macro Definitions
|
|
@ -296,7 +296,7 @@
|
|||
*/
|
||||
|
||||
#include <cy_device_headers.h>
|
||||
#include "syslib/cy_syslib.h"
|
||||
#include "cy_syslib.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
|
@ -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)
|
||||
|
@ -1566,15 +1566,17 @@ __STATIC_INLINE uint32_t Cy_GPIO_GetInterruptStatus(GPIO_PRT_Type* base, uint32_
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_GPIO_ClearInterrupt(GPIO_PRT_Type* base, uint32_t pinNum)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_GPIO_IS_FILTER_PIN_VALID(pinNum));
|
||||
|
||||
/* Any INTR MMIO registers AHB clearing must be preceded with an AHB read access */
|
||||
(void)base->INTR;
|
||||
unused = base->INTR;
|
||||
|
||||
base->INTR = CY_GPIO_INTR_STATUS_MASK << pinNum;
|
||||
|
||||
/* This read ensures that the initial write has been flushed out to the hardware */
|
||||
(void)base->INTR;
|
||||
unused = base->INTR;
|
||||
}
|
||||
|
||||
|
|
@ -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"
|
|
@ -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>
|
||||
|
@ -615,11 +615,13 @@ __STATIC_INLINE void Cy_IPC_Drv_SetInterrupt(IPC_INTR_STRUCT_Type* base, uint32
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_IPC_Drv_ClearInterrupt(IPC_INTR_STRUCT_Type* base, uint32_t ipcReleaseMask, uint32_t ipcNotifyMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L1(0ul == (ipcNotifyMask & ~(uint32_t)(IPC_STRUCT_NOTIFY_INTR_NOTIFY_Msk)));
|
||||
CY_ASSERT_L1(0ul == (ipcReleaseMask & ~(uint32_t)(IPC_STRUCT_RELEASE_INTR_RELEASE_Msk)));
|
||||
base->INTR = _VAL2FLD(IPC_INTR_STRUCT_INTR_NOTIFY, ipcNotifyMask) |
|
||||
_VAL2FLD(IPC_INTR_STRUCT_INTR_RELEASE, ipcReleaseMask);
|
||||
(void)base->INTR; /* Read the register to flush the cache */
|
||||
unused = base->INTR; /* Read the register to flush the cache */
|
||||
}
|
||||
|
||||
/** \} group_ipc_functions */
|
|
@ -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)
|
|
@ -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"
|
|
@ -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" {
|
|
@ -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"
|
|
@ -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>
|
||||
|
|
@ -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
|
|
@ -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)
|
|
@ -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"
|
|
@ -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"
|
||||
|
@ -1556,12 +1556,14 @@ __STATIC_INLINE uint32_t Cy_SAR_GetInterruptStatus(const SAR_Type *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SAR_ClearInterrupt(SAR_Type *base, uint32_t intrMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SAR_INTRMASK(intrMask));
|
||||
|
||||
base->INTR = intrMask;
|
||||
|
||||
/* Dummy read for buffered writes. */
|
||||
(void) base->INTR;
|
||||
unused = base->INTR;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -1710,12 +1712,14 @@ __STATIC_INLINE uint32_t Cy_SAR_GetRangeInterruptStatus(const SAR_Type *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SAR_ClearRangeInterrupt(SAR_Type *base, uint32_t chanMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SAR_CHANMASK(chanMask));
|
||||
|
||||
base->RANGE_INTR = chanMask;
|
||||
|
||||
/* Dummy read for buffered writes. */
|
||||
(void) base->RANGE_INTR;
|
||||
unused = base->RANGE_INTR;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -1851,12 +1855,14 @@ __STATIC_INLINE uint32_t Cy_SAR_GetSatInterruptStatus(const SAR_Type *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SAR_ClearSatInterrupt(SAR_Type *base, uint32_t chanMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SAR_CHANMASK(chanMask));
|
||||
|
||||
base->SATURATE_INTR = chanMask;
|
||||
|
||||
/* Dummy read for buffered writes. */
|
||||
(void) base->SATURATE_INTR;
|
||||
unused = base->SATURATE_INTR;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
|
@ -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"
|
||||
|
@ -660,10 +660,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetRxSrValid(CySCB_Type const *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearRxFifo(CySCB_Type* base)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
base->RX_FIFO_CTRL |= (uint32_t) SCB_RX_FIFO_CTRL_CLEAR_Msk;
|
||||
base->RX_FIFO_CTRL &= (uint32_t) ~SCB_RX_FIFO_CTRL_CLEAR_Msk;
|
||||
|
||||
(void) base->RX_FIFO_CTRL;
|
||||
unused = base->RX_FIFO_CTRL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -785,10 +787,12 @@ __STATIC_INLINE bool Cy_SCB_IsTxComplete(CySCB_Type const *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearTxFifo(CySCB_Type *base)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
base->TX_FIFO_CTRL |= (uint32_t) SCB_TX_FIFO_CTRL_CLEAR_Msk;
|
||||
base->TX_FIFO_CTRL &= (uint32_t) ~SCB_TX_FIFO_CTRL_CLEAR_Msk;
|
||||
|
||||
(void) base->TX_FIFO_CTRL;
|
||||
unused = base->TX_FIFO_CTRL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -958,10 +962,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetRxInterruptStatusMasked(CySCB_Type const *bas
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearRxInterrupt(CySCB_Type *base, uint32_t interruptMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SCB_IS_INTR_VALID(interruptMask, CY_SCB_RX_INTR_MASK));
|
||||
|
||||
base->INTR_RX = interruptMask;
|
||||
(void) base->INTR_RX;
|
||||
unused = base->INTR_RX;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1104,10 +1110,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetTxInterruptStatusMasked(CySCB_Type const *bas
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearTxInterrupt(CySCB_Type *base, uint32_t interruptMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SCB_IS_INTR_VALID(interruptMask, CY_SCB_TX_INTR_MASK));
|
||||
|
||||
base->INTR_TX = interruptMask;
|
||||
(void) base->INTR_TX;
|
||||
unused = base->INTR_TX;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1241,10 +1249,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetMasterInterruptStatusMasked(CySCB_Type const
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearMasterInterrupt(CySCB_Type *base, uint32_t interruptMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SCB_IS_INTR_VALID(interruptMask, CY_SCB_MASTER_INTR_MASK));
|
||||
|
||||
base->INTR_M = interruptMask;
|
||||
(void) base->INTR_M;
|
||||
unused = base->INTR_M;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1380,10 +1390,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetSlaveInterruptStatusMasked(CySCB_Type const *
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearSlaveInterrupt(CySCB_Type *base, uint32_t interruptMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SCB_IS_INTR_VALID(interruptMask, CY_SCB_SLAVE_INTR_MASK));
|
||||
|
||||
base->INTR_S = interruptMask;
|
||||
(void) base->INTR_S;
|
||||
unused = base->INTR_S;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1516,10 +1528,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetI2CInterruptStatusMasked(CySCB_Type const *ba
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearI2CInterrupt(CySCB_Type *base, uint32_t interruptMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SCB_IS_INTR_VALID(interruptMask, CY_SCB_I2C_INTR_MASK));
|
||||
|
||||
base->INTR_I2C_EC = interruptMask;
|
||||
(void) base->INTR_I2C_EC;
|
||||
unused = base->INTR_I2C_EC;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1629,10 +1643,12 @@ __STATIC_INLINE uint32_t Cy_SCB_GetSpiInterruptStatusMasked(CySCB_Type const *ba
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_ClearSpiInterrupt(CySCB_Type *base, uint32_t interruptMask)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
CY_ASSERT_L2(CY_SCB_IS_INTR_VALID(interruptMask, CY_SCB_SPI_INTR_MASK));
|
||||
|
||||
base->INTR_SPI_EC = interruptMask;
|
||||
(void) base->INTR_SPI_EC;
|
||||
unused = base->INTR_SPI_EC;
|
||||
}
|
||||
|
||||
/** \cond INTERNAL */
|
||||
|
@ -1707,6 +1723,8 @@ __STATIC_INLINE bool Cy_SCB_IsTxDataWidthByte(CySCB_Type const *base)
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_SCB_FwBlockReset(CySCB_Type *base)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
base->CTRL &= (uint32_t) ~SCB_CTRL_ENABLED_Msk;
|
||||
|
||||
/* Clean-up command registers */
|
||||
|
@ -1715,7 +1733,7 @@ __STATIC_INLINE void Cy_SCB_FwBlockReset(CySCB_Type *base)
|
|||
|
||||
base->CTRL |= (uint32_t) SCB_CTRL_ENABLED_Msk;
|
||||
|
||||
(void) base->CTRL;
|
||||
unused = base->CTRL;
|
||||
}
|
||||
|
||||
|
|
@ -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
|
|
@ -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"
|
||||
|
|
@ -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"
|
|
@ -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)
|
||||
|
@ -2069,6 +2069,8 @@ __STATIC_INLINE cy_en_sysclk_status_t
|
|||
Cy_SysClk_PeriphEnableDivider(cy_en_divider_types_t dividerType, uint32_t dividerNum)
|
||||
{
|
||||
cy_en_sysclk_status_t retval = CY_SYSCLK_BAD_PARAM;
|
||||
uint32_t unused;
|
||||
|
||||
if (dividerType <= CY_SYSCLK_DIV_24_5_BIT)
|
||||
{
|
||||
if (((dividerType == CY_SYSCLK_DIV_8_BIT) && (dividerNum < PERI_DIV_8_NR)) ||
|
||||
|
@ -2082,7 +2084,7 @@ __STATIC_INLINE cy_en_sysclk_status_t
|
|||
PERI_DIV_CMD_PA_DIV_SEL_Msk |
|
||||
_VAL2FLD(PERI_DIV_CMD_TYPE_SEL, dividerType) |
|
||||
_VAL2FLD(PERI_DIV_CMD_DIV_SEL, dividerNum);
|
||||
(void)PERI->DIV_CMD; /* dummy read to handle buffered writes */
|
||||
unused = PERI->DIV_CMD; /* dummy read to handle buffered writes */
|
||||
retval = CY_SYSCLK_SUCCESS;
|
||||
}
|
||||
}
|
|
@ -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)
|
|
@ -407,7 +407,7 @@ typedef enum
|
|||
/*******************************************************************************
|
||||
* Memory model definitions
|
||||
*******************************************************************************/
|
||||
#if defined(__ARMCC_VERSION)
|
||||
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 6000000)
|
||||
/** To create cross compiler compatible code, use the CY_NOINIT, CY_SECTION, CY_UNUSED, CY_ALIGN
|
||||
* attributes at the first place of declaration/definition.
|
||||
* For example: CY_NOINIT uint32_t noinitVar;
|
|
@ -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" {
|
|
@ -84,7 +84,7 @@
|
|||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include "syslib/cy_syslib.h"
|
||||
#include "cy_syslib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
|
@ -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
|
||||
|
@ -535,8 +535,10 @@ __STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptStatus(TCPWM_Type const *base, uin
|
|||
*******************************************************************************/
|
||||
__STATIC_INLINE void Cy_TCPWM_ClearInterrupt(TCPWM_Type *base, uint32_t cntNum, uint32_t source)
|
||||
{
|
||||
uint32_t unused;
|
||||
|
||||
base->CNT[cntNum].INTR = source;
|
||||
(void)base->CNT[cntNum].INTR;
|
||||
unused = base->CNT[cntNum].INTR;
|
||||
}
|
||||
|
||||
|
|
@ -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"
|
|
@ -11,7 +11,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*******************************************************************************/
|
||||
|
||||
#include "ctb/cy_ctb.h"
|
||||
#include "cy_ctb.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
|
@ -10,7 +10,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*******************************************************************************/
|
||||
|
||||
#include "ctdac/cy_ctdac.h"
|
||||
#include "cy_ctdac.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
|
@ -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 */
|
|
@ -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
|
|
@ -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 */
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
|
||||
#include "cy_sysclk.h"
|
||||
#include "syslib/cy_syslib.h"
|
||||
#include "cy_syslib.h"
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -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 */
|
||||
|
@ -47,7 +47,7 @@
|
|||
CY_NOINIT cy_stc_fault_frame_t cy_faultFrame;
|
||||
#endif /* (CY_ARM_FAULT_DEBUG == CY_ARM_FAULT_DEBUG_ENABLED) */
|
||||
|
||||
#if defined(__ARMCC_VERSION)
|
||||
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 6000000)
|
||||
static __ASM void Cy_SysLib_AsmInfiniteLoop(void) { b . };
|
||||
#endif /* (__ARMCC_VERSION) */
|
||||
|
||||
|
@ -500,7 +500,7 @@ void Cy_SysLib_FaultHandler(uint32_t const *faultStackAddr)
|
|||
*******************************************************************************/
|
||||
__WEAK void Cy_SysLib_ProcessingFault(void)
|
||||
{
|
||||
#if defined(__ARMCC_VERSION)
|
||||
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 6000000)
|
||||
/* Assembly implementation of an infinite loop
|
||||
* is used for the armcc compiler to preserve the call stack.
|
||||
* Otherwise, the compiler destroys the call stack,
|
|
@ -11,7 +11,7 @@
|
|||
*******************************************************************************/
|
||||
|
||||
#include "cy_wdt.h"
|
||||
#include "syslib/cy_syslib.h"
|
||||
#include "cy_syslib.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
|
@ -16,7 +16,8 @@
|
|||
|
||||
#include "device.h"
|
||||
#include "flash_api.h"
|
||||
#include "drivers/peripheral/flash/cy_flash.h"
|
||||
#include "cy_flash.h"
|
||||
#include <string.h>
|
||||
|
||||
#if DEVICE_FLASH
|
||||
|
||||
|
|
|
@ -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" {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -8330,6 +8330,7 @@
|
|||
},
|
||||
"FUTURE_SEQUANA_M0": {
|
||||
"inherits": ["MCU_PSOC6_M0"],
|
||||
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"],
|
||||
"supported_form_factors": ["ARDUINO"],
|
||||
"extra_labels_add": ["PSOC6_FUTURE", "CY8C63XX", "FUTURE_SEQUANA"],
|
||||
"extra_labels_remove": ["PSOC6"],
|
||||
|
@ -8359,6 +8360,7 @@
|
|||
},
|
||||
"FUTURE_SEQUANA": {
|
||||
"inherits": ["MCU_PSOC6_M4"],
|
||||
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"],
|
||||
"supported_form_factors": ["ARDUINO"],
|
||||
"extra_labels_add": ["PSOC6_FUTURE", "CY8C63XX", "CORDIO"],
|
||||
"extra_labels_remove": ["PSOC6"],
|
||||
|
|
Loading…
Reference in New Issue