forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-04-30 ee3c90168f81ce19529904d80f9c9de4fed23bb8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
  ******************************************************************************
  * @file    fm33a0xxev_cdif.h
  * @author  FM33A0XXEV Application Team
  * @version V1.0.0
  * @date    16-April-2020
  * @brief   This file contains all the functions prototypes for the CDIF firmware library.  
  ******************************************************************************
  */
  
/* Define to prevent recursive inclusion -------------------------------------*/
 
#ifndef __FM33A0XXEV_CDIF_H
#define __FM33A0XXEV_CDIF_H
 
 
#ifdef __cplusplus
 extern "C" {
#endif
 
/* Includes ------------------------------------------------------------------*/
 
#include "FM33A0XXEV.h" 
 
 
#define    CDIF_CR_INTF_EN_Pos    0    /* ¿çµçÔ´Óò½Ó¿ÚʹÄÜ */
#define    CDIF_CR_INTF_EN_Msk    (0xfU << CDIF_CR_INTF_EN_Pos)
#define    CDIF_CR_INTF_EN_ENABLE    (0xAU << CDIF_CR_INTF_EN_Pos)
#define    CDIF_CR_INTF_EN_DISABLE    (0x5U << CDIF_CR_INTF_EN_Pos)
    /* ÆäËû£º¹Ø±Õ½Ó¿Ú */
    /* 1010£ºÊ¹Äܽӿڠ*/
 
#define    CDIF_PSCR_PRSC_Pos    0    /* ¿çµçÔ´ÓòʱÐò¿ØÖÆ£¬ÅäÖÃÏà¶ÔÓÚAPBCLKµÄ¶¨Ê±±ÈÀý */
#define    CDIF_PSCR_PRSC_Msk    (0x7U << CDIF_PSCR_PRSC_Pos)
#define    CDIF_PSCR_PRSC_DIV1    (0x0U)    /* 000£º1·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV2    (0x1U)    /* 001£º2·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV4    (0x2U)    /* 010£º4·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV8    (0x3U)    /* 011£º8·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV16    (0x4U)    /* 100£º16·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV32    (0x5U)    /* 101£º32·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV64    (0x6U)    /* 110£º64·ÖƵ */
#define    CDIF_PSCR_PRSC_DIV128    (0x7U)    /* 111£º128·ÖƵ */
//Macro_End
 
/* Exported functions --------------------------------------------------------*/ 
extern void CDIF_Deinit(void);
 
/* ¿çµçÔ´Óò½Ó¿ÚʹÄÜ Ïà¹Øº¯Êý */
extern void CDIF_CR_INTF_EN_Setable(FunState NewState);
extern FunState CDIF_CR_INTF_EN_Getable(void);
 
/* ¿çµçÔ´ÓòʱÐò¿ØÖÆ£¬ÅäÖÃÏà¶ÔÓÚAPBCLKµÄ¶¨Ê±±ÈÀý Ïà¹Øº¯Êý */
extern void CDIF_PSCR_Write(uint32_t SetValue);
extern uint32_t CDIF_PSCR_Read(void);
//Announce_End
 
 
#ifdef __cplusplus
}
#endif
 
#endif /* __FM33A0XXEV_CDIF_H */