esp8266/etshal.h: More prototypes of ESP8266 SDK/BootROM functions.

This commit is contained in:
Damien George 2016-03-01 09:20:22 +00:00 committed by Paul Sokolovsky
parent 26f0616e8f
commit 077448328a
2 changed files with 7 additions and 5 deletions

View File

@ -27,9 +27,6 @@
#ifndef _INCLUDED_MPHAL_H_ #ifndef _INCLUDED_MPHAL_H_
#define _INCLUDED_MPHAL_H_ #define _INCLUDED_MPHAL_H_
// SDK functions not declared in SDK itself
void ets_isr_mask(unsigned);
void mp_hal_init(void); void mp_hal_init(void);
void mp_hal_rtc_init(void); void mp_hal_rtc_init(void);
void mp_hal_feed_watchdog(void); void mp_hal_feed_watchdog(void);

View File

@ -3,10 +3,15 @@
#include <os_type.h> #include <os_type.h>
void ets_isr_unmask(); void ets_delay_us();
void ets_intr_lock(void);
void ets_intr_unlock(void);
void ets_isr_mask(uint32_t mask);
void ets_isr_unmask(uint32_t mask);
void ets_isr_attach(int irq_no, void (*handler)(void *), void *arg);
void ets_install_putc1(); void ets_install_putc1();
void ets_isr_attach();
void uart_div_modify(); void uart_div_modify();
void ets_set_idle_cb(void (*handler)(void *), void *arg);
void ets_timer_arm_new(os_timer_t *tim, uint32_t millis, bool repeat, bool is_milli_timer); void ets_timer_arm_new(os_timer_t *tim, uint32_t millis, bool repeat, bool is_milli_timer);
void ets_timer_setfn(os_timer_t *tim, ETSTimerFunc callback, void *cb_data); void ets_timer_setfn(os_timer_t *tim, ETSTimerFunc callback, void *cb_data);