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?