We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f3865 commit 93d7f38Copy full SHA for 93d7f38
watch-library/shared/watch/watch.h
@@ -96,6 +96,10 @@ void watch_reset_to_bootloader(void);
96
*/
97
int read(int file, char *ptr, int len);
98
99
+#ifdef __EMSCRIPTEN__
100
+typedef void* Trng;
101
+#endif
102
+
103
/** @brief Disables the TRNG, working around a silicon erratum.
104
105
void watch_disable_TRNG(Trng* hw);
watch-library/simulator/watch/watch_private.c
@@ -57,6 +57,8 @@ void _watch_disable_tcc(void) {}
57
58
void _watch_enable_usb(void) {}
59
60
+void watch_disable_TRNG(Trng* hw) {}
61
62
// this function ends up getting called by printf to log stuff to the USB console.
63
int _write(int file, char *ptr, int len) {
64
// TODO: (a2) hook to UI
0 commit comments