• C言語 struct bit ビットフィールド

    12345678910111213141516/* ビットフィールドを宣言 */struct bit{ unsigned int b1 : 1; unsigned int b2 : 2; unsigned in...
  • C volatile的用法及意义

    volatile影响编译器编译的结果,volatile指出 变量是随时可能发生变化的,与volatile变量有关的运算,不要进行编译优化,以免出错。 例如: 1234volatile int i=10; int j = i; ... int k = ...
  • C++ Union structure

    C++ The union Data StructureA union is like a struct in that it generally has several fields, all of which are public by defa...
  • Linux第一个驱动程序hello world编译

    Linux第一个驱动程序hello world编译 Makefile 注意点:在vscode里面编辑器会将tab转换为空格,导致编译时报错Makefile:****missing separator. stop, 需要在gedit里面确认格式 1...
  • 使用I2C & 写入EEPROM

    使用I2C & 写入EEPROMstm32f10x控制HDMI RX子卡,电脑通过HDMI 连接板卡,需要通过HDMI的DDCSDA和DDCCLK读取板卡上的EEPROM获取EDID。 1.MCU控制芯片初始化IIC123456void IT...
  • Linux-PCI Driver

    Linux-PCI DriverLinux PCI设备驱动包括: Linux PCI设备驱动 设备本身驱动 一、Linux PCI设备驱动程序 是内核自带的 这个伪设备驱动程序从总线0开始查询PCI系统,并定位系统中所有的PCI设备和PCI桥...