fix simulator build by declaring Trng type as a void pointer
This commit is contained in:
parent
68f3865227
commit
93d7f38d67
@ -96,6 +96,10 @@ void watch_reset_to_bootloader(void);
|
|||||||
*/
|
*/
|
||||||
int read(int file, char *ptr, int len);
|
int read(int file, char *ptr, int len);
|
||||||
|
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
typedef void* Trng;
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @brief Disables the TRNG, working around a silicon erratum.
|
/** @brief Disables the TRNG, working around a silicon erratum.
|
||||||
*/
|
*/
|
||||||
void watch_disable_TRNG(Trng* hw);
|
void watch_disable_TRNG(Trng* hw);
|
||||||
|
@ -57,6 +57,8 @@ void _watch_disable_tcc(void) {}
|
|||||||
|
|
||||||
void _watch_enable_usb(void) {}
|
void _watch_enable_usb(void) {}
|
||||||
|
|
||||||
|
void watch_disable_TRNG(Trng* hw) {}
|
||||||
|
|
||||||
// this function ends up getting called by printf to log stuff to the USB console.
|
// this function ends up getting called by printf to log stuff to the USB console.
|
||||||
int _write(int file, char *ptr, int len) {
|
int _write(int file, char *ptr, int len) {
|
||||||
// TODO: (a2) hook to UI
|
// TODO: (a2) hook to UI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user