Bug 3539 - XCL: Missing "One-Shot PWM" timer mode enumerations in xcl_timer.h and iox32e5.h
: XCL: Missing "One-Shot PWM" timer mode enumerations in xcl_timer.h and iox32e5.h
Status: NEW
Product: Atmel Software Framework
xmega
: v3.7.x
: Other Standalone
: normal priority normal (vote)
: ---
Assigned To: ASF Maintainers
:
:
:
:
  Show dependency treegraph
 
Reported: 2015-03-12 17:29 CET by Nick D'Ademo
Modified: 2015-04-03 10:55 CEST (History)
1 user (show)

See Also:
Public Description:
Development Branch:
Whiteboard:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick D'Ademo 2015-03-12 17:29:54 CET
Applies to the current latest version of ASF (v3.22.0):
http://asf.atmel.com/docs/3.22.0/xmegae/html/group__xcl__tc__group.html#ga8370ee630a1847e66c88dc634366fac2

Proposed fix:

FILE: xcl_timer.h:

/* ! XCL Timer mode configurations */
enum xcl_tc_mode_t {
    /* ! Normal mode with period */
    NORMAL = XCL_TCMODE_NORMAL_gc,
    /* ! Capture mode */
    CAPT = XCL_TCMODE_CAPT_gc,
    /* ! Single Slope PWM */
    PWM = XCL_TCMODE_PWM_gc,
    /* ! One-Shot PWM */
    ONESHOT = XCL_TCMODE_ONESHOT_gc,
};


FILE: iox32e5.h

/* Timer/Counter Mode */
typedef enum XCL_TCMODE_enum
{
    XCL_TCMODE_NORMAL_gc = (0x00<<0),  /* Normal mode with compare/period */
    XCL_TCMODE_CAPT_gc = (0x01<<0),  /* Capture mode */
    XCL_TCMODE_PWM_gc = (0x02<<0),  /* Single Slope PWM */
    XCL_TCMODE_ONESHOT_gc = (0x03<<0),  /* One-Shot PWM */
} XCL_TCMODE_t;


Additional info:
http://nickdademo.blogspot.com.au/2015/03/xmega-32e5-one-shot-pulse-using-xcl.html
Comment 1 zheng wang 2015-04-03 10:55:47 CEST
It will also be include in ASFP-5255.