最近搞ADS1220,网上下了个驱动,移植到STM32F767上,编译有错误。
出错代码如下:
/* 驱动结构体定义 */
ADS1220_s hal_ads1220 =
{
/* 命令操作 */
.init = init ,
.reset = reset ,
.start = start ,
.readData = readData ,
.readBuf = readBuf ,
._Vref = 2048.00 ,
.readVol = readVol ,
/* 寄存器0相关操作 */
.setMux = setMux ,
.setGain = setGain ,
.setPga = setPga ,
.getMux = getMux ,
.getGain = getGain ,
.getPga = getPga ,
/* 寄存器1相关操作 */
.setModeDr = setModeDr,
.setCm = setCm ,
.setTs = setTs ,
.setBcs = setBcs ,
.getModeDr = getModeDr,
.getCm = getCm ,
.getTs = getTs ,
.getBcs = getBcs ,
/* 寄存器2相关操作 */
.setVref = setVref ,
.setFir = setFir ,
.setPsw = setPsw ,
.setIdac = setIdac ,
.getVref = getVref ,
.getFir = getFir ,
.getPsw = getPsw ,
.getIdac = getIdac ,
/* 寄存器3相关操作 */
.setI1mux = setI1mux ,
.setI2mux = setI2mux ,
.setDrdym = setDrdym ,
.getI1mux = getI1mux ,
.getI2mux = getI2mux ,
.getDrdym = getDrdym ,
};
请高手指教,谢谢!
|