mirror of https://github.com/ARMmbed/mbed-os.git
Added missing README files for Cypress PDL library. hex files subfolder moved up one level to avoid license confusion. Removed non-TLS implementation of TRNG. Removed unused crypto libraries and headers. Replaced Cypress copyright licence per agreement. Removed unsed eeprom emulation middleware files. Renamed assembler files from *.s to *.S Removed "device_name" from targets.json definitions as it is not supoprted yet.
parent
4a07001873
commit
43f5aa96fe
|
@ -0,0 +1,2 @@
|
||||||
|
version 3.0.1
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
README for Cypress Peripheral Driver Library
|
||||||
|
============================================
|
||||||
|
|
||||||
|
This folder tree contains parts (binary-only libraries and M0/M4 core specific files) of Cypress Peripheral Driver Library (PDL) necessary to support PSoC 6 MCUs. Library names have been changed (vs. standard PDL version) by prepending a "lib" prefix to fit Mbed OS build system conventions.
|
||||||
|
See [Cypress PDL page](http://www.cypress.com/documentation/software-and-drivers/peripheral-driver-library-pdl) for details.
|
|
@ -27,9 +27,7 @@
|
||||||
;*******************************************************************************
|
;*******************************************************************************
|
||||||
;* \copyright
|
;* \copyright
|
||||||
;* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
;* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
;* You may use this file only in accordance with the license, terms, conditions,
|
;* SPDX-License-Identifier: Apache-2.0
|
||||||
;* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
;* the software package with which this file was provided.
|
|
||||||
;******************************************************************************/
|
;******************************************************************************/
|
||||||
|
|
||||||
; The defines below describe the location and size of blocks of memory in the target.
|
; The defines below describe the location and size of blocks of memory in the target.
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -20,9 +20,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -20,9 +20,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -7,13 +7,9 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* Copyright 2017-2018, Future Electronics
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
/*
|
|
||||||
* Copyright (c) 20017-2018 Future Electronics
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
version 3.0.1
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
README for Cypress Peripheral Driver Library
|
||||||
|
============================================
|
||||||
|
|
||||||
|
This folder tree contains parts (binary-only libraries and M0/M4 core specific files) of Cypress Peripheral Driver Library (PDL) necessary to support PSoC 6 MCUs. Library names have been changed (vs. standard PDL version) by prepending a "lib" prefix to fit Mbed OS build system conventions.
|
||||||
|
See [Cypress PDL page](http://www.cypress.com/documentation/software-and-drivers/peripheral-driver-library-pdl) for details.
|
|
@ -27,9 +27,7 @@
|
||||||
;*******************************************************************************
|
;*******************************************************************************
|
||||||
;* \copyright
|
;* \copyright
|
||||||
;* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
;* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
;* You may use this file only in accordance with the license, terms, conditions,
|
;* SPDX-License-Identifier: Apache-2.0
|
||||||
;* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
;* the software package with which this file was provided.
|
|
||||||
;******************************************************************************/
|
;******************************************************************************/
|
||||||
|
|
||||||
; The defines below describe the location and size of blocks of memory in the target.
|
; The defines below describe the location and size of blocks of memory in the target.
|
||||||
|
|
|
@ -20,9 +20,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||||
|
|
|
@ -20,9 +20,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
||||||
|
|
|
@ -2,6 +2,7 @@ README for pre-compiled PSoC 6 Cortex M0+ core images
|
||||||
=====================================================
|
=====================================================
|
||||||
|
|
||||||
This folder contains precompiled program images for the CM0+ core of the PSoC 6(63xx) MCU suitable for use with MBed OS applications running on CM4 core. Two images are available:
|
This folder contains precompiled program images for the CM0+ core of the PSoC 6(63xx) MCU suitable for use with MBed OS applications running on CM4 core. Two images are available:
|
||||||
|
|
||||||
* `psoc63_m0_default_1.01.hex`
|
* `psoc63_m0_default_1.01.hex`
|
||||||
|
|
||||||
This image contains basic code, that brings up the chip, starts CM4 core and puts CM0+ core into a deep sleep. It is suitable for use with all Mbed applications except those intendif to use BLE feature.
|
This image contains basic code, that brings up the chip, starts CM4 core and puts CM0+ core into a deep sleep. It is suitable for use with all Mbed applications except those intendif to use BLE feature.
|
|
@ -7,13 +7,9 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* Copyright 2017-2018, Future Electronics
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
/*
|
|
||||||
* Copyright (c) 20017-2018 Future Electronics
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
|
@ -1,32 +1,18 @@
|
||||||
/* mbed Microcontroller Library
|
/* mbed Microcontroller Library
|
||||||
* A generic CMSIS include header
|
* A generic CMSIS include header
|
||||||
*******************************************************************************
|
* Copyright (c) 2017-2018 Future Electronics
|
||||||
* Copyright (c) XXX
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of ARM nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
* See the License for the specific language governing permissions and
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
* limitations under the License.
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*******************************************************************************
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBED_CMSIS_H
|
#ifndef MBED_CMSIS_H
|
||||||
|
|
|
@ -11,9 +11,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef _CY8C6347BZI_BLD53_H_
|
#ifndef _CY8C6347BZI_BLD53_H_
|
||||||
|
|
|
@ -11,9 +11,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef _CY_DEVICE_HEADERS_H_
|
#ifndef _CY_DEVICE_HEADERS_H_
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "ipc/cy_ipc_drv.h"
|
#include "ipc/cy_ipc_drv.h"
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef CY_IPC_CONFIG_H
|
#ifndef CY_IPC_CONFIG_H
|
||||||
|
|
|
@ -8,10 +8,8 @@
|
||||||
* This file is automatically generated by PSoC Creator.
|
* This file is automatically generated by PSoC Creator.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* Copyright (c) 2007-2017 Cypress Semiconductor. All rights reserved.
|
* Copyright 2007-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef _GPIO_PSOC63_116_BGA_BLE_H_
|
#ifndef _GPIO_PSOC63_116_BGA_BLE_H_
|
||||||
|
|
|
@ -11,9 +11,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef _PSOC63_CONFIG_H_
|
#ifndef _PSOC63_CONFIG_H_
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* File Name: cyfitter_cfg.c
|
* File Name: board_config.c (formerly cyfitter_cfg.c)
|
||||||
*
|
*
|
||||||
* PSoC Creator 4.2
|
* PSoC Creator 4.2
|
||||||
*
|
*
|
||||||
|
@ -10,14 +10,10 @@
|
||||||
* This file is automatically generated by PSoC Creator.
|
* This file is automatically generated by PSoC Creator.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* Copyright (c) 2007-2017 Cypress Semiconductor. All rights reserved.
|
* Copyright 2007-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* Copyright 2017-2018, Future Electronics
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* the software package with which this file was provided.
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
/*
|
|
||||||
* Copyright (c) 20017-2018 Future Electronics
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
version 3.0.1
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
README for Cypress Peripheral Driver Library
|
||||||
|
============================================
|
||||||
|
|
||||||
|
This folder tree contains parts of Cypress Peripheral Driver Library (PDL) necessary to support PSoC 6 MCUs. See [Cypress PDL page](http://www.cypress.com/documentation/software-and-drivers/peripheral-driver-library-pdl) for details.
|
File diff suppressed because it is too large
Load Diff
|
@ -1,733 +0,0 @@
|
||||||
/***************************************************************************//**
|
|
||||||
* \file cy_crypto_common.h
|
|
||||||
* \version 2.0
|
|
||||||
*
|
|
||||||
* \brief
|
|
||||||
* This file provides common constants and parameters
|
|
||||||
* for the Crypto driver.
|
|
||||||
*
|
|
||||||
********************************************************************************
|
|
||||||
* \copyright
|
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
#if !defined(CY_CRYPTO_COMMON_H)
|
|
||||||
#define CY_CRYPTO_COMMON_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include "cy_device_headers.h"
|
|
||||||
#include "sysint/cy_sysint.h"
|
|
||||||
#include "syslib/cy_syslib.h"
|
|
||||||
|
|
||||||
#ifndef CY_IP_MXCRYPTO
|
|
||||||
#error "The CRYPTO driver is not supported on this device"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_PRESENT == 1)
|
|
||||||
|
|
||||||
#define CY_CRYPTO_CORE_ENABLE (1)
|
|
||||||
|
|
||||||
/** Driver major version */
|
|
||||||
#define CY_CRYPTO_DRV_VERSION_MAJOR 2
|
|
||||||
|
|
||||||
/** Driver minor version */
|
|
||||||
#define CY_CRYPTO_DRV_VERSION_MINOR 0
|
|
||||||
|
|
||||||
/** Defines the Crypto notify interrupt number */
|
|
||||||
#define CY_CRYPTO_IPC_INTR_NOTIFY_NUM CY_IPC_INTR_CRYPTO_SRV
|
|
||||||
|
|
||||||
/** Defines the Crypto release interrupt number */
|
|
||||||
#define CY_CRYPTO_IPC_INTR_RELEASE_NUM CY_IPC_INTR_CRYPTO_CLI
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_macros
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Defines Crypto_Sync blocking execution type parameter */
|
|
||||||
#define CY_CRYPTO_SYNC_BLOCKING (true)
|
|
||||||
|
|
||||||
/** Defines Crypto_Sync non-blocking execution type parameter */
|
|
||||||
#define CY_CRYPTO_SYNC_NON_BLOCKING (false)
|
|
||||||
|
|
||||||
/** Defines the Crypto DES key size (in bytes) */
|
|
||||||
#define CY_CRYPTO_DES_KEY_SIZE (8u)
|
|
||||||
|
|
||||||
/** Defines the Crypto TDES key size (in bytes) */
|
|
||||||
#define CY_CRYPTO_TDES_KEY_SIZE (24u)
|
|
||||||
|
|
||||||
/** Defines the Crypto AES block size (in bytes) */
|
|
||||||
#define CY_CRYPTO_AES_BLOCK_SIZE (16u)
|
|
||||||
|
|
||||||
/** Defines the Crypto AES_128 key maximum size (in bytes) */
|
|
||||||
#define CY_CRYPTO_AES_128_KEY_SIZE (16u)
|
|
||||||
|
|
||||||
/** Defines the Crypto AES_192 key maximum size (in bytes) */
|
|
||||||
#define CY_CRYPTO_AES_192_KEY_SIZE (24u)
|
|
||||||
|
|
||||||
/** Defines the Crypto AES_256 key maximum size (in bytes) */
|
|
||||||
#define CY_CRYPTO_AES_256_KEY_SIZE (32u)
|
|
||||||
|
|
||||||
/** Defines size of the AES block, in four-byte words */
|
|
||||||
#define CY_CRYPTO_AES_BLOCK_SIZE_U32 (uint32_t)(CY_CRYPTO_AES_BLOCK_SIZE / 4ul)
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA == 1)
|
|
||||||
|
|
||||||
/** Hash size for the SHA1 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA1_DIGEST_SIZE (20u)
|
|
||||||
/** Hash size for the SHA224 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA224_DIGEST_SIZE (28u)
|
|
||||||
/** Hash size for the SHA256 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA256_DIGEST_SIZE (32u)
|
|
||||||
/** Hash size for the SHA384 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA384_DIGEST_SIZE (48u)
|
|
||||||
/** Hash size for the SHA512 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA512_DIGEST_SIZE (64u)
|
|
||||||
/** Hash size for the SHA512_224 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA512_224_DIGEST_SIZE (28u)
|
|
||||||
/** Hash size for the SHA512_256 mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_SHA512_256_DIGEST_SIZE (32u)
|
|
||||||
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA == 1) */
|
|
||||||
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_VU == 1)
|
|
||||||
|
|
||||||
/** Processed message size for the RSA 1024Bit mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_RSA1024_MESSAGE_SIZE (128)
|
|
||||||
/** Processed message size for the RSA 1536Bit mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_RSA1536_MESSAGE_SIZE (192)
|
|
||||||
/** Processed message size for the RSA 2048Bit mode (in bytes) */
|
|
||||||
#define CY_CRYPTO_RSA2048_MESSAGE_SIZE (256)
|
|
||||||
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_VU == 1) */
|
|
||||||
|
|
||||||
|
|
||||||
/** Crypto Driver PDL ID */
|
|
||||||
#define CY_CRYPTO_ID CY_PDL_DRV_ID(0x0Cu)
|
|
||||||
|
|
||||||
/** \} group_crypto_macros */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_config_structure
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** The Crypto user callback function type.
|
|
||||||
Callback is called at the end of Crypto calculation. */
|
|
||||||
typedef void (*cy_crypto_callback_ptr_t)(void);
|
|
||||||
|
|
||||||
/** The Crypto configuration structure. */
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Defines the IPC channel used for client-server data exchange */
|
|
||||||
uint32_t ipcChannel;
|
|
||||||
|
|
||||||
/** Specifies the IPC notifier channel (IPC interrupt structure number)
|
|
||||||
to notify server that data for the operation is prepared */
|
|
||||||
uint32_t acquireNotifierChannel;
|
|
||||||
|
|
||||||
/** Specifies the IPC notifier channel (IPC interrupt structure number)
|
|
||||||
to notify client that operation is complete and data is valid */
|
|
||||||
uint32_t releaseNotifierChannel;
|
|
||||||
|
|
||||||
/** Specifies the release notifier interrupt configuration. It used for
|
|
||||||
internal purposes and user doesn't fill it. */
|
|
||||||
cy_stc_sysint_t releaseNotifierConfig;
|
|
||||||
|
|
||||||
/** User callback function.
|
|
||||||
If this field is NOT NULL, it called when Crypto operation
|
|
||||||
is complete. */
|
|
||||||
cy_crypto_callback_ptr_t userCompleteCallback;
|
|
||||||
|
|
||||||
#if (CY_CRYPTO_CORE_ENABLE)
|
|
||||||
/** Server-side user IRQ handler function, called when data for the
|
|
||||||
operation is prepared to process.
|
|
||||||
- If this field is NULL, server will use own interrupt handler
|
|
||||||
to get data.
|
|
||||||
- If this field is not NULL, server will call this interrupt handler.
|
|
||||||
This interrupt handler must call the
|
|
||||||
\ref Cy_Crypto_Server_GetDataHandler to get data to process.
|
|
||||||
|
|
||||||
Note: In the second case user should process data separately and
|
|
||||||
clear interrupt by calling \ref Cy_Crypto_Server_Process.
|
|
||||||
This model is used in the
|
|
||||||
multitasking environment. */
|
|
||||||
cy_israddress userGetDataHandler;
|
|
||||||
|
|
||||||
/** Server-side user IRQ handler function, called when a Crypto hardware
|
|
||||||
error occurs (interrupt was raised).
|
|
||||||
- If this field is NULL - server will use own interrupt handler
|
|
||||||
for error processing.
|
|
||||||
- If this field is not NULL - server will call this interrupt handler.
|
|
||||||
This interrupt handler must call the
|
|
||||||
\ref Cy_Crypto_Server_ErrorHandler to clear the interrupt. */
|
|
||||||
cy_israddress userErrorHandler;
|
|
||||||
|
|
||||||
/** Specifies the prepared data notifier interrupt configuration. It used
|
|
||||||
for internal purposes and user doesn't fill it. */
|
|
||||||
cy_stc_sysint_t acquireNotifierConfig;
|
|
||||||
|
|
||||||
/** Specifies the hardware error processing interrupt configuration. It used
|
|
||||||
for internal purposes and user doesn't fill it. */
|
|
||||||
cy_stc_sysint_t cryptoErrorIntrConfig;
|
|
||||||
#endif /* (CY_CRYPTO_CORE_ENABLE) */
|
|
||||||
|
|
||||||
} cy_stc_crypto_config_t;
|
|
||||||
|
|
||||||
/** \} group_crypto_config_structure */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_cli_data_structures
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_VU == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the RSA public key and
|
|
||||||
* additional coefficients to accelerate RSA calculation.
|
|
||||||
*
|
|
||||||
* RSA key contained from two fields:
|
|
||||||
* - n - modulus part of the key
|
|
||||||
* - e - exponent part of the key.
|
|
||||||
*
|
|
||||||
* Other fields are accelerating coefficients and can be calculated by
|
|
||||||
* \ref Cy_Crypto_Rsa_CalcCoefs.
|
|
||||||
*
|
|
||||||
* \note The <b>modulus</b> and <b>exponent</b> values in the
|
|
||||||
* \ref cy_stc_crypto_rsa_pub_key_t must also be in little-endian order.<br>
|
|
||||||
* Use \ref Cy_Crypto_Rsa_InvertEndianness function to convert to or from
|
|
||||||
* little-endian order.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** The pointer to the modulus part of public key. */
|
|
||||||
uint8_t *moduloPtr;
|
|
||||||
/** The modulus length, in bits, maximum supported size is 2048Bit */
|
|
||||||
uint32_t moduloLength;
|
|
||||||
|
|
||||||
/** The pointer to the exponent part of public key */
|
|
||||||
uint8_t *pubExpPtr;
|
|
||||||
/** The exponent length, in bits, maximum supported size is 256Bit */
|
|
||||||
uint32_t pubExpLength;
|
|
||||||
|
|
||||||
/** The pointer to the Barrett coefficient. Memory for it should be
|
|
||||||
allocated by user with size moduloLength + 1. */
|
|
||||||
uint8_t *barretCoefPtr;
|
|
||||||
|
|
||||||
/** The pointer to the binary inverse of the modulo. Memory for it
|
|
||||||
should be allocated by user with size moduloLength. */
|
|
||||||
uint8_t *inverseModuloPtr;
|
|
||||||
|
|
||||||
/** The pointer to the (2^moduloLength mod modulo). Memory for it should
|
|
||||||
be allocated by user with size moduloLength */
|
|
||||||
uint8_t *rBarPtr;
|
|
||||||
} cy_stc_crypto_rsa_pub_key_t;
|
|
||||||
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_VU == 1) */
|
|
||||||
|
|
||||||
/** Structure for storing a description of a Crypto hardware error */
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
Captures error description information:
|
|
||||||
for INSTR_OPC_ERROR: - violating the instruction.
|
|
||||||
for INSTR_CC_ERROR : - violating the instruction condition code.
|
|
||||||
for BUS_ERROR : - violating the transfer address. */
|
|
||||||
uint32_t errorStatus0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
[31] - Specifies if ERROR_STATUS0 and ERROR_STATUS1 capture valid
|
|
||||||
error-information.
|
|
||||||
[26..24] - The error source:
|
|
||||||
"0": INSTR_OPC_ERROR - an instruction decoder error.
|
|
||||||
"1": INSTR_CC_ERROR - an instruction condition code-error.
|
|
||||||
"2": BUS_ERROR - a bus master interface AHB-Lite bus-error.
|
|
||||||
"3": TR_AP_DETECT_ERROR.
|
|
||||||
[23..0] - Captures error description information.
|
|
||||||
For BUS_ERROR:
|
|
||||||
- violating the transfer, read the attribute (DATA23[0]).
|
|
||||||
- violating the transfer, the size attribute (DATA23[5:4]).
|
|
||||||
"0": an 8-bit transfer;
|
|
||||||
"1": 16 bits transfer;
|
|
||||||
"2": 32-bit transfer. */
|
|
||||||
uint32_t errorStatus1;
|
|
||||||
} cy_stc_crypto_hw_error_t;
|
|
||||||
|
|
||||||
/** \} group_crypto_cli_data_structures */
|
|
||||||
|
|
||||||
|
|
||||||
/** The Crypto library functionality level. */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
CY_CRYPTO_NO_LIBRARY = 0x00u,
|
|
||||||
CY_CRYPTO_BASE_LIBRARY = 0x01u,
|
|
||||||
CY_CRYPTO_EXTRA_LIBRARY = 0x02u,
|
|
||||||
CY_CRYPTO_FULL_LIBRARY = 0x03u,
|
|
||||||
} cy_en_crypto_lib_info_t;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_enums
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_AES == 1)
|
|
||||||
/** The key length options for the AES method. */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
CY_CRYPTO_KEY_AES_128 = 0x00u, /**< The AES key size is 128 bits */
|
|
||||||
CY_CRYPTO_KEY_AES_192 = 0x01u, /**< The AES key size is 192 bits */
|
|
||||||
CY_CRYPTO_KEY_AES_256 = 0x02u /**< The AES key size is 256 bits */
|
|
||||||
} cy_en_crypto_aes_key_length_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_AES == 1) */
|
|
||||||
|
|
||||||
/** Defines the direction of the Crypto methods */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
/** The forward mode, plain text will be encrypted into cipher text */
|
|
||||||
CY_CRYPTO_ENCRYPT = 0x00u,
|
|
||||||
/** The reverse mode, cipher text will be decrypted into plain text */
|
|
||||||
CY_CRYPTO_DECRYPT = 0x01u
|
|
||||||
} cy_en_crypto_dir_mode_t;
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA == 1)
|
|
||||||
/** Defines modes of SHA method */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
#if (CPUSS_CRYPTO_SHA1 == 1)
|
|
||||||
CY_CRYPTO_MODE_SHA1 = 0x00u, /**< Sets the SHA1 mode */
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA1 == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA256 == 1)
|
|
||||||
CY_CRYPTO_MODE_SHA224 = 0x11u, /**< Sets the SHA224 mode */
|
|
||||||
CY_CRYPTO_MODE_SHA256 = 0x01u, /**< Sets the SHA256 mode */
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA256 == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA512 == 1)
|
|
||||||
CY_CRYPTO_MODE_SHA384 = 0x12u, /**< Sets the SHA384 mode */
|
|
||||||
CY_CRYPTO_MODE_SHA512 = 0x02u, /**< Sets the SHA512 mode */
|
|
||||||
CY_CRYPTO_MODE_SHA512_256 = 0x22u, /**< Sets the SHA512/256 mode */
|
|
||||||
CY_CRYPTO_MODE_SHA512_224 = 0x32u /**< Sets the SHA512/224 mode */
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA512 == 1) */
|
|
||||||
} cy_en_crypto_sha_mode_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA == 1) */
|
|
||||||
|
|
||||||
/** Signature verification status */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
CY_CRYPTO_RSA_VERIFY_SUCCESS = 0x00u, /**< PKCS1-v1.5 verify SUCCESS */
|
|
||||||
CY_CRYPTO_RSA_VERIFY_FAIL = 0x01u /**< PKCS1-v1.5 verify FAILED */
|
|
||||||
} cy_en_crypto_rsa_ver_result_t;
|
|
||||||
|
|
||||||
/** Errors of the Crypto block */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
/** Operation completed successfully. */
|
|
||||||
CY_CRYPTO_SUCCESS = 0x00u,
|
|
||||||
|
|
||||||
/** A hardware error occurred, detailed information is in stc_crypto_hw_error_t. */
|
|
||||||
CY_CRYPTO_HW_ERROR = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x01u,
|
|
||||||
|
|
||||||
/** The size of input data is not multiple of 16. */
|
|
||||||
CY_CRYPTO_SIZE_NOT_X16 = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x02u,
|
|
||||||
|
|
||||||
/** The key for the DES method is weak. */
|
|
||||||
CY_CRYPTO_DES_WEAK_KEY = CY_CRYPTO_ID | CY_PDL_STATUS_WARNING | 0x03u,
|
|
||||||
|
|
||||||
/** Communication between the client and server via IPC is broken. */
|
|
||||||
CY_CRYPTO_COMM_FAIL = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x04u,
|
|
||||||
|
|
||||||
/** The Crypto server is not started. */
|
|
||||||
CY_CRYPTO_SERVER_NOT_STARTED = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x06u,
|
|
||||||
|
|
||||||
/** The Crypto server in process state. */
|
|
||||||
CY_CRYPTO_SERVER_BUSY = CY_CRYPTO_ID | CY_PDL_STATUS_INFO | 0x07u,
|
|
||||||
|
|
||||||
/** The Crypto driver is not initialized. */
|
|
||||||
CY_CRYPTO_NOT_INITIALIZED = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x08u,
|
|
||||||
|
|
||||||
/** The Crypto hardware is not enabled. */
|
|
||||||
CY_CRYPTO_HW_NOT_ENABLED = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x09u,
|
|
||||||
|
|
||||||
/** The Crypto operation is not supported. */
|
|
||||||
CY_CRYPTO_NOT_SUPPORTED = CY_CRYPTO_ID | CY_PDL_STATUS_ERROR | 0x0Au
|
|
||||||
|
|
||||||
} cy_en_crypto_status_t;
|
|
||||||
|
|
||||||
/** \} group_crypto_enums */
|
|
||||||
|
|
||||||
/** \cond INTERNAL */
|
|
||||||
|
|
||||||
/** Instruction to communicate between Client and Server */
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
CY_CRYPTO_INSTR_UNKNOWN = 0x00u,
|
|
||||||
CY_CRYPTO_INSTR_ENABLE = 0x01u,
|
|
||||||
CY_CRYPTO_INSTR_DISABLE = 0x02u,
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_PR == 1)
|
|
||||||
CY_CRYPTO_INSTR_PRNG_INIT = 0x03u,
|
|
||||||
CY_CRYPTO_INSTR_PRNG = 0x04u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_PR == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_TR == 1)
|
|
||||||
CY_CRYPTO_INSTR_TRNG_INIT = 0x05u,
|
|
||||||
CY_CRYPTO_INSTR_TRNG = 0x06u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_PR == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_AES == 1)
|
|
||||||
CY_CRYPTO_INSTR_AES_INIT = 0x07u,
|
|
||||||
CY_CRYPTO_INSTR_AES_ECB = 0x08u,
|
|
||||||
CY_CRYPTO_INSTR_AES_CBC = 0x09u,
|
|
||||||
CY_CRYPTO_INSTR_AES_CFB = 0x0Au,
|
|
||||||
CY_CRYPTO_INSTR_AES_CTR = 0x0Bu,
|
|
||||||
CY_CRYPTO_INSTR_CMAC = 0x0Cu,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_AES == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA == 1)
|
|
||||||
CY_CRYPTO_INSTR_SHA = 0x0Du,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA == 1)
|
|
||||||
CY_CRYPTO_INSTR_HMAC = 0x0Eu,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_STR == 1)
|
|
||||||
CY_CRYPTO_INSTR_MEM_CPY = 0x0Fu,
|
|
||||||
CY_CRYPTO_INSTR_MEM_SET = 0x10u,
|
|
||||||
CY_CRYPTO_INSTR_MEM_CMP = 0x11u,
|
|
||||||
CY_CRYPTO_INSTR_MEM_XOR = 0x12u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_STR == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_CRC == 1)
|
|
||||||
CY_CRYPTO_INSTR_CRC_INIT = 0x13u,
|
|
||||||
CY_CRYPTO_INSTR_CRC = 0x14u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_CRC == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_DES == 1)
|
|
||||||
CY_CRYPTO_INSTR_DES = 0x15u,
|
|
||||||
CY_CRYPTO_INSTR_3DES = 0x16u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_DES == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_VU == 1)
|
|
||||||
CY_CRYPTO_INSTR_RSA_PROC = 0x17u,
|
|
||||||
CY_CRYPTO_INSTR_RSA_COEF = 0x18u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_VU == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA == 1)
|
|
||||||
CY_CRYPTO_INSTR_RSA_VER = 0x19u,
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA == 1) */
|
|
||||||
|
|
||||||
CY_CRYPTO_INSTR_SRV_INFO = 0x55u
|
|
||||||
} cy_en_crypto_comm_instr_t;
|
|
||||||
|
|
||||||
/** \endcond */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_cli_data_structures
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_AES == 1)
|
|
||||||
/** Structure for storing the AES state */
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Pointer to AES key */
|
|
||||||
uint32_t *key;
|
|
||||||
/** Pointer to AES inversed key */
|
|
||||||
uint32_t *invKey;
|
|
||||||
/** AES key length */
|
|
||||||
cy_en_crypto_aes_key_length_t keyLength;
|
|
||||||
/** AES processed block index (for CMAC, SHA operations) */
|
|
||||||
uint32_t blockIdx;
|
|
||||||
} cy_stc_crypto_aes_state_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_AES == 1) */
|
|
||||||
|
|
||||||
/** \} group_crypto_cli_data_structures */
|
|
||||||
|
|
||||||
/*************************************************************
|
|
||||||
* Structures used for communication between Client and Server
|
|
||||||
***************************************************************/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_srv_data_structures
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the server
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** IPC communication channel number */
|
|
||||||
uint32_t ipcChannel;
|
|
||||||
/** IPC acquire interrupt channel number */
|
|
||||||
uint32_t acquireNotifierChannel;
|
|
||||||
/** IPC release interrupt channel number */
|
|
||||||
cy_israddress getDataHandlerPtr;
|
|
||||||
/** Crypto hardware errors interrupt handler */
|
|
||||||
cy_israddress errorHandlerPtr;
|
|
||||||
/** Acquire notifier interrupt configuration */
|
|
||||||
cy_stc_sysint_t acquireNotifierConfig;
|
|
||||||
/** Crypto hardware errors interrupt configuration */
|
|
||||||
cy_stc_sysint_t cryptoErrorIntrConfig;
|
|
||||||
/** Hardware error occurrence flag */
|
|
||||||
bool isHwErrorOccured;
|
|
||||||
} cy_stc_crypto_server_context_t;
|
|
||||||
|
|
||||||
/** \} group_crypto_srv_data_structures */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_cli_data_structures
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the global
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Operation instruction code */
|
|
||||||
cy_en_crypto_comm_instr_t instr;
|
|
||||||
/** Response from executed crypto function */
|
|
||||||
cy_en_crypto_status_t resp;
|
|
||||||
/** Hardware processing errors */
|
|
||||||
cy_stc_crypto_hw_error_t hwErrorStatus;
|
|
||||||
/** IPC communication channel number */
|
|
||||||
uint32_t ipcChannel;
|
|
||||||
/** IPC acquire interrupt channel number */
|
|
||||||
uint32_t acquireNotifierChannel;
|
|
||||||
/** IPC release interrupt channel number */
|
|
||||||
uint32_t releaseNotifierChannel;
|
|
||||||
/** User callback for Crypto HW calculation complete event */
|
|
||||||
cy_crypto_callback_ptr_t userCompleteCallback;
|
|
||||||
/** Release notifier interrupt configuration */
|
|
||||||
cy_stc_sysint_t releaseNotifierConfig;
|
|
||||||
/** Pointer to the crypto function specific context data */
|
|
||||||
void *xdata;
|
|
||||||
} cy_stc_crypto_context_t;
|
|
||||||
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_DES == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the DES operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Operation direction (Encrypt / Decrypt) */
|
|
||||||
cy_en_crypto_dir_mode_t dirMode;
|
|
||||||
/** Pointer to key data */
|
|
||||||
uint32_t *key;
|
|
||||||
/** Pointer to data destination block */
|
|
||||||
uint32_t *dst;
|
|
||||||
/** Pointer to data source block */
|
|
||||||
uint32_t *src;
|
|
||||||
} cy_stc_crypto_context_des_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_DES == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_AES == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the AES operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** AES state data */
|
|
||||||
cy_stc_crypto_aes_state_t aesState;
|
|
||||||
/** Operation direction (Encrypt / Decrypt) */
|
|
||||||
cy_en_crypto_dir_mode_t dirMode;
|
|
||||||
/** Operation data size */
|
|
||||||
uint32_t srcSize;
|
|
||||||
/** Size of the last non-complete block (for CTR mode only) */
|
|
||||||
uint32_t *srcOffset;
|
|
||||||
/** Initialization vector, in the CTR mode is used as nonceCounter */
|
|
||||||
uint32_t *ivPtr;
|
|
||||||
/** AES processed block pointer (for CTR mode only) */
|
|
||||||
uint32_t *streamBlock;
|
|
||||||
/** Pointer to data destination block */
|
|
||||||
uint32_t *dst;
|
|
||||||
/** Pointer to data source block */
|
|
||||||
uint32_t *src;
|
|
||||||
} cy_stc_crypto_context_aes_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_AES == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_SHA == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the SHA operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Pointer to data source block */
|
|
||||||
uint32_t *message;
|
|
||||||
/** Operation data size */
|
|
||||||
uint32_t messageSize;
|
|
||||||
/** Pointer to data destination block */
|
|
||||||
uint32_t *dst;
|
|
||||||
/** SHA mode */
|
|
||||||
cy_en_crypto_sha_mode_t mode;
|
|
||||||
/** Pointer to key data (for HMAC only) */
|
|
||||||
uint32_t *key;
|
|
||||||
/** Key data length (for HMAC only) */
|
|
||||||
uint32_t keyLength;
|
|
||||||
} cy_stc_crypto_context_sha_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_SHA == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_PR == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the PRNG operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
uint32_t lfsr32InitState; /**< lfsr32 initialization data */
|
|
||||||
uint32_t lfsr31InitState; /**< lfsr31 initialization data */
|
|
||||||
uint32_t lfsr29InitState; /**< lfsr29 initialization data */
|
|
||||||
uint32_t max; /**< Maximum of the generated value */
|
|
||||||
uint32_t *prngNum; /**< Pointer to generated value */
|
|
||||||
} cy_stc_crypto_context_prng_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_PR == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_TR == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the TRNG operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
The polynomial for the programmable Galois ring oscillator (TR_GARO_CTL).
|
|
||||||
The polynomial is represented WITHOUT the high order bit (this bit is
|
|
||||||
always assumed '1').
|
|
||||||
The polynomial should be aligned so that more significant bits
|
|
||||||
(bit 30 and down) contain the polynomial and less significant bits
|
|
||||||
(bit 0 and up) contain padding '0's. */
|
|
||||||
uint32_t GAROPol;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The polynomial for the programmable Fibonacci ring oscillator(TR_FIRO_CTL).
|
|
||||||
The polynomial is represented WITHOUT the high order bit (this bit is
|
|
||||||
always assumed '1').
|
|
||||||
The polynomial should be aligned so that more significant bits
|
|
||||||
(bit 30 and down) contain the polynomial and less significant bits
|
|
||||||
(bit 0 and up) contain padding '0's. */
|
|
||||||
uint32_t FIROPol;
|
|
||||||
/** Maximum of the generated value */
|
|
||||||
uint32_t max;
|
|
||||||
/** Pointer to generated value */
|
|
||||||
uint32_t *trngNum;
|
|
||||||
} cy_stc_crypto_context_trng_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_TR == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_STR == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the STR operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
void const *src0; /**< Pointer to 1-st string source */
|
|
||||||
void const *src1; /**< Pointer to 2-nd string source */
|
|
||||||
void *dst; /**< Pointer to string destination */
|
|
||||||
uint32_t dataSize; /**< Operation data size */
|
|
||||||
uint32_t data; /**< Operation data value (for memory setting) */
|
|
||||||
} cy_stc_crypto_context_str_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_STR == 1) */
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_CRC == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the CRC operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
void* srcData; /**< Pointer to data source block */
|
|
||||||
uint32_t dataSize; /**< Operation data size */
|
|
||||||
uint32_t *crc; /**< Pointer to CRC destination variable */
|
|
||||||
uint32_t polynomial; /**< Polynomial for CRC calculate */
|
|
||||||
uint32_t lfsrInitState; /**< CRC calculation initial value */
|
|
||||||
uint32_t dataReverse; /**< Input data reverse flag */
|
|
||||||
uint32_t dataXor; /**< Input data XOR flag */
|
|
||||||
uint32_t remReverse; /**< Output data reverse flag */
|
|
||||||
uint32_t remXor; /**< Output data XOR flag */
|
|
||||||
} cy_stc_crypto_context_crc_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_CRC == 1) */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the RSA verifying
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Pointer to verification result /ref cy_en_crypto_rsa_ver_result_t */
|
|
||||||
cy_en_crypto_rsa_ver_result_t *verResult;
|
|
||||||
/** SHA digest type, used with SHA calculation of the message */
|
|
||||||
cy_en_crypto_sha_mode_t digestType;
|
|
||||||
/** SHA digest of the message, calculated with digestType */
|
|
||||||
uint32_t const *hash;
|
|
||||||
/** Previously decrypted RSA signature */
|
|
||||||
uint32_t const *decryptedSignature;
|
|
||||||
/** Length of the decrypted RSA signature */
|
|
||||||
uint32_t decryptedSignatureLength;
|
|
||||||
} cy_stc_crypto_context_rsa_ver_t;
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_VU == 1)
|
|
||||||
/**
|
|
||||||
* Firmware allocates memory and provides a pointer to this structure in
|
|
||||||
* function calls. Firmware does not write or read values in this structure.
|
|
||||||
* The driver uses this structure to store and manipulate the RSA operational
|
|
||||||
* context.
|
|
||||||
*/
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
/** Pointer to key data */
|
|
||||||
cy_stc_crypto_rsa_pub_key_t const *key;
|
|
||||||
/** Pointer to data source block */
|
|
||||||
uint32_t const *message;
|
|
||||||
/** Operation data size */
|
|
||||||
uint32_t messageSize;
|
|
||||||
/** Pointer to data destination block */
|
|
||||||
uint32_t *result;
|
|
||||||
} cy_stc_crypto_context_rsa_t;
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_VU == 1) */
|
|
||||||
|
|
||||||
/** \} group_crypto_cli_data_structures */
|
|
||||||
|
|
||||||
#endif /* (CPUSS_CRYPTO_PRESENT == 1) */
|
|
||||||
|
|
||||||
#endif /* #if !defined(CY_CRYPTO_COMMON_H) */
|
|
||||||
|
|
||||||
|
|
||||||
/* [] END OF FILE */
|
|
|
@ -1,69 +0,0 @@
|
||||||
/***************************************************************************//**
|
|
||||||
* \file
|
|
||||||
* \version 2.0
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* This C file is not intended to be part of the Crypto driver. It is the code
|
|
||||||
* required to configure the crypto driver by user.
|
|
||||||
*
|
|
||||||
********************************************************************************
|
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
#include "cy_crypto_config.h"
|
|
||||||
|
|
||||||
#include "ipc/cy_ipc_drv.h"
|
|
||||||
#include "sysint/cy_sysint.h"
|
|
||||||
|
|
||||||
|
|
||||||
/** The Crypto configuration structure. */
|
|
||||||
const cy_stc_crypto_config_t cryptoConfig =
|
|
||||||
{
|
|
||||||
/* .ipcChannel */ CY_IPC_CHAN_CRYPTO,
|
|
||||||
/* .acquireNotifierChannel */ CY_CRYPTO_IPC_INTR_NOTIFY_NUM,
|
|
||||||
/* .releaseNotifierChannel */ CY_CRYPTO_IPC_INTR_RELEASE_NUM,
|
|
||||||
|
|
||||||
/* .releaseNotifierConfig */ {
|
|
||||||
#if (CY_CPU_CORTEX_M0P)
|
|
||||||
/* .intrSrc */ CY_CRYPTO_CM0_RELEASE_INTR_NR,
|
|
||||||
/* .cm0pSrc */ (cy_en_intr_t)CY_IPC_INTR_NUM_TO_VECT((int32_t)CY_CRYPTO_IPC_INTR_RELEASE_NUM),
|
|
||||||
#else
|
|
||||||
/* .intrSrc */ (IRQn_Type)CY_IPC_INTR_NUM_TO_VECT((int32_t)CY_CRYPTO_IPC_INTR_RELEASE_NUM),
|
|
||||||
#endif
|
|
||||||
/* .intrPriority */ CY_CRYPTO_RELEASE_INTR_PR,
|
|
||||||
},
|
|
||||||
/* .userCompleteCallback */ NULL
|
|
||||||
|
|
||||||
#if (CY_CRYPTO_CORE_ENABLE)
|
|
||||||
,
|
|
||||||
/* .userGetDataHandler */ NULL,
|
|
||||||
/* .userErrorHandler */ NULL,
|
|
||||||
|
|
||||||
/* .acquireNotifierConfig */ {
|
|
||||||
#if (CY_CPU_CORTEX_M0P)
|
|
||||||
/* .intrSrc */ CY_CRYPTO_CM0_NOTIFY_INTR_NR,
|
|
||||||
/* .cm0pSrc */ (cy_en_intr_t)CY_IPC_INTR_NUM_TO_VECT((int32_t)CY_CRYPTO_IPC_INTR_NOTIFY_NUM),
|
|
||||||
#else
|
|
||||||
/* .intrSrc */ (IRQn_Type)CY_IPC_INTR_NUM_TO_VECT((int32_t)CY_CRYPTO_IPC_INTR_NOTIFY_NUM),
|
|
||||||
#endif
|
|
||||||
/* .intrPriority */ CY_CRYPTO_NOTIFY_INTR_PR,
|
|
||||||
},
|
|
||||||
/* .cryptoErrorIntrConfig */ {
|
|
||||||
#if (CY_CPU_CORTEX_M0P)
|
|
||||||
/* .intrSrc */ CY_CRYPTO_CM0_ERROR_INTR_NR,
|
|
||||||
/* .cm0pSrc */ cpuss_interrupt_crypto_IRQn,
|
|
||||||
#else
|
|
||||||
/* .intrSrc */ cpuss_interrupt_crypto_IRQn,
|
|
||||||
#endif
|
|
||||||
/* .intrPriority */ CY_CRYPTO_ERROR_INTR_PR,
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/* [] END OF FILE */
|
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
/***************************************************************************//**
|
|
||||||
* \file cy_crypto_config.h
|
|
||||||
* \version 2.0
|
|
||||||
*
|
|
||||||
* \brief
|
|
||||||
* This file provides user parameters for the Crypto driver.
|
|
||||||
*
|
|
||||||
********************************************************************************
|
|
||||||
* \copyright
|
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
#if !defined(CY_CRYPTO_CONFIG_H)
|
|
||||||
#define CY_CRYPTO_CONFIG_H
|
|
||||||
|
|
||||||
#include "cy_device_headers.h"
|
|
||||||
#include "crypto/cy_crypto_common.h"
|
|
||||||
|
|
||||||
/* Defines to configure Crypto driver */
|
|
||||||
extern const cy_stc_crypto_config_t cryptoConfig;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_config_macros
|
|
||||||
* \{
|
|
||||||
*
|
|
||||||
* These constants defines an interrupts settings for IPC channel used for the
|
|
||||||
* client-server communications.
|
|
||||||
*
|
|
||||||
* On the CM4 core crypto driver uses IPC hardware depended interrupt sources.
|
|
||||||
*
|
|
||||||
* For CM0+ core user must define the multiplexed interrupt sources by yourself.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Number of Crypto Notify interrupt mapped to CM0+ */
|
|
||||||
#define CY_CRYPTO_CM0_NOTIFY_INTR_NR (NvicMux2_IRQn)
|
|
||||||
/** Priority of Crypto Notify interrupt, equal to CM0+ and CM4 cores */
|
|
||||||
#define CY_CRYPTO_NOTIFY_INTR_PR (2u)
|
|
||||||
|
|
||||||
/** Number of Crypto Release interrupt mapped to CM0+ */
|
|
||||||
#define CY_CRYPTO_CM0_RELEASE_INTR_NR (NvicMux30_IRQn)
|
|
||||||
/** Priority of Crypto Release interrupt, equal to CM0+ and CM4 cores */
|
|
||||||
#define CY_CRYPTO_RELEASE_INTR_PR (2u)
|
|
||||||
|
|
||||||
/** Number of Crypto Error interrupt mapped to CM0+ */
|
|
||||||
#define CY_CRYPTO_CM0_ERROR_INTR_NR (NvicMux31_IRQn)
|
|
||||||
/** Priority of Crypto Error interrupt mapped to CM0+ */
|
|
||||||
#define CY_CRYPTO_ERROR_INTR_PR (2u)
|
|
||||||
|
|
||||||
/** \} group_crypto_config_macros */
|
|
||||||
|
|
||||||
#endif /* #if !defined(CY_CRYPTO_CONFIG_H) */
|
|
||||||
|
|
||||||
|
|
||||||
/* [] END OF FILE */
|
|
|
@ -1,125 +0,0 @@
|
||||||
/***************************************************************************//**
|
|
||||||
* \file cy_crypto_server.h
|
|
||||||
* \version 2.0
|
|
||||||
*
|
|
||||||
* \brief
|
|
||||||
* This file provides the prototypes for common API
|
|
||||||
* in the Crypto driver.
|
|
||||||
*
|
|
||||||
********************************************************************************
|
|
||||||
* \copyright
|
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
#if !defined(CY_CRYPTO_SERVER_H)
|
|
||||||
#define CY_CRYPTO_SERVER_H
|
|
||||||
|
|
||||||
#include "crypto/cy_crypto_common.h"
|
|
||||||
#include "syslib/cy_syslib.h"
|
|
||||||
|
|
||||||
#if (CY_CRYPTO_CORE_ENABLE)
|
|
||||||
|
|
||||||
#if (CPUSS_CRYPTO_PRESENT == 1)
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \addtogroup group_crypto_srv_functions
|
|
||||||
* \{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name: Cy_Crypto_Server_Start
|
|
||||||
****************************************************************************//**
|
|
||||||
*
|
|
||||||
* This function starts the Crypto server on the CM0+ core, sets up an interrupt
|
|
||||||
* for the IPC Crypto channel on the CM0+ core, sets up an interrupt
|
|
||||||
* to catch Crypto HW errors. Should be invoked only on CM0.
|
|
||||||
*
|
|
||||||
* This function available for CM0+ core only.
|
|
||||||
*
|
|
||||||
* \param config
|
|
||||||
* The Crypto configuration structure.
|
|
||||||
*
|
|
||||||
* \param context
|
|
||||||
* The pointer to the \ref cy_stc_crypto_server_context_t structure that stores
|
|
||||||
* the Crypto server context.
|
|
||||||
*
|
|
||||||
* \return
|
|
||||||
* A Crypto status \ref cy_en_crypto_status_t.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
cy_en_crypto_status_t Cy_Crypto_Server_Start(cy_stc_crypto_config_t const *config,
|
|
||||||
cy_stc_crypto_server_context_t *context);
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name: Cy_Crypto_Server_Stop
|
|
||||||
****************************************************************************//**
|
|
||||||
*
|
|
||||||
* This function stops the Crypto server by disabling the IPC notify interrupt
|
|
||||||
* and Crypto error interrupt. Should be invoked only on CM0.
|
|
||||||
*
|
|
||||||
* This function available for CM0+ core only.
|
|
||||||
*
|
|
||||||
* \return
|
|
||||||
* A Crypto status \ref cy_en_crypto_status_t.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
cy_en_crypto_status_t Cy_Crypto_Server_Stop(void);
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name: Cy_Crypto_Server_Process
|
|
||||||
****************************************************************************//**
|
|
||||||
*
|
|
||||||
* This function parses input data received from the Crypto Client,
|
|
||||||
* runs the appropriate Crypto function and releases the Crypto IPC channel.
|
|
||||||
*
|
|
||||||
* This function available for CM0+ core only.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
void Cy_Crypto_Server_Process(void);
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name: Cy_Crypto_Server_GetDataHandler
|
|
||||||
****************************************************************************//**
|
|
||||||
*
|
|
||||||
* This function is a IPC Crypto channel notify interrupt-routine.
|
|
||||||
* It receives information from the Crypto client,
|
|
||||||
* runs the process if user not setup own handler.
|
|
||||||
*
|
|
||||||
* This function available for CM0+ core only.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
void Cy_Crypto_Server_GetDataHandler(void);
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name: Cy_Crypto_Server_ErrorHandler
|
|
||||||
****************************************************************************//**
|
|
||||||
*
|
|
||||||
* This function is a routine to handle an interrupt caused by the Crypto hardware error.
|
|
||||||
*
|
|
||||||
* This function available for CM0+ core only.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
void Cy_Crypto_Server_ErrorHandler(void);
|
|
||||||
|
|
||||||
/** \} group_crypto_srv_functions */
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* #if (CPUSS_CRYPTO_PRESENT == 1) */
|
|
||||||
|
|
||||||
#endif /* #if (CY_CRYPTO_CORE_ENABLE) */
|
|
||||||
|
|
||||||
#endif /* #if !defined(CY_CRYPTO_SERVER_H) */
|
|
||||||
|
|
||||||
|
|
||||||
/* [] END OF FILE */
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "ctb/cy_ctb.h"
|
#include "ctb/cy_ctb.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "ctdac/cy_ctdac.h"
|
#include "ctdac/cy_ctdac.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_dma.h"
|
#include "cy_dma.h"
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_efuse.h"
|
#include "cy_efuse.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#if !defined(CY_EFUSE_H)
|
#if !defined(CY_EFUSE_H)
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#include "flash/cy_flash.h"
|
#include "flash/cy_flash.h"
|
||||||
#include "sysclk/cy_sysclk.h"
|
#include "sysclk/cy_sysclk.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#if !defined(CY_FLASH_H)
|
#if !defined(CY_FLASH_H)
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_gpio.h"
|
#include "cy_gpio.h"
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_i2s.h"
|
#include "cy_i2s.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,10 +7,9 @@
|
||||||
* the IPC hardware.
|
* the IPC hardware.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_ipc_drv.h"
|
#include "cy_ipc_drv.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef CY_IPC_DRV_H
|
#ifndef CY_IPC_DRV_H
|
||||||
|
|
|
@ -7,10 +7,9 @@
|
||||||
* of the IPC driver.
|
* of the IPC driver.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_ipc_pipe.h"
|
#include "cy_ipc_pipe.h"
|
||||||
|
|
|
@ -7,10 +7,9 @@
|
||||||
* structure definitions, pipe constants, and pipe endpoint address definitions.
|
* structure definitions, pipe constants, and pipe endpoint address definitions.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#ifndef CY_IPC_PIPE_H
|
#ifndef CY_IPC_PIPE_H
|
||||||
#define CY_IPC_PIPE_H
|
#define CY_IPC_PIPE_H
|
||||||
|
|
|
@ -7,10 +7,9 @@
|
||||||
* semaphore level APIs for the IPC interface.
|
* semaphore level APIs for the IPC interface.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "ipc/cy_ipc_drv.h"
|
#include "ipc/cy_ipc_drv.h"
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef CY_IPC_SEMA_H
|
#ifndef CY_IPC_SEMA_H
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#include "cy_lpcomp.h"
|
#include "cy_lpcomp.h"
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_lvd.h"
|
#include "cy_lvd.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,10 +6,9 @@
|
||||||
* Provides a system API for the MCWDT driver.
|
* Provides a system API for the MCWDT driver.
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_mcwdt.h"
|
#include "cy_mcwdt.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_pdm_pcm.h"
|
#include "cy_pdm_pcm.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_profile.h"
|
#include "cy_profile.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_prot.h"
|
#include "cy_prot.h"
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,10 +6,9 @@
|
||||||
* Real-Time Clock (RTC).
|
* Real-Time Clock (RTC).
|
||||||
*
|
*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_rtc.h"
|
#include "cy_rtc.h"
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#include "cy_sar.h"
|
#include "cy_sar.h"
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_scb_common.h"
|
#include "cy_scb_common.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_scb_ezi2c.h"
|
#include "cy_scb_ezi2c.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_scb_i2c.h"
|
#include "cy_scb_i2c.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_scb_spi.h"
|
#include "cy_scb_spi.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_scb_uart.h"
|
#include "cy_scb_uart.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_smif.h"
|
#include "cy_smif.h"
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "cy_smif_memslot.h"
|
#include "cy_smif_memslot.h"
|
||||||
|
|
|
@ -11,9 +11,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2016-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#if !defined(CY_SMIF_MEMORYSLOT_H)
|
#if !defined(CY_SMIF_MEMORYSLOT_H)
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* \copyright
|
* \copyright
|
||||||
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
* Copyright 2017-2018, Cypress Semiconductor Corporation. All rights reserved.
|
||||||
* You may use this file only in accordance with the license, terms, conditions,
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* disclaimers, and limitations in the end user license agreement accompanying
|
|
||||||
* the software package with which this file was provided.
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#include "cy_sysanalog.h"
|
#include "cy_sysanalog.h"
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue