
Go to the source code of this file.
Macros | |
| #define | MAX_GPIOS 32 |
| #define | OPT_P_DEF 20 |
| #define | OPT_P_MAX 1000 |
| #define | OPT_P_MIN 1 |
| #define | OPT_R_DEF 5 |
| #define | OPT_R_MAX 10 |
| #define | OPT_R_MIN 1 |
| #define | OPT_S_DEF 5 |
| #define | OPT_S_MAX 10 |
| #define | OPT_S_MIN 1 |
Functions | |
| void | edges (int gpio, int level, uint32_t tick) |
| void | fatal (int show_usage, char *fmt,...) |
| static int | initOpts (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
| void | usage () |
Variables | |
| static int | g_gpio [MAX_GPIOS] |
| static uint32_t | g_mask |
| static int | g_num_gpios |
| static int | g_opt_p = OPT_P_DEF |
| static int | g_opt_r = OPT_R_DEF |
| static int | g_opt_s = OPT_S_DEF |
| static int | g_opt_t = 0 |
| static volatile int | g_pulse_count [MAX_GPIOS] |
| static volatile int | g_reset_counts |
| #define MAX_GPIOS 32 |
Definition at line 39 of file freq_count_1.c.
| #define OPT_P_DEF 20 |
Definition at line 43 of file freq_count_1.c.
| #define OPT_P_MAX 1000 |
Definition at line 42 of file freq_count_1.c.
| #define OPT_P_MIN 1 |
Definition at line 41 of file freq_count_1.c.
| #define OPT_R_DEF 5 |
Definition at line 47 of file freq_count_1.c.
| #define OPT_R_MAX 10 |
Definition at line 46 of file freq_count_1.c.
| #define OPT_R_MIN 1 |
Definition at line 45 of file freq_count_1.c.
| #define OPT_S_DEF 5 |
Definition at line 51 of file freq_count_1.c.
| #define OPT_S_MAX 10 |
Definition at line 50 of file freq_count_1.c.
| #define OPT_S_MIN 1 |
Definition at line 49 of file freq_count_1.c.
| void edges | ( | int | gpio, |
| int | level, | ||
| uint32_t | tick | ||
| ) |
Definition at line 142 of file freq_count_1.c.
| void fatal | ( | int | show_usage, |
| char * | fmt, | ||
| ... | |||
| ) |
Definition at line 84 of file freq_count_1.c.
|
static |
Definition at line 102 of file freq_count_1.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 156 of file freq_count_1.c.
| void usage | ( | ) |
Definition at line 65 of file freq_count_1.c.
|
static |
Definition at line 58 of file freq_count_1.c.
|
static |
Definition at line 55 of file freq_count_1.c.
|
static |
Definition at line 57 of file freq_count_1.c.
|
static |
Definition at line 60 of file freq_count_1.c.
|
static |
Definition at line 61 of file freq_count_1.c.
|
static |
Definition at line 62 of file freq_count_1.c.
|
static |
Definition at line 63 of file freq_count_1.c.
|
static |
Definition at line 53 of file freq_count_1.c.
|
static |
Definition at line 54 of file freq_count_1.c.