Skip to content
Snippets Groups Projects
Select Git revision
  • 9ea0f935b5026a7b4530e6e65265b7dda15129da
  • main default protected
  • phhw
  • captouch-threshold
  • t
  • dos
  • test2
  • test
  • slewtest
  • simtest
  • view-think
  • vm-pending
  • media-buf
  • scope
  • passthrough
  • wave
  • vsync
  • dos-main-patch-50543
  • json-error
  • rahix/big-flow3r
  • pippin/media_framework
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
34 results

sdkconfig

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    usbd_cdc_interface.h 3.90 KiB
    /**
      ******************************************************************************
      * @file    USB_Device/CDC_Standalone/Inc/usbd_cdc_interface.h
      * @author  MCD Application Team
      * @version V1.0.1
      * @date    26-February-2014
      * @brief   Header for usbd_cdc_interface.c file.
      ******************************************************************************
      * @attention
      *
      * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
      *
      * Licensed under MCD-ST Liberty SW License Agreement V2, (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.st.com/software_license_agreement_liberty_v2
      *
      * 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.
      *
      ******************************************************************************
      */
    
    /* Define to prevent recursive inclusion -------------------------------------*/
    #ifndef __USBD_CDC_IF_H
    #define __USBD_CDC_IF_H
    
    /* Includes ------------------------------------------------------------------*/
    #include "usbd_cdc.h"
    
    /* Exported types ------------------------------------------------------------*/
    /* Exported constants --------------------------------------------------------*/
    /* User can use this section to tailor USARTx/UARTx instance used and associated 
       resources */
    /* Definition for USARTx clock resources */
    #define USARTx                           USART3
    #define USARTx_CLK_ENABLE()              __USART3_CLK_ENABLE();
    #define DMAx_CLK_ENABLE()                __DMA1_CLK_ENABLE()
    #define USARTx_RX_GPIO_CLK_ENABLE()      __GPIOC_CLK_ENABLE()
    #define USARTx_TX_GPIO_CLK_ENABLE()      __GPIOC_CLK_ENABLE() 
    
    #define USARTx_FORCE_RESET()             __USART3_FORCE_RESET()
    #define USARTx_RELEASE_RESET()           __USART3_RELEASE_RESET()
    
    /* Definition for USARTx Pins */
    #define USARTx_TX_PIN                    GPIO_PIN_10
    #define USARTx_TX_GPIO_PORT              GPIOC  
    #define USARTx_TX_AF                     GPIO_AF7_USART3
    #define USARTx_RX_PIN                    GPIO_PIN_11
    #define USARTx_RX_GPIO_PORT              GPIOC 
    #define USARTx_RX_AF                     GPIO_AF7_USART3
    
    /* Definition for USARTx's NVIC: used for receiving data over Rx pin */
    #define USARTx_IRQn                      USART3_IRQn
    #define USARTx_IRQHandler                USART3_IRQHandler
    
    /* Definition for USARTx's DMA: used for transmitting data over Tx pin */
    #define USARTx_TX_DMA_CHANNEL            DMA_CHANNEL_4
    #define USARTx_TX_DMA_STREAM             DMA1_Stream3  
    #define USARTx_DMA_TX_IRQHandler         DMA1_Stream3_IRQHandler
    #define USARTx_DMA_TX_IRQn               DMA1_Stream3_IRQn
    
    /* Definition for TIMx clock resources */
    #define TIMx                             TIM3
    #define TIMx_CLK_ENABLE                  __TIM3_CLK_ENABLE
    #define TIMx_FORCE_RESET()               __USART3_FORCE_RESET()
    #define TIMx_RELEASE_RESET()             __USART3_RELEASE_RESET()
    
    /* Definition for TIMx's NVIC */
    #define TIMx_IRQn                        TIM3_IRQn
    #define TIMx_IRQHandler                  TIM3_IRQHandler
    
    /* Periodically, the state of the buffer "UserTxBuffer" is checked.
       The period depends on CDC_POLLING_INTERVAL */
    #define CDC_POLLING_INTERVAL             5 /* in ms. The max is 65 and the min is 1 */
    
    extern USBD_CDC_ItfTypeDef  USBD_CDC_fops;
    
    /* Exported macro ------------------------------------------------------------*/
    /* Exported functions ------------------------------------------------------- */
    #endif /* __USBD_CDC_IF_H */
    
    /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/