mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add_files
This commit is contained in:
parent
721330999e
commit
9f9579c54e
7
package/AIR32F1/AIR32F1.c
Normal file
7
package/AIR32F1/AIR32F1.c
Normal 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);
|
||||
}
|
82
package/AIR32F1/AIR32F1.pyi
Normal file
82
package/AIR32F1/AIR32F1.pyi
Normal 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): ...
|
||||
|
17
package/AIR32F1/AIR32F1_ADC.c
Normal file
17
package/AIR32F1/AIR32F1_ADC.c
Normal 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){
|
||||
|
||||
}
|
24
package/AIR32F1/AIR32F1_CAN.c
Normal file
24
package/AIR32F1/AIR32F1_CAN.c
Normal 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){
|
||||
|
||||
}
|
13
package/AIR32F1/AIR32F1_GPIO.c
Normal file
13
package/AIR32F1/AIR32F1_GPIO.c
Normal 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) {
|
||||
|
||||
}
|
24
package/AIR32F1/AIR32F1_IIC.c
Normal file
24
package/AIR32F1/AIR32F1_IIC.c
Normal 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){
|
||||
|
||||
}
|
18
package/AIR32F1/AIR32F1_PWM.c
Normal file
18
package/AIR32F1/AIR32F1_PWM.c
Normal 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){
|
||||
|
||||
}
|
24
package/AIR32F1/AIR32F1_SPI.c
Normal file
24
package/AIR32F1/AIR32F1_SPI.c
Normal 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){
|
||||
|
||||
}
|
16
package/AIR32F1/AIR32F1_Time.c
Normal file
16
package/AIR32F1/AIR32F1_Time.c
Normal 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){
|
||||
|
||||
}
|
17
package/AIR32F1/AIR32F1_UART.c
Normal file
17
package/AIR32F1/AIR32F1_UART.c
Normal 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){
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user