diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/README.md b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/README.md deleted file mode 100644 index a7ac9afd74..0000000000 --- a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# PSoC 6 CSP - -## Overview - -TBD: high-level overview - -## Features - -TBD: list of the functionality included - -## API Reference Manual - -The PSoC 6 Chip Support Package provides a set of APIs to configure, initialize and use the PSoC 6 MCU resources. - -See the [PSoC 6 CSP API Reference Manual][api] for the complete list of the provided interfaces. - -## More information -* [PSoC 6 CSP API Reference Manual][api] -* [Cypress Semiconductor](http://www.cypress.com) - -[api]: modules.html - ---- -© Cypress Semiconductor Corporation, 2019. diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_chip.h b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_chip.h deleted file mode 100644 index fb3b77277d..0000000000 --- a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_chip.h +++ /dev/null @@ -1,30 +0,0 @@ -/***************************************************************************//** -* \file cyabs_chip.h -* -* \brief -* Basic abstraction layer for dealing with chips containing a Cypress MCU. This -* API provides convenience methods for initializing and manipulating different -* hardware peripherals. Depending on the specific chip being used, not all -* features may be supported. -* -******************************************************************************** -* \copyright -* Copyright 2018-2019 Cypress Semiconductor Corporation -* SPDX-License-Identifier: Apache-2.0 -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*******************************************************************************/ - -#pragma once - -#include "cyhal.h" diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_fs.h b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_fs.h deleted file mode 100644 index 9c19358721..0000000000 --- a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_fs.h +++ /dev/null @@ -1,116 +0,0 @@ -/***************************************************************************//** -* \file cyabs_fs.h -* -* \brief -* Basic file system abstraction layer. This API provides convenience methods -* for reading and writing values. -* -******************************************************************************** -* \copyright -* Copyright 2018-2019 Cypress Semiconductor Corporation -* SPDX-License-Identifier: Apache-2.0 -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*******************************************************************************/ - -/** -* \addtogroup group_abstraction_fs File system abstraction -* \ingroup group_abstraction -* \{ -* Basic file system abstraction layer. This API provides convenience methods -* for reading and writing values. -* -* \defgroup group_abstraction_fs_macros Macros -* \defgroup group_abstraction_fs_data_structures Data Structures -* \defgroup group_abstraction_fs_functions Functions -*/ - -#pragma once - -#include -#include -#include "cy_result.h" - -#if defined(__cplusplus) -extern "C" { -#endif - -/** -* \addtogroup group_abstraction_fs_macros -* \{ -*/ - -#define CY_O_RDONLY (1 << 0) /**< TODO */ -#define CY_O_WRONLY (1 << 1) /**< TODO */ -#define CY_O_RDWR (1 << 2) /**< TODO */ -#define CY_O_APPEND (1 << 3) /**< TODO */ -#define CY_O_CREAT (1 << 4) /**< TODO */ - -/** \} group_abstraction_fs_macros */ - -/** -* \addtogroup group_abstraction_fs_data_structures -* \{ -*/ - -typedef uint32_t cy_handle_t; /**< Resource handle */ - -/** \} group_abstraction_fs_data_structures */ - - -/** -* \addtogroup group_abstraction_fs_functions -* \{ -*/ - -/** - * \brief open or create a file and return a handle - * \param path the path name of the file to open - * \param oflag the mode to use when opening the file - * \param handle pointer to location re receive handle - * \returns CY_RSLT_SUCCESS if successful, otherwise error code - */ -cy_rslt_t cy_fs_open(const char *path, uint32_t oflag, cy_handle_t *handle) ; - -/** - * \brief close an open file - * \param handle a file handle to an open file - * \returns CY_RSLT_SUCCESS if successful, otherwise error code - */ - cy_rslt_t cy_fs_close(cy_handle_t handle) ; - -/** - * \brief read data from a file - * \param handle a file handle open for reading or read/write - * \param buf the buffer for the read data - * \param nbyte the size of the buffer in bytes, the number of bytes read on return - * \returns CY_RSLT_SUCCESS if successful, otherwise error code - */ -cy_rslt_t cy_fs_read(cy_handle_t handle, void *buf, size_t *nbyte) ; - -/** - * \brief write data to a file - * \param handle a file handle open for writing or read/write - * \param buf the buffer for the data to write - * \param nbyte the size of the buffer in bytes, the number of bytes written on return - * \returns CY_RSLT_SUCCESS if successful, otherwise error code - */ -cy_rslt_t cy_fs_write(cy_handle_t handle, const void *buf, size_t *nbyte) ; - -/** \} group_abstraction_fs_functions */ - -#if defined(__cplusplus) -} -#endif - -/** \} group_abstraction_fs */ diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_resource.h b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/resource/include/cyabs_resource.h similarity index 100% rename from targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_resource.h rename to targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/resource/include/cyabs_resource.h diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/source/cyabs_resource.c b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/resource/source/cyabs_resource.c similarity index 100% rename from targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/source/cyabs_resource.c rename to targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/resource/source/cyabs_resource.c diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/COMPONENT_RTX/cyabs_rtos_impl.h b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/include/COMPONENT_RTX/cyabs_rtos_impl.h similarity index 100% rename from targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/COMPONENT_RTX/cyabs_rtos_impl.h rename to targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/include/COMPONENT_RTX/cyabs_rtos_impl.h diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_rtos.h b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/include/cyabs_rtos.h similarity index 100% rename from targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/include/cyabs_rtos.h rename to targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/include/cyabs_rtos.h diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/source/COMPONENT_RTX/cyabs_rtos_rtxv5.c b/targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/source/COMPONENT_RTX/cyabs_rtos_rtxv5.c similarity index 100% rename from targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/source/COMPONENT_RTX/cyabs_rtos_rtxv5.c rename to targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/source/COMPONENT_RTX/cyabs_rtos_rtxv5.c