2021년 11월 11일 목요일

ATxmega128a1u /* System Clock Output Port */

 /* System Clock Output Port */

typedef enum PORTCFG_CLKOUT_enum

{

    PORTCFG_CLKOUT_OFF_gc = (0x00<<0),  /* System Clock Output Disabled */

    PORTCFG_CLKOUT_PC7_gc = (0x01<<0),  /* System Clock Output on Port C pin 7 */

    PORTCFG_CLKOUT_PD7_gc = (0x02<<0),  /* System Clock Output on Port D pin 7 */

    PORTCFG_CLKOUT_PE7_gc = (0x03<<0),  /* System Clock Output on Port E pin 7 */

} PORTCFG_CLKOUT_t;


/* Peripheral Clock Output Select */

typedef enum PORTCFG_CLKOUTSEL_enum

{

    PORTCFG_CLKOUTSEL_CLK1X_gc = (0x00<<2),  /* 1x Peripheral Clock Output to pin */

    PORTCFG_CLKOUTSEL_CLK2X_gc = (0x01<<2),  /* 2x Peripheral Clock Output to pin */

    PORTCFG_CLKOUTSEL_CLK4X_gc = (0x02<<2),  /* 4x Peripheral Clock Output to pin */

} PORTCFG_CLKOUTSEL_t;

댓글 없음:

댓글 쓰기