error compiling for LPT
‎08-08-2014
02:21 PM
503 Views
jackdean
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 Replies
