Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
TARGET_CYW989829M2EVB-01/cybsp_types.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
73 lines (66 sloc)
2.29 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***********************************************************************************************//** | |
* \copyright | |
* Copyright 2018-2022 Cypress Semiconductor Corporation (an Infineon company) or | |
* an affiliate of 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 "cybsp_doc.h" | |
#if defined(__cplusplus) | |
extern "C" { | |
#endif | |
/** | |
* \cond INTERNAL | |
*/ | |
/* WIFI interface types */ | |
#define CYBSP_SDIO_INTERFACE (0) | |
#define CYBSP_SPI_INTERFACE (1) | |
#define CYBSP_M2M_INTERFACE (2) | |
/* Map from the new components to the old interface names for | |
* compatibility with code that still depends on those defines */ | |
#if defined(COMPONENT_WIFI_INTERFACE_SDIO) | |
#define CYBSP_WIFI_INTERFACE_TYPE (CYBSP_SDIO_INTERFACE) | |
#elif defined(COMPONENT_WIFI_INTERFACE_SPI) | |
#define CYBSP_WIFI_INTERFACE_TYPE (CYBSP_SPI_INTERFACE) | |
#elif defined(COMPONENT_WIFI_INTERFACE_M2M) | |
#define CYBSP_WIFI_INTERFACE_TYPE (CYBSP_M2M_INTERFACE) | |
#endif | |
/** \endcond */ | |
/** | |
* \addtogroup group_bsp_pin_state Pin States | |
* \{ | |
* Macros to abstract out whether the LEDs & Buttons are wired high or active low. | |
*/ | |
/** Pin state for the LED on. */ | |
#ifndef CYBSP_LED_STATE_ON | |
#define CYBSP_LED_STATE_ON (0U) | |
#endif | |
/** Pin state for the LED off. */ | |
#ifndef CYBSP_LED_STATE_OFF | |
#define CYBSP_LED_STATE_OFF (1U) | |
#endif | |
/** Pin state for when a button is pressed. */ | |
#ifndef CYBSP_BTN_PRESSED | |
#define CYBSP_BTN_PRESSED (0U) | |
#endif | |
/** Pin state for when a button is released. */ | |
#ifndef CYBSP_BTN_OFF | |
#define CYBSP_BTN_OFF (1U) | |
#endif | |
/** \} group_bsp_pin_state */ | |
#if defined(__cplusplus) | |
} | |
#endif |