1 /* 2 * Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __DRIVER_DAP_H__ 18 #define __DRIVER_DAP_H__ 19 20 /** DAPControl SysCall parameter: access port state */ 21 enum cy_ap_control { 22 CY_AP_DIS = 0, 23 CY_AP_EN = 1 24 }; 25 26 /** DAPControl SysCall parameter: access port name */ 27 enum cy_ap_name { 28 CY_CM0_AP = 0, 29 CY_CM4_AP = 1, 30 CY_SYS_AP = 2 31 }; 32 33 /* API functions */ 34 int cy_access_port_control(enum cy_ap_name ap, enum cy_ap_control en); 35 36 #endif /* __DRIVER_DAP_H__ */ 37