Conflicting Declaration Error ESP8266 programming a quadcopter

Hey guys,

I’m working on linking my Hubsan Drone to my phone via the BLYNK app. Below is the link to the instructables project:

I plugged in my TTL cable and tried to upload the sketch with my wifi credentials etc and I’m getting the following error:

Arduino: 1.6.5 (Mac OS X), Board: “Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)”

In file included from a7105.h:4:0,
from a7105.cpp:18:
common.h:17: error: conflicting declaration ‘typedef uint16_t u16’
typedef uint16_t u16;
^
In file included from /Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:225:0,
from a7105.cpp:16:
/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBAPI.h:30:24: error: ‘u16’ has a previous declaration as ‘typedef short unsigned int u16’
typedef unsigned short u16;
^
a7105.cpp: In function ‘void A7105_Setup()’:
a7105.cpp:40: error: ‘class SPIClass’ has no member named ‘setFrequency’
SPI.setFrequency(8000000L);
^
conflicting declaration ‘typedef uint16_t u16’

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

I’ve attached the script file. I’m not sure what the issue might be, thought maybe someone ran into this before. Appreciate the patience and help. Thank you.

coptermanager.ino (3.71 KB)