mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
189:f392fc9709a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CMOD_062_4343W/psoc6_static_srm.h	Wed Feb 20 22:31:08 2019 +0000
@@ -0,0 +1,73 @@
+/*
+ * mbed Microcontroller Library
+ * Copyright (c) 2017-2018 Future Electronics
+ * Copyright (c) 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.
+
+ */
+
+/*
+ * This file defines hardware resources reserved by device-generated code. These
+ * resources are accessed directly by the Peripheral Driver library (PDL).
+ *
+ * There are four classes of resources that must be declared here:
+ *  1 CYCFG_ASSIGNED_PORTS macro defines which ports and pins are reserved.
+ *    You define these as a colon separated list of ports and pins reserved
+ *    using macro SRM_PORT(port_num, pins), once for each reserved port.
+ *    SRM_PORT macro arguments are port number (in the range 0 ... 14) and
+ *    pins, which is a hex value with a bit set for each reserved pin on a port.
+ *
+ *  2 CYCFG_ASSIGNED_DIVIDERS macro defines which clock dividers are reserved.
+ *    You define these as a colon separated list of dividers reserved
+ *    using macro SRM_DIVIDER(type, reservations), once for each required
+ *    divider type.
+ *    SRM_DIVIDER arguments are divider type (one of cy_en_divider_types_t
+ *    values) and reservations, which is a hex mask value with a bit set for 
+ *    each reserved divider of a given type.
+ *
+ *  3 CYCFG_ASSIGNED_SCBS macro defines which SCB blocks are reserved.
+ *    You define these as a colon separated list of SCBs reserved using
+ *    macro SRM_SCB(n), which argument is SCB number in a range 0 ... 7.
+ *
+ *  4 CYCFG_ASSIGNED_TCPWM macro defines which TCPWM blocks are reserved.
+ *    You define these as a colon separated list of TCPWMs reserved using
+ *    macro SRM_TCPWM(n), which argument is TCPWM number in a range 0 ... 31.
+ *
+ * Examples:
+ *    #define CYCFG_ASSIGNED_PORTS		SRM_PORT(0, 0x30), SRM_PORT(5, 0x03)
+ *
+ *    #define CYCFG_ASSIGNED_DIVIDERS	SRM_DIVIDER(CY_SYSCLK_DIV_8_BIT, 0x01)
+ *
+ *	  #define CYCFG_ASSIGNED_SCBS		SRM_SCB(2)
+ *
+ *    #define CYCFG_ASSIGNED_TCPWMS
+ *
+ */
+
+/* P2_0 ... P2_5 reserved for SDHC 
+*  P6-4, P6-6 and P6_7 reserved for SWD,
+*/
+#define CYCFG__ASSIGNED_PORTS      SRM_PORT(2, 0x3f), SRM_PORT(6, 0xd0)
+
+/* No dividers reservation */
+#define CYCFG__ASSIGNED_DIVIDERS
+
+/* No SCB reservation */
+#define CYCFG__ASSIGNED_SCBS
+
+/* No TCPWM reservation */
+#define CYCFG__ASSIGNED_TCPWMS
+
+/* End of File */