设备树基本的数据类型

文本字符串(无结束符)可以用双引号表示

string-property = "a string"

Cells’是 32 位无符号整数,用尖括号限定:

cell-property = <0xbeef 123 0xabcd1234>

二进制数据用方括号限定:

binary-property = [0x01 0x23 0x45 0x67];

不同表示形式的数据可以使用逗号连在一起:

mixed-property = "a string", [0x01 0x23 0x45 0x67], <0x12345678>;

逗号也可用于创建字符串列表:

string-list = "red fish", "blue fish";

 

  

 

  

 

  

 

  

 

 

 

posted on 2018-09-18 22:00  紫枫术河  阅读(351)  评论(0编辑  收藏  举报

导航