A library for observing RAM utilization with an oscilloscope.
scope_RAM.h
- Committer:
- altasoul
- Date:
- 2013-11-12
- Revision:
- 0:e996e4a4c783
- Child:
- 1:b6905730f836
File content as of revision 0:e996e4a4c783:
#ifndef SCOPE_RAM_H #define SCOPE_RAM_H #include "rtos.h" #define WATERMARK 0xaa class RAMscope { public: RAMscope(PinName trigger_pin, PinName value_pin); void watermark(unsigned char *start, int length); void scope(unsigned char *start, int length=128, int period=10); void stop(); private: DigitalOut trigger_output, value_output; RtosTimer scope_ram_timer; static void scope_ram(const void *arg); void output_to_scope(void); unsigned char *start; int length; }; #endif