LPC800-MAX RGB demo using SCT and MRT

LPC800-MAX RGB demo using State-Configurable Timer(SCT) and Multi-Rate Timer(MRT).
http://www.youtube.com/watch?v=PABxoWZB0YM

Committer:
va009039
Date:
Mon Oct 14 03:59:30 2013 +0000
Revision:
1:4e19f154ec21
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 1:4e19f154ec21 1 #pragma once
va009039 1:4e19f154ec21 2 #include "LPC8xx.h"
va009039 1:4e19f154ec21 3
va009039 1:4e19f154ec21 4 class MRT {
va009039 1:4e19f154ec21 5 public:
va009039 1:4e19f154ec21 6 MRT(int channel = 0);
va009039 1:4e19f154ec21 7 /** write down counter
va009039 1:4e19f154ec21 8 * @param interval start count
va009039 1:4e19f154ec21 9 */
va009039 1:4e19f154ec21 10 void write(uint32_t interval);
va009039 1:4e19f154ec21 11 /** read down counter
va009039 1:4e19f154ec21 12 */
va009039 1:4e19f154ec21 13 uint32_t read();
va009039 1:4e19f154ec21 14 enum STAT {
va009039 1:4e19f154ec21 15 IDLE,
va009039 1:4e19f154ec21 16 RUNNING,
va009039 1:4e19f154ec21 17 };
va009039 1:4e19f154ec21 18 int status();
va009039 1:4e19f154ec21 19 void wait_ms(uint32_t timeout_ms);
va009039 1:4e19f154ec21 20 void wait_us(uint32_t timeout_us);
va009039 1:4e19f154ec21 21 void wait_raw(uint32_t timeout);
va009039 1:4e19f154ec21 22 protected:
va009039 1:4e19f154ec21 23 void inst();
va009039 1:4e19f154ec21 24 MRT_Channel_cfg_Type* _ch;
va009039 1:4e19f154ec21 25 int us_clk;
va009039 1:4e19f154ec21 26 };