armfly 发表于 2022-3-21 16:55:40

2022-03-21 启用一个语法着色的小插件



https://addon.dismall.com/plugins/mw_syntaxhighlighter.html




armfly 发表于 2022-3-21 16:57:19

/*-------------------------------------------------------------------------------
      pio 程序 CH1 单通道交错采集模式
-------------------------------------------------------------------------------*/
#define dso_ch1_wrap_target 0    // 循环入口
#define dso_ch1_wrap      1    // 循环末尾

static const uint16_t dso_ch1_program_instructions[] = {
    // 0->1 时数据变化, 1->0时采样
    C_IN| IN_SRC_PINS | 16 | SIDE_SET(0x10), // 16bit 输入移位
    C_MOV | MOV_DEST_X | MOV_SRC_X | SIDE_SET(0x08),
    // goto 0
};

static const struct pio_programdso_ch1_program = {
    .instructions = dso_ch1_program_instructions,
    .length = 2,
    .origin = -1,
};
页: [1]
查看完整版本: 2022-03-21 启用一个语法着色的小插件