摘要: 备注:学习记录所用,若有高手不吝赐教,万分感谢! 一、概括 环境: cpu:fsl91030m phy:yt8512(motorcomm厂) 完整的phy驱动需要eth phy驱动、mdio驱动、mii驱动(一般ic原厂自带),并且需要将其嵌入到eth驱动中。 二、外部phy驱动 1、驱动位置 dr 阅读全文
posted @ 2024-01-16 17:05 xMofang 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 备注:学习记录所用,若有高手不吝赐教,万分感谢! 1、将文件夹p1、p2、p3压缩到pkg.tar.gz: tar -czf pkg.tar.gz p1 p2 p3 2、解压缩: tar -zxvf pkg.tar.gz 3、查找 find . -name *.c | xargs grep -n " 阅读全文
posted @ 2023-11-14 13:26 xMofang 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 备注:学习记录所用,若有高手不吝赐教,万分感谢! 一、概括 linux将串口都映射成了TTY终端,a56爆大奖在线娱乐在串口编程时,找到并使能平台的TTY,然后操作TTY终端即可。 例如对于Nuclei平台的轩辕91030M芯片设备树: uart0: serial@10013000 { compatible = " 阅读全文
posted @ 2023-11-14 12:49 xMofang 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: #include <linux/resource.h> #include <unistd.h> #include <signal.h> pid_t wd_pid; char line[8]; FILE *cmd; int pri; /*创建管道并创建shell子进程,执行pidof bspInit 阅读全文
posted @ 2023-06-13 18:15 xMofang 阅读(139) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/ZCShouCSDN/article/details/128600865 /YYFaGe/p/16672483.html 阅读全文
posted @ 2023-04-04 11:41 xMofang 阅读(11) 评论(0) 推荐(0) 编辑
摘要: c文件 static uint8_t rx_buf[MAX_485_RX_LEN] = {0}; static uint8_t rx_buf_data_cnt = DATA; static uint8_t rs485TXBuf[MAX_485_RX_LEN] = {0}; usart_device_ 阅读全文
posted @ 2023-03-06 17:23 xMofang 阅读(61) 评论(0) 推荐(0) 编辑
摘要: i2c.c #include <stdio.h> #include "dri_simulate_i2c.h" #include "dri_timer.h" /************************************************ 函数名称 : I2C_Delay 功 能 : 阅读全文
posted @ 2023-03-06 16:56 xMofang 阅读(471) 评论(0) 推荐(1) 编辑
摘要: void dri_timer_delay_init(dri_timer_calc_type type) { timer_parameter_struct ptr_time; rcu_periph_clock_enable(PERIPH_DELAY_TIMER); rcu_timer_clock_pr 阅读全文
posted @ 2023-03-06 16:46 xMofang 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 中断: void USART1_IRQHandler(void) { int data = 0; if(usart_flag_get(USART1, USART_FLAG_PERR)!= RESET) { usart_data_receive(USART1); usart_flag_clear(US 阅读全文
posted @ 2023-03-06 16:43 xMofang 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #define VDDA_APPLI ((uint32_t) 3300) /* Value of analog voltage supply Vdda (unit: mV) */ #define RANGE_12BITS ((uint8_t) 12) //移位/* Max digital value 阅读全文
posted @ 2023-03-06 16:29 xMofang 阅读(227) 评论(0) 推荐(0) 编辑