Skip to content

Commit 0774483

Browse files
dpgeorgepfalcon
authored andcommitted
esp8266/etshal.h: More prototypes of ESP8266 SDK/BootROM functions.
1 parent 26f0616 commit 0774483

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

esp8266/esp_mphal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
#ifndef _INCLUDED_MPHAL_H_
2828
#define _INCLUDED_MPHAL_H_
2929

30-
// SDK functions not declared in SDK itself
31-
void ets_isr_mask(unsigned);
32-
3330
void mp_hal_init(void);
3431
void mp_hal_rtc_init(void);
3532
void mp_hal_feed_watchdog(void);

esp8266/etshal.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33

44
#include <os_type.h>
55

6-
void ets_isr_unmask();
6+
void ets_delay_us();
7+
void ets_intr_lock(void);
8+
void ets_intr_unlock(void);
9+
void ets_isr_mask(uint32_t mask);
10+
void ets_isr_unmask(uint32_t mask);
11+
void ets_isr_attach(int irq_no, void (*handler)(void *), void *arg);
712
void ets_install_putc1();
8-
void ets_isr_attach();
913
void uart_div_modify();
14+
void ets_set_idle_cb(void (*handler)(void *), void *arg);
1015

1116
void ets_timer_arm_new(os_timer_t *tim, uint32_t millis, bool repeat, bool is_milli_timer);
1217
void ets_timer_setfn(os_timer_t *tim, ETSTimerFunc callback, void *cb_data);

0 commit comments

Comments
 (0)