fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Revision:
13:8ea85a33e37a
Parent:
2:0c241937eabd
--- a/random.h	Mon Jun 25 12:10:31 2018 +0000
+++ b/random.h	Mon Jun 25 13:20:00 2018 +0000
@@ -2,6 +2,7 @@
 #define RANDOM_H__
 
 #define RANDOM_NOISE_PIN PA_0
+#include "inttypes.h"
 
 namespace random
 {   
@@ -10,8 +11,8 @@
     const unsigned int MAX_RESOLUTION = 65535;
     
     void init();
-    uint16_t unif(const uint16_t& nlevels);
-    uint16_t exponential(const uint16_t& tau_ms, const uint16_t& cutoff, const unsigned int& resolution=MAX_RESOLUTION);
+    uint32_t unif(const uint32_t& nlevels);
+    uint32_t exponential(const uint32_t& tau, const uint32_t& cutoff, const unsigned int& resolution=MAX_RESOLUTION);
 }
 
 #endif
\ No newline at end of file