*/voidrt_hw_serial_dma_tx_isr(rt_device_tdevice){rt_uint32_tlevel;structstm32_serial_data_node*data_node;structstm32_serial_device*uart= (structstm32_serial_device*)device->user_data;/* DMA mode receive */RT_ASSERT(device->flag & RT_DEVICE_FLAG_DMA_TX);/* get the first data nod...
/* Miscellaneous Functions */DRESULTdisk_ioctl(BYTE drv, BYTE ctrl,void*buff){rt_device_tdevice = disk[drv];if(device == RT_NULL)returnRES_ERROR;if(ctrl == GET_SECTOR_COUNT) {structrt_device_blk_geometrygeometry;rt_memset(&geometry,0,sizeof(geometry)); rt_device_control(device, RT_...
mcsd_blk_device的定义如下: structmmcsd_blk_device{structrt_mmcsd_card*card;rt_list_tlist;structrt_devicedev;structdfs_partitionpart;structrt_device_blk_geometrygeometry;rt_size_tmax_req_size; }; 生成SDMMC初始化代码 使用STM32CubeMX创建项目,配置SDMMC1为SD 4 bit Wide bus模式。配置如下图: ...
{ rt_err_t ret; rt_device_t sd_device; char sd_name[RT_NAME_MAX]; rt_uint8_t *write_buff, *read_buff; struct rt_device_blk_geometry geo; rt_uint8_t block_num; /* 判断命令行参数是否给定了设备名称 */ if (argc == 2) { rt_strncpy(sd_name, argv[1], RT_NAME_MAX); } ...
#define RT_DEVICE_CTRL_BLK_GETGEOME (RT_DEVICE_CTRL_BASE(Block) + 1) /**< get geometry information */ #define RT_DEVICE_CTRL_BLK_SYNC (RT_DEVICE_CTRL_BASE(Block) + 2) /**< flush data to block device */ #define RT_DEVICE_CTRL_BLK_ERASE (RT_DEVICE_CTRL_BASE(Block) +...
打开bsp/imxrt/imxrt1021-nxp-evk/目录下的工程,编译失败错误,提示是启动文件有问题,报错信息如下所示: ..\libraries\MIMXRT1020\MIMXRT1021\arm\startup_MIMXRT1021.s(1): error: A1167E: Invalid line start ..\libraries\MIMXRT1020\MIMXRT1021\arm\startup_MIMXRT10
- blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit() - net: vxge: fix use-after-free in vxge_device_unregister - net: fec: fix use-after-free in fec_drv_remove - net: pegasus: fix uninit-value in get_interrupt_interval ...
deviceModeArg = 0x40, /* Device geometry, I/O, and speed. */ .deviceType = kFlexSpiDeviceType_SerialNOR, .sflashPadType = kSerialFlash_4Pads, .serialClkFreq = kFlexSpiSerialClk_100MHz, .sflashA1Size = 8u * 1024u * 1024u, .dataValidTime = {16u, 16u}, /* Lookup table for ...
#define DEVICE_GETGEOME 0 #define DEVICE_GETINFO 1 #define DEVICE_FORMAT 2 #define DEVICE_CLEAN_SECTOR 3 struct device_geometry { rt_uint32_t sectro_count; /* count of sectors */ rt_uint32_t cylinder_count; /* count of cylinder */ ...
- blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit() - net: vxge: fix use-after-free in vxge_device_unregister - net: fec: fix use-after-free in fec_drv_remove - net: pegasus: fix uninit-value in get_interrupt_interval ...