39 lines
237 B
C++
39 lines
237 B
C++
/*
|
|
* TestBlinky.cpp
|
|
*
|
|
*/
|
|
|
|
|
|
#include "rodos.h"
|
|
#include "hal_gpio.h"
|
|
|
|
HAL_GPIO green(GPIO_060);
|
|
|
|
|
|
class Test:public Thread
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
void init()
|
|
|
|
{
|
|
green.init(1,1,1);
|
|
|
|
}
|
|
|
|
|
|
void run()
|
|
|
|
{
|
|
green.setPins(0);
|
|
}
|
|
|
|
};
|
|
|
|
Test t;
|
|
|