diff options
author | Alex Maestas <git@se30.xyz> | 2023-12-17 22:40:04 +0000 |
---|---|---|
committer | Alex Maestas <git@se30.xyz> | 2023-12-17 22:40:04 +0000 |
commit | 93d7f38d6797f3a145b87964f4c6aa522b513037 (patch) | |
tree | 4a2695b01d0ede3ebd5d67edb35e99688d1a0ad1 /watch-library/shared/watch | |
parent | 68f38652273bd6356e35dfcec0949f6783009dcf (diff) | |
download | Sensor-Watch-93d7f38d6797f3a145b87964f4c6aa522b513037.tar.gz Sensor-Watch-93d7f38d6797f3a145b87964f4c6aa522b513037.tar.bz2 Sensor-Watch-93d7f38d6797f3a145b87964f4c6aa522b513037.zip |
fix simulator build by declaring Trng type as a void pointer
Diffstat (limited to 'watch-library/shared/watch')
-rw-r--r-- | watch-library/shared/watch/watch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/watch-library/shared/watch/watch.h b/watch-library/shared/watch/watch.h index 4043fdf7..8ede1f63 100644 --- a/watch-library/shared/watch/watch.h +++ b/watch-library/shared/watch/watch.h @@ -96,6 +96,10 @@ void watch_reset_to_bootloader(void); */ int read(int file, char *ptr, int len); +#ifdef __EMSCRIPTEN__ +typedef void* Trng; +#endif + /** @brief Disables the TRNG, working around a silicon erratum. */ void watch_disable_TRNG(Trng* hw); |