add_files

This commit is contained in:
lyon 2022-08-25 13:32:34 +08:00
parent 721330999e
commit 9f9579c54e
10 changed files with 242 additions and 0 deletions

View File

@ -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);
}

View File

@ -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): ...

View File

@ -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){
}

View File

@ -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){
}

View File

@ -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) {
}

View File

@ -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){
}

View File

@ -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){
}

View File

@ -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){
}

View File

@ -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){
}

View File

@ -0,0 +1,17 @@
#include "AIR32F1_UART.h"
#include <stdio.h>
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){
}