i use high level file io to control GPIO pins
i wanna use like general MCU port register (use 8bit). so i’m writing eight file functions.
but appear this compile error.
/tmp/ccP4wrXQ.o: In function main': led_blink.c:(.text+0x598): undefined reference to
pin_wirte’
collect2: ld returned 1 exit status
when i use only two ‘pin_write’ function, there is no error.
what’s wrong is this??
#ifndef BB_GPIO_H_
#define BB_GPIO_H_
#include <stdio.h>
#include <string.h>
/********************************************
- BB_GPIO headerfile
- This file only used to gpio control
- other feature using device-tree-overlay
- when using GPIO, the pin work to MODE7
*=====formula====== - GPIO N1[N2]
- gpio_number = (32 x N1) + N2