- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# /space/home/slher/rel/Beken/v6_4_5/macsw/plf/refip/src/driver/sysctrl/sysctrl.h

Go to the documentation of this file.

    00001
    00012 #ifndef _SYSCTRL_H_
    00013 #define _SYSCTRL_H_
    00014
    00024 /*
    00025  * INCLUDE FILES
    00026  ****************************************************************************************
    00027  */
    00028 #include "co_math.h"
    00029 #include "reg_sysctrl.h"
    00030
    00031 /*
    00032  * MACROS
    00033  ****************************************************************************************
    00034  */
    00037
    00039 #define LED_SLEEP         CO_BIT(2)
    00041 #define LED_RUN           CO_BIT(0)
    00043 #define LED_RX            CO_BIT(1)
    00045 #define GPIO_OUT(val)     sysctrl_gpio_out_set(val)
    00047 #define LED_ON(led)       sysctrl_gpio_out_set(sysctrl_gpio_out_get() | (led))
    00049 #define LED_OFF(led)      sysctrl_gpio_out_set(sysctrl_gpio_out_get() & ~(led))
    00050
    00052
    00053
    00057
    00059 #define DIAG_MICTOR_TEST     0
    00061 #define DIAG_DBG             1
    00063 #define DIAG_TARGET0         2
    00065 #define DIAG_TARGET1         3
    00067 #define DIAG_DMA0            4
    00069 #define DIAG_DMA1            5
    00071 #define DIAG_JTAG            6
    00073 #define DIAG_TAP             7
    00075 #define DIAG_PROC            8
    00077 #define DIAG_PLF0            9
    00079 #define DIAG_PLF1            10
    00081 #define DIAG_PLF2            11
    00083 #define DIAG_MAC             12
    00084
    00086
    00087
    00093 void sysctrl_init(void);
    00094
    00096
    00097 #endif // _SYSCTRL_H_