From ea40ab79a595a5404ef06573b74c27cb7a8a74c1 Mon Sep 17 00:00:00 2001 From: supperthomas <78900636@qq.com> Date: Sun, 23 Apr 2023 23:17:28 +0800 Subject: [PATCH 1/2] add_files --- package/pikaRTDevice/pika_hal_RTT_ADC.c | 30 +++++++++++++++++++++++ package/pikaRTDevice/pika_hal_RTT_DAC.c | 30 +++++++++++++++++++++++ package/pikaRTDevice/pika_hal_RTT_IIC.c | 31 ++++++++++++++++++++++++ package/pikaRTDevice/pika_hal_RTT_PWM.c | 31 ++++++++++++++++++++++++ package/pikaRTDevice/pika_hal_RTT_SPI.c | 31 ++++++++++++++++++++++++ package/pikaRTDevice/pika_hal_RTT_UART.c | 31 ++++++++++++++++++++++++ 6 files changed, 184 insertions(+) create mode 100644 package/pikaRTDevice/pika_hal_RTT_ADC.c create mode 100644 package/pikaRTDevice/pika_hal_RTT_DAC.c create mode 100644 package/pikaRTDevice/pika_hal_RTT_IIC.c create mode 100644 package/pikaRTDevice/pika_hal_RTT_PWM.c create mode 100644 package/pikaRTDevice/pika_hal_RTT_SPI.c create mode 100644 package/pikaRTDevice/pika_hal_RTT_UART.c diff --git a/package/pikaRTDevice/pika_hal_RTT_ADC.c b/package/pikaRTDevice/pika_hal_RTT_ADC.c new file mode 100644 index 000000000..7eb95ea0a --- /dev/null +++ b/package/pikaRTDevice/pika_hal_RTT_ADC.c @@ -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; +} diff --git a/package/pikaRTDevice/pika_hal_RTT_DAC.c b/package/pikaRTDevice/pika_hal_RTT_DAC.c new file mode 100644 index 000000000..b04a0e6ec --- /dev/null +++ b/package/pikaRTDevice/pika_hal_RTT_DAC.c @@ -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; +} diff --git a/package/pikaRTDevice/pika_hal_RTT_IIC.c b/package/pikaRTDevice/pika_hal_RTT_IIC.c new file mode 100644 index 000000000..93b5f176a --- /dev/null +++ b/package/pikaRTDevice/pika_hal_RTT_IIC.c @@ -0,0 +1,31 @@ +#include +#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; +} diff --git a/package/pikaRTDevice/pika_hal_RTT_PWM.c b/package/pikaRTDevice/pika_hal_RTT_PWM.c new file mode 100644 index 000000000..635c274f3 --- /dev/null +++ b/package/pikaRTDevice/pika_hal_RTT_PWM.c @@ -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; +} diff --git a/package/pikaRTDevice/pika_hal_RTT_SPI.c b/package/pikaRTDevice/pika_hal_RTT_SPI.c new file mode 100644 index 000000000..9e99cb61c --- /dev/null +++ b/package/pikaRTDevice/pika_hal_RTT_SPI.c @@ -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; +} diff --git a/package/pikaRTDevice/pika_hal_RTT_UART.c b/package/pikaRTDevice/pika_hal_RTT_UART.c new file mode 100644 index 000000000..77ac40c63 --- /dev/null +++ b/package/pikaRTDevice/pika_hal_RTT_UART.c @@ -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; +} From 295c0ed7ee18fe09e7fa3b0620deb0eebce6e910 Mon Sep 17 00:00:00 2001 From: supperthomas <78900636@qq.com> Date: Sun, 23 Apr 2023 23:17:29 +0800 Subject: [PATCH 2/2] update_toml --- packages.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages.toml b/packages.toml index 537c89b5b..2ddce5670 100644 --- a/packages.toml +++ b/packages.toml @@ -357,7 +357,8 @@ releases = [ "v1.0.0 ac4247e5fd3e221eb110a1b41276849c623049ec", "v1.0.1 61e6a7352b65adbce0f2ad82ea1fc992dcbb603", "v1.1.0 9f3a52558338503571b37c034a12219566f27aa2", - "v1.1.1 6f3a7dc59e89d9f48f2bb3a55966d34551047894" + "v1.1.1 6f3a7dc59e89d9f48f2bb3a55966d34551047894", + "v1.1.2 ea40ab79a595a5404ef06573b74c27cb7a8a74c1" ] [[packages]]