[bsp][gd32450z-eval] Synchronize firmware library updates
This commit is contained in:
parent
7b5fd81d06
commit
f070d64021
@ -21,12 +21,12 @@ path = [
|
||||
cwd + '/CMSIS/GD/GD32F4xx/Include',
|
||||
cwd + '/CMSIS',
|
||||
cwd + '/GD32F4xx_standard_peripheral/Include',]
|
||||
|
||||
|
||||
if GetDepend(['RT_USING_BSP_USB']):
|
||||
path += [cwd + '/GD32F4xx_usb_driver/Include']
|
||||
src += [cwd + '/GD32F4xx_usb_driver/Source']
|
||||
|
||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F4XX']
|
||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
||||
|
||||
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
|
||||
/* disable rx irq */
|
||||
NVIC_DisableIRQ(uart->irqn);
|
||||
/* disable interrupt */
|
||||
usart_interrupt_disable(uart->uart_periph, USART_INTEN_RBNEIE);
|
||||
usart_interrupt_disable(uart->uart_periph, USART_INT_RBNE);
|
||||
|
||||
break;
|
||||
case RT_DEVICE_CTRL_SET_INT:
|
||||
/* enable rx irq */
|
||||
NVIC_EnableIRQ(uart->irqn);
|
||||
/* enable interrupt */
|
||||
usart_interrupt_enable(uart->uart_periph, USART_INTEN_RBNEIE);
|
||||
usart_interrupt_enable(uart->uart_periph, USART_INT_RBNE);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -430,7 +430,7 @@ static void uart_isr(struct rt_serial_device *serial)
|
||||
RT_ASSERT(uart != RT_NULL);
|
||||
|
||||
/* 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))
|
||||
{
|
||||
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND);
|
||||
|
@ -38,7 +38,7 @@ if PLATFORM == 'gcc':
|
||||
OBJDUMP = PREFIX + 'objdump'
|
||||
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
|
||||
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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user