|
1 | 1 | /*
|
2 |
| - * copyright (c) 2008 - 2011 Espressif System |
| 2 | + * ESPRESSIF MIT License |
3 | 3 | *
|
4 |
| - * Define user specified Event signals and Task priorities here |
| 4 | + * Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> |
| 5 | + * |
| 6 | + * Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case, |
| 7 | + * it is free of charge, to any person obtaining a copy of this software and associated |
| 8 | + * documentation files (the "Software"), to deal in the Software without restriction, including |
| 9 | + * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 10 | + * and/or sell copies of the Software, and to permit persons to whom the Software is furnished |
| 11 | + * to do so, subject to the following conditions: |
| 12 | + * |
| 13 | + * The above copyright notice and this permission notice shall be included in all copies or |
| 14 | + * substantial portions of the Software. |
| 15 | + * |
| 16 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
| 18 | + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
| 19 | + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
| 20 | + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 21 | + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
5 | 22 | *
|
6 | 23 | */
|
7 | 24 |
|
@@ -51,6 +68,14 @@ typedef void (*int_handler_t)(void*);
|
51 | 68 | #define ETS_WDT_INUM 8
|
52 | 69 | #define ETS_FRC_TIMER1_INUM 9 /* use edge*/
|
53 | 70 |
|
| 71 | +typedef void (* ets_isr_t)(void *); |
| 72 | + |
| 73 | +void ets_intr_lock(void); |
| 74 | +void ets_intr_unlock(void); |
| 75 | +void ets_isr_attach(int i, ets_isr_t func, void *arg); |
| 76 | + |
| 77 | +void NmiTimSetFunc(void (*func)(void)); |
| 78 | + |
54 | 79 | #define ETS_INTR_LOCK() \
|
55 | 80 | ets_intr_lock()
|
56 | 81 |
|
@@ -176,7 +201,6 @@ int ets_sprintf(char *str, const char *format, ...) __attribute__ ((format (pri
|
176 | 201 | int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
|
177 | 202 | int ets_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
178 | 203 | void ets_install_putc1(void* routine);
|
179 |
| -void uart_div_modify(int no, int freq); |
180 | 204 | void ets_isr_mask(int intr);
|
181 | 205 | void ets_isr_unmask(int intr);
|
182 | 206 | void ets_isr_attach(int intr, int_handler_t handler, void *arg);
|
|
0 commit comments