From 0d4945777d88d173635944c40af7272a54feaaee Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 1 Oct 2021 20:08:50 -0400 Subject: [PATCH 1/2] =?UTF-8?q?[ab32vg1]=20=E4=BF=AE=E5=A4=8DNULL=E5=92=8C?= =?UTF-8?q?uint8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/bluetrum/libraries/hal_drivers/drv_common.c | 8 ++++---- bsp/bluetrum/libraries/hal_drivers/drv_usart.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bsp/bluetrum/libraries/hal_drivers/drv_common.c b/bsp/bluetrum/libraries/hal_drivers/drv_common.c index 75b3426010..7252050589 100644 --- a/bsp/bluetrum/libraries/hal_drivers/drv_common.c +++ b/bsp/bluetrum/libraries/hal_drivers/drv_common.c @@ -19,27 +19,27 @@ void uart1_irq_process(void); RT_SECTION(".irq.uart") void uart0_irq_post(void) { - uint8_t mq_msg = MSG_UART0_IRQ; + rt_uint8_t mq_msg = MSG_UART0_IRQ; rt_mq_send(drv_mq, &mq_msg, 1); } RT_SECTION(".irq.uart") void uart1_irq_post(void) { - uint8_t mq_msg = MSG_UART1_IRQ; + rt_uint8_t mq_msg = MSG_UART1_IRQ; rt_mq_send(drv_mq, &mq_msg, 1); } RT_SECTION(".irq.uart") void uart2_irq_post(void) { - uint8_t mq_msg = MSG_UART2_IRQ; + rt_uint8_t mq_msg = MSG_UART2_IRQ; rt_mq_send(drv_mq, &mq_msg, 1); } static void drv_thread_entry(void *parameter) { - uint8_t mq_msg = 0; + rt_uint8_t mq_msg = 0; while (1) { rt_mq_recv(drv_mq, &mq_msg, 1, RT_WAITING_FOREVER); switch (mq_msg) { diff --git a/bsp/bluetrum/libraries/hal_drivers/drv_usart.c b/bsp/bluetrum/libraries/hal_drivers/drv_usart.c index 23aa85848d..d1a46ad095 100644 --- a/bsp/bluetrum/libraries/hal_drivers/drv_usart.c +++ b/bsp/bluetrum/libraries/hal_drivers/drv_usart.c @@ -324,7 +324,7 @@ int rt_hw_usart_init(void) | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_INT_TX | uart_obj[i].uart_dma_flag - , NULL); + , RT_NULL); RT_ASSERT(result == RT_EOK); } From e49925584f407e23f264e5e551b7853d72a32ef0 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 1 Oct 2021 20:18:05 -0400 Subject: [PATCH 2/2] [ci] add ab32vg1 --- .github/workflows/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 88056a1da5..40e6bd6052 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -138,6 +138,7 @@ jobs: - {RTT_BSP: "raspberry-pi/raspi4-32", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "hc32l196", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "tae32f5300", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "bluetrum/ab32vg1-ab-prougen", RTT_TOOL_CHAIN: "sourcery-riscv"} steps: - uses: actions/checkout@v2 - name: Set up Python