LoginSignup
0
0

More than 5 years have passed since last update.

Zybo > Chronicles blog 19 > TTC > xttcps.h / typedef struct TmrCntrSetup

Last updated at Posted at 2016-05-21

MicroZed Chronicles リスト http://adiuvoengineering.com/?page_id=285
@ Adam Taylor blog
https://forums.xilinx.com/t5/Xcell-Daily-Blog/Introduction-to-the-Zynq-Triple-Timer-Counter-Part-Three-Adam/ba-p/413105

ヘッダーとしては以下を使う。

#include "xttcps.h"

...

we need to declare a data structure to contain the output frequency, interval, pre-scaler, and TTC options.

typedef struct {
      u32 OutputHz;     /* Output frequency */
      u16 Interval;     /* Interval value */
      u8 Prescaler;     /* Prescaler value */
      u16 Options;      /* Option settings */
} TmrCntrSetup;

初期値の例

static TmrCntrSetup SettingsTable[1] = {
      {10, 0, 0, 0},    /* Ticker timer counter initial setup, only output freq */
};
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0