Skip to content
Snippets Groups Projects
Commit f9b2e27b authored by ch3's avatar ch3
Browse files

feat(api-demo): add test function

parent f8c5454b
No related branches found
No related tags found
No related merge requests found
......@@ -18,4 +18,7 @@ typedef struct {
#define API_LED 0xc0ffee
API(API_LED, void api_set_led(uint8_t led, led_color_t color));
#define API_TEST 0xdeadc0de
API(API_TEST, void api_test(char test0, short test1, int test2, long test3));
#endif /* _API_H */
......@@ -25,6 +25,12 @@ void api_set_led(uint8_t led, led_color_t color)
leds_set(led, color.red, color.green, color.blue);
}
void api_test(char test0, short test1, int test2, long test3)
{
printf ("test0: %x, test1: %x, test2: %x, test3: %x\n",
test0, test1, test2, test3);
}
int main(void)
{
api_init(NULL);
......@@ -34,6 +40,7 @@ int main(void)
TMR_Delay(MXC_TMR1, MSEC(100), 0);
}
#if 0
// Enable rxev on core1
MXC_GCR->evten |= 0x20;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment