|
@@ -4,6 +4,7 @@
|
|
#define _ROM_H_
|
|
#define _ROM_H_
|
|
|
|
|
|
#include "c_types.h"
|
|
#include "c_types.h"
|
|
|
|
+#include "ets_sys.h"
|
|
|
|
|
|
// SHA1 is assumed to match the netbsd sha1.h headers
|
|
// SHA1 is assumed to match the netbsd sha1.h headers
|
|
#define SHA1_DIGEST_LENGTH 20
|
|
#define SHA1_DIGEST_LENGTH 20
|
|
@@ -44,7 +45,7 @@ extern unsigned char * base64_decode(const unsigned char *src, size_t len, size_
|
|
extern void mem_init(void * start_addr);
|
|
extern void mem_init(void * start_addr);
|
|
|
|
|
|
// Interrupt Service Routine functions
|
|
// Interrupt Service Routine functions
|
|
-typedef void (*ets_isr_fn) (void *arg, uint32_t sp);
|
|
|
|
|
|
+typedef void (*ets_isr_fn) (void *arg);
|
|
extern int ets_isr_attach (unsigned int interrupt, ets_isr_fn, void *arg);
|
|
extern int ets_isr_attach (unsigned int interrupt, ets_isr_fn, void *arg);
|
|
extern void ets_isr_mask (unsigned intr);
|
|
extern void ets_isr_mask (unsigned intr);
|
|
extern void ets_isr_unmask (unsigned intr);
|
|
extern void ets_isr_unmask (unsigned intr);
|
|
@@ -108,4 +109,35 @@ typedef void (*exception_handler_fn) (struct exception_frame *ef, uint32_t cause
|
|
*/
|
|
*/
|
|
exception_handler_fn _xtos_set_exception_handler (uint32_t cause, exception_handler_fn handler);
|
|
exception_handler_fn _xtos_set_exception_handler (uint32_t cause, exception_handler_fn handler);
|
|
|
|
|
|
|
|
+
|
|
|
|
+void ets_update_cpu_frequency (uint32_t mhz);
|
|
|
|
+uint32_t ets_get_cpu_frequency (void);
|
|
|
|
+
|
|
|
|
+void *ets_memcpy (void *dst, const void *src, size_t n);
|
|
|
|
+void *ets_memmove (void *dst, const void *src, size_t n);
|
|
|
|
+void *ets_memset (void *dst, int c, size_t n);
|
|
|
|
+int ets_memcmp (const void *s1, const void *s2, size_t n);
|
|
|
|
+
|
|
|
|
+char *ets_strcpy (char *dst, const char *src);
|
|
|
|
+size_t ets_strlen (const char *s);
|
|
|
|
+int ets_strcmp (const char *s1, const char *s2);
|
|
|
|
+int ets_strncmp (const char *s1, const char *s2, size_t n);
|
|
|
|
+
|
|
|
|
+void ets_delay_us (uint32_t us);
|
|
|
|
+
|
|
|
|
+int ets_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
+
|
|
|
|
+int ets_sprintf(char *str, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
|
|
|
|
+
|
|
|
|
+void ets_str2macaddr (uint8_t *dst, const char *str);
|
|
|
|
+
|
|
|
|
+void ets_timer_disarm (ETSTimer *a);
|
|
|
|
+void ets_timer_setfn (ETSTimer *t, ETSTimerFunc *fn, void *parg);
|
|
|
|
+
|
|
|
|
+void Cache_Read_Enable(uint32_t b0, uint32_t b1, uint32_t use_40108000);
|
|
|
|
+void Cache_Read_Disable(void);
|
|
|
|
+
|
|
|
|
+void ets_intr_lock(void);
|
|
|
|
+void ets_intr_unlock(void);
|
|
|
|
+
|
|
#endif
|
|
#endif
|