• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  ****************************************************************************************
3  *
4  * @file    app_drv_config.h
5  * @author  BLE Driver Team
6  * @brief   Header file of app driver config code.
7  *
8  ****************************************************************************************
9  * @attention
10   #####Copyright (c) 2019 GOODIX
11   All rights reserved.
12 
13     Redistribution and use in source and binary forms, with or without
14     modification, are permitted provided that the following conditions are met:
15   * Redistributions of source code must retain the above copyright
16     notice, this list of conditions and the following disclaimer.
17   * Redistributions in binary form must reproduce the above copyright
18     notice, this list of conditions and the following disclaimer in the
19     documentation and/or other materials provided with the distribution.
20   * Neither the name of GOODIX nor the names of its contributors may be used
21     to endorse or promote products derived from this software without
22     specific prior written permission.
23 
24   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
28   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34   POSSIBILITY OF SUCH DAMAGE.
35  ****************************************************************************************
36  */
37 
38 /** @addtogroup PERIPHERAL Peripheral Driver
39   * @{
40   */
41 
42 /** @addtogroup APP_DRIVER APP DRIVER
43  *  @{
44  */
45 
46 /** @defgroup APP_DRIVER_CONFIG DRIVER CONFIG
47   * @brief APP DRIVER CONFIG
48   * @{
49   */
50 
51 
52 #ifndef _APP_DRV_CONFIG_H_
53 #define _APP_DRV_CONFIG_H_
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
59 /**
60  * @defgroup APP_DRV_PERIPHERAL_PRIORITY_DEFINE Defines
61  * @{
62  */
63 /**@brief APP driver peripheral priority define. */
64 #ifndef APP_DRIVER_ADC_WAPEUP_PRIORITY
65 #define APP_DRIVER_ADC_WAPEUP_PRIORITY              WAPEUP_PRIORITY_HIGH  /**< ADC Wakeup priority High */
66 #endif
67 
68 #ifndef APP_DRIVER_AES_WAPEUP_PRIORITY
69 #define APP_DRIVER_AES_WAPEUP_PRIORITY              WAPEUP_PRIORITY_MID   /**< AES Wakeup priority Mid */
70 #endif
71 
72 #ifndef APP_DRIVER_COMP_WAPEUP_PRIORITY
73 #define APP_DRIVER_COMP_WAPEUP_PRIORITY             WAPEUP_PRIORITY_LOW   /**< COMP Wakeup priority Low */
74 #endif
75 
76 #ifndef APP_DRIVER_DUAL_TIM_WAPEUP_PRIORITY
77 #define APP_DRIVER_DUAL_TIM_WAPEUP_PRIORITY         WAPEUP_PRIORITY_MID   /**< DUAL TIM Wakeup priority Mid */
78 #endif
79 
80 #ifndef APP_DRIVER_DMA_WAPEUP_PRIORITY
81 #define APP_DRIVER_DMA_WAPEUP_PRIORITY              WAPEUP_PRIORITY_HIGH  /**< DMA Wakeup priority High */
82 #endif
83 
84 #ifndef APP_DRIVER_GPIOTE_WAPEUP_PRIORITY
85 #define APP_DRIVER_GPIOTE_WAPEUP_PRIORITY           WAPEUP_PRIORITY_LOW   /**< GPIOTE Wakeup priority Low */
86 #endif
87 
88 #ifndef APP_DRIVER_SYSTICK_WAPEUP_PRIORITY
89 #define APP_DRIVER_SYSTICK_WAPEUP_PRIORITY          WAPEUP_PRIORITY_HIGH  /**< SysTick Wakeup priority High */
90 #endif
91 
92 #ifndef APP_DRIVER_UART_WAPEUP_PRIORITY
93 #define APP_DRIVER_UART_WAPEUP_PRIORITY             WAPEUP_PRIORITY_HIGH  /**< Uart Wakeup priority High */
94 #endif
95 
96 #ifndef APP_DRIVER_HMAC_WAPEUP_PRIORITY
97 #define APP_DRIVER_HMAC_WAPEUP_PRIORITY             WAPEUP_PRIORITY_MID   /**< Hmac Wakeup priority Mid */
98 #endif
99 
100 #ifndef APP_DRIVER_I2C_WAPEUP_PRIORITY
101 #define APP_DRIVER_I2C_WAPEUP_PRIORITY              WAPEUP_PRIORITY_HIGH  /**< I2C Wakeup priority High */
102 #endif
103 
104 #ifndef APP_DRIVER_I2S_WAPEUP_PRIORITY
105 #define APP_DRIVER_I2S_WAPEUP_PRIORITY              WAPEUP_PRIORITY_HIGH  /**< I2S Wakeup priority High */
106 #endif
107 
108 #ifndef APP_DRIVER_QSPI_WAPEUP_PRIORITY
109 #define APP_DRIVER_QSPI_WAPEUP_PRIORITY             WAPEUP_PRIORITY_HIGH  /**< QSPI Wakeup priority High */
110 #endif
111 
112 #ifndef APP_DRIVER_RNG_WAPEUP_PRIORITY
113 #define APP_DRIVER_RNG_WAPEUP_PRIORITY              WAPEUP_PRIORITY_MID   /**< RNG Wakeup priority Mid */
114 #endif
115 
116 #ifndef APP_DRIVER_SPI_WAPEUP_PRIORITY
117 #define APP_DRIVER_SPI_WAPEUP_PRIORITY              WAPEUP_PRIORITY_HIGH  /**< SPI Wakeup priority High */
118 #endif
119 
120 #ifndef APP_DRIVER_TIM_WAPEUP_PRIORITY
121 #define APP_DRIVER_TIM_WAPEUP_PRIORITY              WAPEUP_PRIORITY_MID   /**< TIM Wakeup priority Mid */
122 #endif
123 
124 #ifndef APP_DRIVER_PWM_WAPEUP_PRIORITY
125 #define APP_DRIVER_PWM_WAPEUP_PRIORITY              WAPEUP_PRIORITY_MID   /**< PWM Wakeup priority Mid */
126 #endif
127 
128 /**@} */
129 
130 
131 /**@addtogroup APP_DRV_WAPEUP_PRIORITY_ENUM Enumerations
132  * @{
133  */
134 /**@brief APP driver peripheral wakeup priority define. */
135 typedef enum {
136     WAPEUP_PRIORITY_LOW = 1,          /**< Wakeup priority low */
137     WAPEUP_PRIORITY_MID,              /**< Wakeup priority mid */
138     WAPEUP_PRIORITY_HIGH              /**< Wakeup priority high */
139 } wakeup_priority_t;
140 /** @} */
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif
147 
148 /** @} */
149 /** @} */
150 /** @} */
151 
152