error compiling for LPT

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

error compiling for LPT

606件の閲覧回数
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 返答(返信)