mirror of
https://github.com/ioacademy-jikim/android_framwork
synced 2025-06-07 16:06:29 +00:00
20 lines
205 B
C
20 lines
205 B
C
#include <stdio.h>
|
|
|
|
typedef struct module
|
|
{
|
|
void (*on)();
|
|
void (*off)();
|
|
} module_t;
|
|
|
|
void ledOn()
|
|
{
|
|
printf("ledOn()\n");
|
|
}
|
|
|
|
void ledOff()
|
|
{
|
|
printf("ledOff()\n");
|
|
}
|
|
|
|
module_t HMI = { ledOn, ledOff };
|