mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
22 lines
910 B
C
22 lines
910 B
C
|
#include "PikaStdDevice_UART.h"
|
||
|
#include "BaseObj.h"
|
||
|
|
||
|
void PikaStdDevice_UART_enable(PikaObj *self) {}
|
||
|
void PikaStdDevice_UART_init(PikaObj *self) {}
|
||
|
void PikaStdDevice_UART_read(PikaObj *self, int length) {}
|
||
|
void PikaStdDevice_UART_setBaudRate(PikaObj *self, int baudRate) {}
|
||
|
void PikaStdDevice_UART_setId(PikaObj *self, int id) {}
|
||
|
void PikaStdDevice_UART_write(PikaObj *self, char *data) {}
|
||
|
|
||
|
void PikaStdDevice_UART_platformEnable(PikaObj *self, int baudRate, int id) {
|
||
|
obj_setErrorCode(self, 1);
|
||
|
obj_setSysOut(self, "[error] platform method need to be override.");
|
||
|
}
|
||
|
void PikaStdDevice_UART_platformRead(PikaObj *self, int length) {
|
||
|
obj_setErrorCode(self, 1);
|
||
|
obj_setSysOut(self, "[error] platform method need to be override.");
|
||
|
}
|
||
|
void PikaStdDevice_UART_platformWrite(PikaObj *self, char *data) {
|
||
|
obj_setErrorCode(self, 1);
|
||
|
obj_setSysOut(self, "[error] platform method need to be override.");
|
||
|
}
|