orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
415 stars 192 forks source link

make error #5

Closed hcen1997 closed 5 years ago

hcen1997 commented 5 years ago

uname -a:
Linux OrangePI 3.10.65 #3 SMP PREEMPT Tue Nov 15 09:46:50 CST 2016 aarch64 GNU/Linux c

/etc/issue: Raspbian GNU/Linux 8 \n \l

make error: OrangePi.h:139:23: error: ‘GPIO_PWM_OP’ undeclared (first use in this function)

define GPIO_PWM GPIO_PWM_OP

hardware: orange pc 2

look like pc2 not define GPIO_PWM_OP in it's '#ifdef'


ifdef CONFIG_ORANGEPI_PC2

/** OrangePi H5 ***/

define GPIOA_BASE (0x01C20000)

define GPIO_NUM (0x40)

define GPIO_BASE_MAP (0x01C20800)

define MEM_INFO (1024)

define GPIOL_BASE (0x01F02c00)

define GPIOL_BASE_MAP (0x01F02000)

define MAP_SIZE_L (4096 * 2)

endif

hcen1997 commented 5 years ago

one solusion: wiringOP\wiringPi\OrangePi.h:139: Comment line wiringOP\wiringPi\wiringPi.c:2375-2377,2434,2446-2448: Comment line