2022-05-24 14:13:31 +08:00
|
|
|
#include "TemplateDevice_GPIO.h"
|
|
|
|
|
2022-06-17 05:22:47 +00:00
|
|
|
void TemplateDevice_GPIO_platformDisable(PikaObj* self) {}
|
|
|
|
void TemplateDevice_GPIO_platformEnable(PikaObj* self) {}
|
|
|
|
void TemplateDevice_GPIO_platformHigh(PikaObj* self) {}
|
|
|
|
void TemplateDevice_GPIO_platformLow(PikaObj* self) {}
|
|
|
|
void TemplateDevice_GPIO_platformRead(PikaObj* self) {}
|
|
|
|
void TemplateDevice_GPIO_platformSetMode(PikaObj* self) {}
|
2022-05-24 14:13:31 +08:00
|
|
|
|
2022-06-17 05:22:47 +00:00
|
|
|
const uint32_t GPIO_PA8_EVENT_ID = 0x08;
|
|
|
|
void TemplateDevice_GPIO_platformGetEventId(PikaObj* self) {
|
|
|
|
char* pin = obj_getStr(self, "pin");
|
|
|
|
if (strEqu(pin, "PA8")) {
|
|
|
|
obj_setInt(self, "eventId", GPIO_PA8_EVENT_ID);
|
|
|
|
}
|
2022-05-24 14:13:31 +08:00
|
|
|
}
|