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
63
|
/*
* board.h
*
* Copyright (c) 2007-2020 Allwinnertech Co., Ltd.
* Author: zhengxiaobin <[email protected]>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _DISP_BOARD_CONFIG_H
#define _DISP_BOARD_CONFIG_H
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
enum proerty_type {
PROPERTY_UNDEFINED = 0,
PROPERTY_INTGER,
PROPERTY_STRING,
/*for the pins which function is GPIO(IN or OUT)*/
PROPERTY_GPIO,
/*for the pins which function is not GPIO*/
PROPERTY_PIN,
/*for axp power*/
PROPERTY_POWER,
};
/**
* pro
*/
struct property_t {
char name[40];
enum proerty_type type;
union value_t {
u32 value;
char str[40];
struct disp_gpio_set_t gpio_list;
struct disp_power_t power;
} v;
};
u32 disp_get_property_value(const char *main_name, const char *sub_name, void *value);
struct disp_gpio_set_t *disp_get_all_pin_property(const char *main_name,
u32 *list_len);
#ifdef __cplusplus
}
#endif
#endif /*End of file*/
|