瀏覽代碼

Fix FTM_CONF register bitfield defs

teensy4-core
PaulStoffregen 6 年之前
父節點
當前提交
6d441162e6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      teensy3/kinetis.h

+ 2
- 2
teensy3/kinetis.h 查看文件

@@ -3329,8 +3329,8 @@ typedef struct {
#define FTM0_CONF (*(volatile uint32_t *)0x40038084) // Configuration
#define FTM_CONF_GTBEOUT 0x400 // Global Time Base Output
#define FTM_CONF_GTBEEN 0x200 // Global Time Base Enable
#define FTM_CONF_BDMMODE (((n) & 3) << 6) // Behavior when in debug mode
#define FTM_CONF_NUMTOF (((n) & 31) << 0) // ratio of counter overflows to TOF bit set
#define FTM_CONF_BDMMODE(n) (((n) & 3) << 6) // Behavior when in debug mode
#define FTM_CONF_NUMTOF(n) (((n) & 31) << 0) // ratio of counter overflows to TOF bit set
#define FTM0_FLTPOL (*(volatile uint32_t *)0x40038088) // FTM Fault Input Polarity
#define FTM_FLTPOL_FLT3POL 0x08 // Fault Input 3 Polarity
#define FTM_FLTPOL_FLT2POL 0x04 // Fault Input 2 Polarity

Loading…
取消
儲存