add_files

This commit is contained in:
supperthomas 2023-04-23 23:17:28 +08:00
parent 11080aa513
commit ea40ab79a5
6 changed files with 184 additions and 0 deletions

View File

@ -0,0 +1,30 @@
#include "../PikaStdDevice/pika_hal.h"
int pika_hal_platform_ADC_open(pika_dev* dev, char* name) {
return -1;
}
int pika_hal_platform_ADC_close(pika_dev* dev) {
return -1;
}
int pika_hal_platform_ADC_ioctl_config(pika_dev* dev,
pika_hal_ADC_config* cfg) {
return -1;
}
int pika_hal_platform_ADC_read(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_ADC_write(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_ADC_ioctl_enable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_ADC_ioctl_disable(pika_dev* dev) {
return -1;
}

View File

@ -0,0 +1,30 @@
#include "../PikaStdDevice/pika_hal.h"
int pika_hal_platform_DAC_open(pika_dev* dev, char* name) {
return -1;
}
int pika_hal_platform_DAC_close(pika_dev* dev) {
return -1;
}
int pika_hal_platform_DAC_ioctl_config(pika_dev* dev,
pika_hal_DAC_config* cfg) {
return -1;
}
int pika_hal_platform_DAC_read(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_DAC_write(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_DAC_ioctl_enable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_DAC_ioctl_disable(pika_dev* dev) {
return -1;
}

View File

@ -0,0 +1,31 @@
#include <hosal_i2c.h>
#include "../PikaStdDevice/pika_hal.h"
int pika_hal_platform_IIC_open(pika_dev* dev, char* name) {
return -1;
}
int pika_hal_platform_IIC_close(pika_dev* dev) {
return -1;
}
int pika_hal_platform_IIC_ioctl_config(pika_dev* dev,
pika_hal_IIC_config* cfg) {
return -1;
}
int pika_hal_platform_IIC_ioctl_enable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_IIC_ioctl_disable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_IIC_write(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_IIC_read(pika_dev* dev, void* buf, size_t count) {
return -1;
}

View File

@ -0,0 +1,31 @@
#include "../PikaStdDevice/pika_hal.h"
int pika_hal_platform_PWM_open(pika_dev* dev, char* name) {
return -1;
}
int pika_hal_platform_PWM_close(pika_dev* dev) {
return -1;
}
int pika_hal_platform_PWM_read(pika_dev* dev, void* buf, size_t count) {
/* not support */
return -1;
}
int pika_hal_platform_PWM_write(pika_dev* dev, void* buf, size_t count) {
/* not support */
return -1;
}
int pika_hal_platform_PWM_ioctl_enable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_PWM_ioctl_disable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_PWM_ioctl_config(pika_dev* dev,
pika_hal_PWM_config* cfg) {
return -1;
}

View File

@ -0,0 +1,31 @@
#include "../PikaStdDevice/pika_hal.h"
int pika_hal_platform_SPI_open(pika_dev* dev, char* name) {
return -1;
}
int pika_hal_platform_SPI_close(pika_dev* dev) {
return -1;
}
int pika_hal_platform_SPI_ioctl_config(pika_dev* dev,
pika_hal_SPI_config* cfg) {
return -1;
}
int pika_hal_platform_SPI_ioctl_enable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_SPI_ioctl_disable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_SPI_write(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_SPI_read(pika_dev* dev, void* buf, size_t count) {
return -1;
}

View File

@ -0,0 +1,31 @@
#include "../PikaStdDevice/pika_hal.h"
int pika_hal_platform_UART_open(pika_dev* dev, char* name) {
return -1;
}
int pika_hal_platform_UART_close(pika_dev* dev) {
return -1;
}
int pika_hal_platform_UART_ioctl_config(pika_dev* dev,
pika_hal_UART_config* cfg) {
return -1;
}
int pika_hal_platform_UART_ioctl_enable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_UART_ioctl_disable(pika_dev* dev) {
return -1;
}
int pika_hal_platform_UART_write(pika_dev* dev, void* buf, size_t count) {
return -1;
}
int pika_hal_platform_UART_read(pika_dev* dev, void* buf, size_t count) {
return -1;
}