2020-02-05 21:09:39 +01:00
|
|
|
#include <lib/display.h>
|
2019-12-06 23:45:04 +01:00
|
|
|
|
2020-02-05 21:09:39 +01:00
|
|
|
int main(void)
|
2019-12-06 23:45:04 +01:00
|
|
|
{
|
2020-02-05 21:09:39 +01:00
|
|
|
uint32_t counter = 0;
|
|
|
|
while (1)
|
|
|
|
{
|
|
|
|
// Display data
|
|
|
|
dclr_str_area(0, 2, 20, 1);
|
|
|
|
dprint(0, 2, "C process: %d", counter);
|
|
|
|
dupdate();
|
2019-12-06 23:45:04 +01:00
|
|
|
|
2020-02-05 21:09:39 +01:00
|
|
|
// Update counter and "wait"
|
|
|
|
counter = counter + 1;
|
|
|
|
if (counter >= 100)
|
|
|
|
counter = 0;
|
|
|
|
for (int i = 0 ; i < 300000 ; ++i);
|
|
|
|
}
|
|
|
|
}
|