This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bug in Controlsuite/Motorware API for 2806x

Other Parts Discussed in Thread: CONTROLSUITE, MOTORWARE

Hi,

I believe I've found a bug in the controlsuite API for the 2806x family. In <sw/drivers/clk/src/32b/f28x/f2806x/clk.h>, CLK_Osc2Src_e is defined as;

typedef enum
{
  CLK_Osc2Src_Internal=(0 << 1),  //!< Denotes an internal oscillator 2 source
  CLK_Osc2Src_External=(1 << 1)   //!< Denotes an external oscillator 2 source
} CLK_Osc2Src_e;

Which should be

typedef enum
{
  CLK_Osc2Src_Internal=(1 << 1),  //!< Denotes an internal oscillator 2 source
  CLK_Osc2Src_External=(0 << 1)   //!< Denotes an external oscillator 2 source
} CLK_Osc2Src_e;

For correct behavior (defined in pg. 79 in SPRUH18D).

Can anyone verify whether this is correct? Thanks!