diff --git a/package/AIR32F1/AIR32F1.c b/package/AIR32F1/AIR32F1.c new file mode 100644 index 000000000..26add3845 --- /dev/null +++ b/package/AIR32F1/AIR32F1.c @@ -0,0 +1,7 @@ +#include "AIR32F1.h" + +extern PikaEventListener* g_pika_device_event_listener; + +void AIR32F1___del__(PikaObj *self){ + pks_eventLisener_deinit(&g_pika_device_event_listener); +} diff --git a/package/AIR32F1/AIR32F1.pyi b/package/AIR32F1/AIR32F1.pyi new file mode 100644 index 000000000..b1e8d1fdf --- /dev/null +++ b/package/AIR32F1/AIR32F1.pyi @@ -0,0 +1,82 @@ +import PikaStdDevice + + +class GPIO(PikaStdDevice.GPIO): + # overrid + def platformHigh(self): ... + def platformLow(self): ... + def platformEnable(self): ... + def platformDisable(self): ... + def platformSetMode(self): ... + def platformRead(self): ... + def platformGetEventId(self): ... + + +class Time(PikaStdDevice.Time): + # override + def sleep_s(self, s: int): ... + def sleep_ms(self, ms: int): ... + def platformGetTick(): ... + def platformGetEventId(self): ... + + +class ADC(PikaStdDevice.ADC): + # override + def platformEnable(self): ... + def platformRead(self): ... + def platformDisable(self): ... + def platformGetEventId(self): ... + + +class UART(PikaStdDevice.UART): + # override + def platformEnable(self): ... + def platformWrite(self): ... + def platformWriteBytes(self): ... + def platformRead(self): ... + def platformReadBytes(self): ... + def platformDisable(self): ... + def platformGetEventId(self): ... + + +class IIC(PikaStdDevice.IIC): + # override + def platformEnable(self): ... + def platformWrite(self): ... + def platformWriteBytes(self): ... + def platformRead(self): ... + def platformReadBytes(self): ... + def platformDisable(self): ... + def platformGetEventId(self): ... + + +class PWM(PikaStdDevice.PWM): + # override + def platformEnable(self): ... + def platformSetFrequency(self): ... + def platformSetDuty(self): ... + def platformDisable(self): ... + def platformGetEventId(self): ... + + +class SPI(PikaStdDevice.SPI): + # override + def platformEnable(self): ... + def platformWrite(self): ... + def platformWriteBytes(self): ... + def platformRead(self): ... + def platformReadBytes(self): ... + def platformDisable(self): ... + def platformGetEventId(self): ... + + +class CAN(PikaStdDevice.CAN): + # override + def platformEnable(self): ... + def platformWrite(self): ... + def platformWriteBytes(self): ... + def platformRead(self): ... + def platformReadBytes(self): ... + def platformDisable(self): ... + def platformGetEventId(self): ... + diff --git a/package/AIR32F1/AIR32F1_ADC.c b/package/AIR32F1/AIR32F1_ADC.c new file mode 100644 index 000000000..a90bd199a --- /dev/null +++ b/package/AIR32F1/AIR32F1_ADC.c @@ -0,0 +1,17 @@ +#include "AIR32F1_ADC.h" + +void AIR32F1_ADC_platformDisable(PikaObj *self){ + +} + +void AIR32F1_ADC_platformEnable(PikaObj *self){ + +} + +void AIR32F1_ADC_platformRead(PikaObj *self){ + +} + +void AIR32F1_ADC_platformGetEventId(PikaObj *self){ + +} diff --git a/package/AIR32F1/AIR32F1_CAN.c b/package/AIR32F1/AIR32F1_CAN.c new file mode 100644 index 000000000..b0b05c84a --- /dev/null +++ b/package/AIR32F1/AIR32F1_CAN.c @@ -0,0 +1,24 @@ +#include "AIR32F1_CAN.h" + +void AIR32F1_CAN_platformDisable(PikaObj *self){ + +} +void AIR32F1_CAN_platformEnable(PikaObj *self){ + +} +void AIR32F1_CAN_platformRead(PikaObj *self){ + +} +void AIR32F1_CAN_platformReadBytes(PikaObj *self){ + +} +void AIR32F1_CAN_platformWrite(PikaObj *self){ + +} +void AIR32F1_CAN_platformWriteBytes(PikaObj *self){ + +} + +void AIR32F1_CAN_platformGetEventId(PikaObj *self){ + +} diff --git a/package/AIR32F1/AIR32F1_GPIO.c b/package/AIR32F1/AIR32F1_GPIO.c new file mode 100644 index 000000000..616471f58 --- /dev/null +++ b/package/AIR32F1/AIR32F1_GPIO.c @@ -0,0 +1,13 @@ +#include "AIR32F1_GPIO.h" + +void AIR32F1_GPIO_platformDisable(PikaObj* self) {} +void AIR32F1_GPIO_platformEnable(PikaObj* self) {} +void AIR32F1_GPIO_platformHigh(PikaObj* self) {} +void AIR32F1_GPIO_platformLow(PikaObj* self) {} +void AIR32F1_GPIO_platformRead(PikaObj* self) {} +void AIR32F1_GPIO_platformSetMode(PikaObj* self) {} + +const uint32_t GPIO_PA8_EVENT_ID = 0x08; +void AIR32F1_GPIO_platformGetEventId(PikaObj* self) { + +} diff --git a/package/AIR32F1/AIR32F1_IIC.c b/package/AIR32F1/AIR32F1_IIC.c new file mode 100644 index 000000000..24a46c372 --- /dev/null +++ b/package/AIR32F1/AIR32F1_IIC.c @@ -0,0 +1,24 @@ +#include "AIR32F1_IIC.h" + +void AIR32F1_IIC_platformDisable(PikaObj *self){ + +} +void AIR32F1_IIC_platformEnable(PikaObj *self){ + +} +void AIR32F1_IIC_platformRead(PikaObj *self){ + +} +void AIR32F1_IIC_platformReadBytes(PikaObj *self){ + +} +void AIR32F1_IIC_platformWrite(PikaObj *self){ + +} +void AIR32F1_IIC_platformWriteBytes(PikaObj *self){ + +} + +void AIR32F1_IIC_platformGetEventId(PikaObj *self){ + +} diff --git a/package/AIR32F1/AIR32F1_PWM.c b/package/AIR32F1/AIR32F1_PWM.c new file mode 100644 index 000000000..86895c15d --- /dev/null +++ b/package/AIR32F1/AIR32F1_PWM.c @@ -0,0 +1,18 @@ +#include "AIR32F1_PWM.h" + +void AIR32F1_PWM_platformDisable(PikaObj *self){ + +} +void AIR32F1_PWM_platformEnable(PikaObj *self){ + +} +void AIR32F1_PWM_platformSetDuty(PikaObj *self){ + +} +void AIR32F1_PWM_platformSetFrequency(PikaObj *self){ + +} + +void AIR32F1_PWM_platformGetEventId(PikaObj *self){ + +} diff --git a/package/AIR32F1/AIR32F1_SPI.c b/package/AIR32F1/AIR32F1_SPI.c new file mode 100644 index 000000000..c1903cec6 --- /dev/null +++ b/package/AIR32F1/AIR32F1_SPI.c @@ -0,0 +1,24 @@ +#include "AIR32F1_SPI.h" + +void AIR32F1_SPI_platformDisable(PikaObj *self){ + +} +void AIR32F1_SPI_platformEnable(PikaObj *self){ + +} +void AIR32F1_SPI_platformRead(PikaObj *self){ + +} +void AIR32F1_SPI_platformReadBytes(PikaObj *self){ + +} +void AIR32F1_SPI_platformWrite(PikaObj *self){ + +} +void AIR32F1_SPI_platformWriteBytes(PikaObj *self){ + +} + +void AIR32F1_SPI_platformGetEventId(PikaObj *self){ + +} diff --git a/package/AIR32F1/AIR32F1_Time.c b/package/AIR32F1/AIR32F1_Time.c new file mode 100644 index 000000000..2fca7c8aa --- /dev/null +++ b/package/AIR32F1/AIR32F1_Time.c @@ -0,0 +1,16 @@ +#include "AIR32F1_Time.h" + +void AIR32F1_Time_sleep_ms(PikaObj *self, int ms){ + +} +void AIR32F1_Time_sleep_s(PikaObj *self, int s){ + +} + +void AIR32F1_Time_platformGetTick(PikaObj *self){ + +} + +void AIR32F1_Time_platformGetEventId(PikaObj *self){ + +} diff --git a/package/AIR32F1/AIR32F1_UART.c b/package/AIR32F1/AIR32F1_UART.c new file mode 100644 index 000000000..893682581 --- /dev/null +++ b/package/AIR32F1/AIR32F1_UART.c @@ -0,0 +1,17 @@ +#include "AIR32F1_UART.h" +#include + +void AIR32F1_UART_platformDisable(PikaObj* self) {} +void AIR32F1_UART_platformEnable(PikaObj* self) {} +void AIR32F1_UART_platformRead(PikaObj* self) {} +void AIR32F1_UART_platformReadBytes(PikaObj* self) { + +} +void AIR32F1_UART_platformWrite(PikaObj* self) {} +void AIR32F1_UART_platformWriteBytes(PikaObj* self) { + +} + +void AIR32F1_UART_platformGetEventId(PikaObj *self){ + +}