提交 f070d640 编写于 作者: I iysheng

[bsp][gd32450z-eval] Synchronize firmware library updates

上级 7b5fd81d
...@@ -21,12 +21,12 @@ path = [ ...@@ -21,12 +21,12 @@ path = [
cwd + '/CMSIS/GD/GD32F4xx/Include', cwd + '/CMSIS/GD/GD32F4xx/Include',
cwd + '/CMSIS', cwd + '/CMSIS',
cwd + '/GD32F4xx_standard_peripheral/Include',] cwd + '/GD32F4xx_standard_peripheral/Include',]
if GetDepend(['RT_USING_BSP_USB']): if GetDepend(['RT_USING_BSP_USB']):
path += [cwd + '/GD32F4xx_usb_driver/Include'] path += [cwd + '/GD32F4xx_usb_driver/Include']
src += [cwd + '/GD32F4xx_usb_driver/Source'] src += [cwd + '/GD32F4xx_usb_driver/Source']
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F4XX'] CPPDEFINES = ['USE_STDPERIPH_DRIVER']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
......
...@@ -377,14 +377,14 @@ static rt_err_t gd32_control(struct rt_serial_device *serial, int cmd, void *arg ...@@ -377,14 +377,14 @@ static rt_err_t gd32_control(struct rt_serial_device *serial, int cmd, void *arg
/* disable rx irq */ /* disable rx irq */
NVIC_DisableIRQ(uart->irqn); NVIC_DisableIRQ(uart->irqn);
/* disable interrupt */ /* disable interrupt */
usart_interrupt_disable(uart->uart_periph, USART_INTEN_RBNEIE); usart_interrupt_disable(uart->uart_periph, USART_INT_RBNE);
break; break;
case RT_DEVICE_CTRL_SET_INT: case RT_DEVICE_CTRL_SET_INT:
/* enable rx irq */ /* enable rx irq */
NVIC_EnableIRQ(uart->irqn); NVIC_EnableIRQ(uart->irqn);
/* enable interrupt */ /* enable interrupt */
usart_interrupt_enable(uart->uart_periph, USART_INTEN_RBNEIE); usart_interrupt_enable(uart->uart_periph, USART_INT_RBNE);
break; break;
} }
...@@ -430,7 +430,7 @@ static void uart_isr(struct rt_serial_device *serial) ...@@ -430,7 +430,7 @@ static void uart_isr(struct rt_serial_device *serial)
RT_ASSERT(uart != RT_NULL); RT_ASSERT(uart != RT_NULL);
/* UART in mode Receiver -------------------------------------------------*/ /* UART in mode Receiver -------------------------------------------------*/
if ((usart_interrupt_flag_get(uart->uart_periph, USART_INT_RBNEIE) != RESET) && if ((usart_interrupt_flag_get(uart->uart_periph, USART_INT_FLAG_RBNE) != RESET) &&
(usart_flag_get(uart->uart_periph, USART_FLAG_RBNE) != RESET)) (usart_flag_get(uart->uart_periph, USART_FLAG_RBNE) != RESET))
{ {
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND);
......
...@@ -38,7 +38,7 @@ if PLATFORM == 'gcc': ...@@ -38,7 +38,7 @@ if PLATFORM == 'gcc':
OBJDUMP = PREFIX + 'objdump' OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy' OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -DGD32F450'
CFLAGS = DEVICE + ' -Dgcc' # -D' + PART_TYPE CFLAGS = DEVICE + ' -Dgcc' # -D' + PART_TYPE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-gd32.map,-cref,-u,Reset_Handler -T gd32_rom.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-gd32.map,-cref,-u,Reset_Handler -T gd32_rom.ld'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册