Lines Matching +full:non +full:- +full:shared
4 * SPDX-License-Identifier: Apache-2.0
17 * Interrupt allocation flags - These flags can be used to specify
30 #define ESP_INTR_FLAG_SHARED (1<<8) /* Interrupt can be shared between ISRs */
31 #define ESP_INTR_FLAG_EDGE (1<<9) /* Edge-triggered interrupt */
62 * pass these pseudo-sources to the functions.
64 #define ETS_INTERNAL_TIMER0_INTR_SOURCE -1 /* Xtensa timer 0 interrupt source */
65 #define ETS_INTERNAL_TIMER1_INTR_SOURCE -2 /* Xtensa timer 1 interrupt source */
66 #define ETS_INTERNAL_TIMER2_INTR_SOURCE -3 /* Xtensa timer 2 interrupt source */
67 #define ETS_INTERNAL_SW0_INTR_SOURCE -4 /* Software int source 1 */
68 #define ETS_INTERNAL_SW1_INTR_SOURCE -5 /* Software int source 2 */
69 #define ETS_INTERNAL_PROFILING_INTR_SOURCE -6 /* Int source for profiling */
89 int source : 8; /* Int mux flags, used when not shared */
106 * @brief Mark an interrupt as a shared interrupt
109 * an interrupt that can be used to hook shared interrupt handlers
112 * @param intno The number of the interrupt (0-31)
113 * @param cpu CPU on which the interrupt should be marked as shared (0 or 1)
114 * @param is_in_iram Shared interrupt is for handlers that reside in IRAM and
117 * @return -EINVAL if cpu or intno is invalid
128 * @param intno The number of the interrupt (0-31)
129 * @param cpu CPU on which the interrupt should be marked as shared (0 or 1)
131 * @return -EINVAL if cpu or intno is invalid
150 * sources, as defined in esp-xtensa-intmux.h, or one of the internal
154 * is 0, it will default to allocating a non-shared interrupt of level
155 * 1, 2 or 3. If this is ESP_INTR_FLAG_SHARED, it will allocate a shared
159 * is requested, because these types of interrupts aren't C-callable.
165 * @return -EINVAL if the combination of arguments is invalid.
166 * -ENODEV No free interrupt found with the specified flags
181 * combo. For shared interrupts, the handler is only called if a read from the specified
182 * register, ANDed with the mask, returns non-zero. By passing an interrupt status register
184 * a shared interrupt is triggered; by checking the interrupt statuses first, the code can
188 * sources, as defined in esp-xtensa-intmux.h, or one of the internal
192 * is 0, it will default to allocating a non-shared interrupt of level
193 * 1, 2 or 3. If this is ESP_INTR_FLAG_SHARED, it will allocate a shared
201 * is requested, because these types of interrupts aren't C-callable.
207 * @return -EINVAL if the combination of arguments is invalid.
208 * -ENODEV No free interrupt found with the specified flags
235 * @return -EINVAL the handle is NULL
272 * @return -EINVAL if the combination of arguments is invalid.
285 * @return -EINVAL if the combination of arguments is invalid.
293 * @note Does not work on shared interrupts.
299 * @return -EINVAL if the combination of arguments is invalid.
310 * @brief Re-enable interrupts disabled by esp_intr_noniram_disable