Steve Ravet
/
ticker_test5
short program to show a problem with spi and tickers
pattern.h@0:85d990bd01f4, 2010-10-20 (annotated)
- Committer:
- sravet
- Date:
- Wed Oct 20 04:32:32 2010 +0000
- Revision:
- 0:85d990bd01f4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sravet | 0:85d990bd01f4 | 1 | |
sravet | 0:85d990bd01f4 | 2 | |
sravet | 0:85d990bd01f4 | 3 | #define ISR_FREQ 5000 |
sravet | 0:85d990bd01f4 | 4 | #define NUM_SAMPLES 100 |
sravet | 0:85d990bd01f4 | 5 | |
sravet | 0:85d990bd01f4 | 6 | class pattern { |
sravet | 0:85d990bd01f4 | 7 | Ticker update_ticker; |
sravet | 0:85d990bd01f4 | 8 | private: |
sravet | 0:85d990bd01f4 | 9 | void update_isr(void); |
sravet | 0:85d990bd01f4 | 10 | public: |
sravet | 0:85d990bd01f4 | 11 | pattern(void); |
sravet | 0:85d990bd01f4 | 12 | void start(void); |
sravet | 0:85d990bd01f4 | 13 | }; |