error compiling for LPT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error compiling for LPT

308 Views
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 Kudos
0 Replies