- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The BCM920732 HW Application Note (MMP920732HW-AN101.pdf) describes the BCM20732 Hardware Interfaces and provides sample code on how to program the various BCM20732 interfaces.
The document (dated Jan 15th, 2014) describing the Peripheral UART states your application needs to #include the "puart.h" file. Several lines later there is a call to: P_UART_INT_CLEAR(P_UART_ISR_RX_AFF_MASK).
As of SDK 1.1.0, the example code throws a fairly cryptic compiler error of: "error: lvalue required as left operand of assignment". There are several other (macro style) calls to the Peripheral UART configuration macros in the sample that will throw the same compiler error.
Future versions of the application note, and/or the SDK source file will fix this problem officially. In the interim, you can solve it yourself by adding:
#define REG32(x) *((volatile UINT32*)(x))
to the top of the file: ~include/Drivers/puart.h
just before the
#define UART_REG REG32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a closely related thread here as well: Could you provide sample code using UART communication between BCM20732 and MCU?