Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Inc/stm32l4xx_hal_pcd_ex.h@0:80ee8f3b695e, 2015-11-02 (annotated)
- Committer:
- EricLew
- Date:
- Mon Nov 02 19:37:23 2015 +0000
- Revision:
- 0:80ee8f3b695e
Errors are with definitions of LCD and QSPI functions. I believe all .h and .c files are uploaded, but there may need to be certain functions called.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| EricLew | 0:80ee8f3b695e | 1 | /** |
| EricLew | 0:80ee8f3b695e | 2 | ****************************************************************************** |
| EricLew | 0:80ee8f3b695e | 3 | * @file stm32l4xx_hal_pcd_ex.h |
| EricLew | 0:80ee8f3b695e | 4 | * @author MCD Application Team |
| EricLew | 0:80ee8f3b695e | 5 | * @version V1.1.0 |
| EricLew | 0:80ee8f3b695e | 6 | * @date 16-September-2015 |
| EricLew | 0:80ee8f3b695e | 7 | * @brief Header file of PCD HAL module. |
| EricLew | 0:80ee8f3b695e | 8 | ****************************************************************************** |
| EricLew | 0:80ee8f3b695e | 9 | * @attention |
| EricLew | 0:80ee8f3b695e | 10 | * |
| EricLew | 0:80ee8f3b695e | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| EricLew | 0:80ee8f3b695e | 12 | * |
| EricLew | 0:80ee8f3b695e | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| EricLew | 0:80ee8f3b695e | 14 | * are permitted provided that the following conditions are met: |
| EricLew | 0:80ee8f3b695e | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| EricLew | 0:80ee8f3b695e | 16 | * this list of conditions and the following disclaimer. |
| EricLew | 0:80ee8f3b695e | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| EricLew | 0:80ee8f3b695e | 18 | * this list of conditions and the following disclaimer in the documentation |
| EricLew | 0:80ee8f3b695e | 19 | * and/or other materials provided with the distribution. |
| EricLew | 0:80ee8f3b695e | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| EricLew | 0:80ee8f3b695e | 21 | * may be used to endorse or promote products derived from this software |
| EricLew | 0:80ee8f3b695e | 22 | * without specific prior written permission. |
| EricLew | 0:80ee8f3b695e | 23 | * |
| EricLew | 0:80ee8f3b695e | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| EricLew | 0:80ee8f3b695e | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| EricLew | 0:80ee8f3b695e | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| EricLew | 0:80ee8f3b695e | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| EricLew | 0:80ee8f3b695e | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| EricLew | 0:80ee8f3b695e | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| EricLew | 0:80ee8f3b695e | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| EricLew | 0:80ee8f3b695e | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| EricLew | 0:80ee8f3b695e | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| EricLew | 0:80ee8f3b695e | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| EricLew | 0:80ee8f3b695e | 34 | * |
| EricLew | 0:80ee8f3b695e | 35 | ****************************************************************************** |
| EricLew | 0:80ee8f3b695e | 36 | */ |
| EricLew | 0:80ee8f3b695e | 37 | |
| EricLew | 0:80ee8f3b695e | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 39 | #ifndef __STM32L4xx_HAL_PCD_EX_H |
| EricLew | 0:80ee8f3b695e | 40 | #define __STM32L4xx_HAL_PCD_EX_H |
| EricLew | 0:80ee8f3b695e | 41 | |
| EricLew | 0:80ee8f3b695e | 42 | #ifdef __cplusplus |
| EricLew | 0:80ee8f3b695e | 43 | extern "C" { |
| EricLew | 0:80ee8f3b695e | 44 | #endif |
| EricLew | 0:80ee8f3b695e | 45 | |
| EricLew | 0:80ee8f3b695e | 46 | #if defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L485xx) || defined(STM32L486xx) |
| EricLew | 0:80ee8f3b695e | 47 | |
| EricLew | 0:80ee8f3b695e | 48 | /* Includes ------------------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 49 | #include "stm32l4xx_hal_def.h" |
| EricLew | 0:80ee8f3b695e | 50 | |
| EricLew | 0:80ee8f3b695e | 51 | /** @addtogroup STM32L4xx_HAL_Driver |
| EricLew | 0:80ee8f3b695e | 52 | * @{ |
| EricLew | 0:80ee8f3b695e | 53 | */ |
| EricLew | 0:80ee8f3b695e | 54 | |
| EricLew | 0:80ee8f3b695e | 55 | /** @addtogroup PCDEx |
| EricLew | 0:80ee8f3b695e | 56 | * @{ |
| EricLew | 0:80ee8f3b695e | 57 | */ |
| EricLew | 0:80ee8f3b695e | 58 | /* Exported types ------------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 59 | typedef enum |
| EricLew | 0:80ee8f3b695e | 60 | { |
| EricLew | 0:80ee8f3b695e | 61 | PCD_LPM_L0_ACTIVE = 0x00, /* on */ |
| EricLew | 0:80ee8f3b695e | 62 | PCD_LPM_L1_ACTIVE = 0x01, /* LPM L1 sleep */ |
| EricLew | 0:80ee8f3b695e | 63 | }PCD_LPM_MsgTypeDef; |
| EricLew | 0:80ee8f3b695e | 64 | |
| EricLew | 0:80ee8f3b695e | 65 | typedef enum |
| EricLew | 0:80ee8f3b695e | 66 | { |
| EricLew | 0:80ee8f3b695e | 67 | PCD_BCD_ERROR = 0xFF, |
| EricLew | 0:80ee8f3b695e | 68 | PCD_BCD_CONTACT_DETECTION = 0xFE, |
| EricLew | 0:80ee8f3b695e | 69 | PCD_BCD_STD_DOWNSTREAM_PORT = 0xFD, |
| EricLew | 0:80ee8f3b695e | 70 | PCD_BCD_CHARGING_DOWNSTREAM_PORT = 0xFC, |
| EricLew | 0:80ee8f3b695e | 71 | PCD_BCD_DEDICATED_CHARGING_PORT = 0xFB, |
| EricLew | 0:80ee8f3b695e | 72 | PCD_BCD_DISCOVERY_COMPLETED = 0x00, |
| EricLew | 0:80ee8f3b695e | 73 | |
| EricLew | 0:80ee8f3b695e | 74 | }PCD_BCD_MsgTypeDef; |
| EricLew | 0:80ee8f3b695e | 75 | |
| EricLew | 0:80ee8f3b695e | 76 | /* Exported constants --------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 77 | /* Exported macros -----------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 78 | /* Exported functions --------------------------------------------------------*/ |
| EricLew | 0:80ee8f3b695e | 79 | /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions |
| EricLew | 0:80ee8f3b695e | 80 | * @{ |
| EricLew | 0:80ee8f3b695e | 81 | */ |
| EricLew | 0:80ee8f3b695e | 82 | /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions |
| EricLew | 0:80ee8f3b695e | 83 | * @{ |
| EricLew | 0:80ee8f3b695e | 84 | */ |
| EricLew | 0:80ee8f3b695e | 85 | HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size); |
| EricLew | 0:80ee8f3b695e | 86 | HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size); |
| EricLew | 0:80ee8f3b695e | 87 | HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd); |
| EricLew | 0:80ee8f3b695e | 88 | HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd); |
| EricLew | 0:80ee8f3b695e | 89 | HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd); |
| EricLew | 0:80ee8f3b695e | 90 | HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd); |
| EricLew | 0:80ee8f3b695e | 91 | void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd); |
| EricLew | 0:80ee8f3b695e | 92 | void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); |
| EricLew | 0:80ee8f3b695e | 93 | void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); |
| EricLew | 0:80ee8f3b695e | 94 | |
| EricLew | 0:80ee8f3b695e | 95 | /** |
| EricLew | 0:80ee8f3b695e | 96 | * @} |
| EricLew | 0:80ee8f3b695e | 97 | */ |
| EricLew | 0:80ee8f3b695e | 98 | |
| EricLew | 0:80ee8f3b695e | 99 | /** |
| EricLew | 0:80ee8f3b695e | 100 | * @} |
| EricLew | 0:80ee8f3b695e | 101 | */ |
| EricLew | 0:80ee8f3b695e | 102 | |
| EricLew | 0:80ee8f3b695e | 103 | /** |
| EricLew | 0:80ee8f3b695e | 104 | * @} |
| EricLew | 0:80ee8f3b695e | 105 | */ |
| EricLew | 0:80ee8f3b695e | 106 | |
| EricLew | 0:80ee8f3b695e | 107 | /** |
| EricLew | 0:80ee8f3b695e | 108 | * @} |
| EricLew | 0:80ee8f3b695e | 109 | */ |
| EricLew | 0:80ee8f3b695e | 110 | |
| EricLew | 0:80ee8f3b695e | 111 | #endif /* STM32L475xx || STM32L476xx || STM32L485xx || STM32L486xx */ |
| EricLew | 0:80ee8f3b695e | 112 | |
| EricLew | 0:80ee8f3b695e | 113 | #ifdef __cplusplus |
| EricLew | 0:80ee8f3b695e | 114 | } |
| EricLew | 0:80ee8f3b695e | 115 | #endif |
| EricLew | 0:80ee8f3b695e | 116 | |
| EricLew | 0:80ee8f3b695e | 117 | |
| EricLew | 0:80ee8f3b695e | 118 | #endif /* __STM32L4xx_HAL_PCD_EX_H */ |
| EricLew | 0:80ee8f3b695e | 119 | |
| EricLew | 0:80ee8f3b695e | 120 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
| EricLew | 0:80ee8f3b695e | 121 |
