error compiling for LPT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

error compiling for LPT

311 次查看
jackdean
Contributor I

Hi,

I'm trying to use the lpt on the vybrid.

This code:

if (LPTMR0->CSR & LPTMR_CSR_TIE_MASK) {

//Write first to sync value

LPTMR0->CNR = 0;

uint16_t countval = LPTMR0->CNR;

I get:

"F:/VYBrid/Dhrystone1/src/drivers/lptmr/lpt.c", line 42: Error:  #137: expression must be a modifiable lvalue

   LPTMR0->CNR = 0;

but I see it used elsewhere?

What is wrong?

0 项奖励
0 回复数