fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Committer:
gwappa
Date:
Mon May 14 14:12:32 2018 +0000
Revision:
0:f736749c33d2
Child:
2:0c241937eabd
set up config parser

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gwappa 0:f736749c33d2 1 #ifndef RANDOM_H__
gwappa 0:f736749c33d2 2 #define RANDOM_H__
gwappa 0:f736749c33d2 3
gwappa 0:f736749c33d2 4 #define RANDOM_NOISE_PIN PA_0
gwappa 0:f736749c33d2 5
gwappa 0:f736749c33d2 6 namespace random
gwappa 0:f736749c33d2 7 {
gwappa 0:f736749c33d2 8 typedef unsigned short uint16_t;
gwappa 0:f736749c33d2 9
gwappa 0:f736749c33d2 10 const unsigned int MAX_RESOLUTION = 65535;
gwappa 0:f736749c33d2 11
gwappa 0:f736749c33d2 12 void init();
gwappa 0:f736749c33d2 13 uint16_t exponential(const uint16_t& tau_ms, const uint16_t& cutoff, const unsigned int& resolution=MAX_RESOLUTION);
gwappa 0:f736749c33d2 14 }
gwappa 0:f736749c33d2 15
gwappa 0:f736749c33d2 16 #endif