Paolo Zebelloni schrieb:
I downloaded & installed cdk4msp, with some patch to support 16x devices.
May be I've found a little problem in dac.h, because doesn't exist the
definitions of DAC12_0DAT and DAC12_1DAT.
I patched a target.h file with following definitions:
#define DAC12_0DAT *((uint16_t *)DAC12_0DAT_)
#define DAC12_1DAT *((uint16_t *)DAC12_1DAT_)
I think that the right way to define them is:
sfrw(DAC12_0DAT,DAC12_0DAT_);
sfrw(DAC12_1DAT,DAC12_1DAT_);
Correct?
the latest headers from our CVS repository have these lines:
#define DAC12_0DAT_ 0x01C8 /* DAC12 data 0 */
sfrw(DAC12_0DAT,DAC12_0DAT_);
#define DAC12_1DAT_ 0x01CA /* DAC12 data 1 */
sfrw(DAC12_1DAT,DAC12_1DAT_);
i think that should already be fixed. but thanks for the report.
chris