Symax code with H bridge setup

I working on a rc car setup up that uses the syma x5 controller. I got it to work with the controller and servo, but not the h bridge (L9110). Once I tried splicing the code from another program to run the h bridge, it started giving me “error: expected declaration before ‘}’ token” or “…’,’ token” or “error: expected ‘)’ before ‘;’ token” and “note: in expansion of macro ‘b2’ digitalWrite(b2, LOW);”. And these errors are found everywhere that ‘b1’ and 'b2" are. I was hoping to have some help from someone who might better understand arduino language. Note, I have the “libraries” within other tabs.

/* symax_rx.ino -- An arduino sketch to test the protocol symax

*/

#define b1, 2;
#define b2, 3;
int rotDirection = 0;
int pressed = false;
#include <SPI.h>
#include "symax_protocol.h"
#include <Servo.h>

Servo myservo;  // create servo object to control a servo

nrf24l01p wireless;
symaxProtocol protocol;

unsigned long time = 0;

void setup() {

  Serial.begin(115200);

  myservo.attach(9);  // attaches the servo on pin 8 to the servo object

 
  pinMode(b1, OUTPUT);
  pinMode(b2, OUTPUT);
  // Set initial rotation direction
  digitalWrite(b1, LOW);
  digitalWrite(b2, HIGH);  

  // SS pin must be set as output to set SPI to master !
  pinMode(SS, OUTPUT);

  // Set CE pin to 10 and CS pin to 9
  wireless.setPins(7, 8);

  // Set power (PWRLOW,PWRMEDIUM,PWRHIGH,PWRMAX)
  wireless.setPwr(PWRLOW);

  protocol.init(&wireless);

  time = micros();
  Serial.println("Start");

}

rx_values_t rxValues;

unsigned long newTime;

void loop()
{
  time = micros();
  uint8_t value = protocol.run(&rxValues);
  newTime = micros();

  switch ( value )
  {
    case  NOT_BOUND:
      Serial.println("Not bound");
      break;

    case  BIND_IN_PROGRESS:
      Serial.println("Bind in progress");
      break;

    case BOUND_NEW_VALUES:
      Serial.print(newTime - time);
      Serial.print(" :\t"); Serial.print(rxValues.throttle);
      Serial.print("\t"); Serial.print(rxValues.yaw);
      Serial.print("\t"); Serial.print(rxValues.pitch);
      Serial.print("\t"); Serial.print(rxValues.roll);
      Serial.print("\t"); Serial.print(rxValues.trim_yaw);
      Serial.print("\t"); Serial.print(rxValues.trim_pitch);
      Serial.print("\t"); Serial.print(rxValues.trim_roll);
      Serial.print("\t"); Serial.print(rxValues.video);
      Serial.print("\t"); Serial.print(rxValues.picture);
      Serial.print("\t"); Serial.print(rxValues.highspeed);
      Serial.print("\t"); Serial.println(rxValues.flip);
      //time = newTime;

      myservo.write(map(rxValues.roll, -127, 127, 20, 160));              // tell servo to go to position
      
      int rxValues.throttle = mFrame[0]
      int pwmOutput = map(rxValues.throttle, 0, 1023, 0 , 255); // Map the potentiometer value from 0 to 255
  
  // Read button - Debounce
  if (digitalRead(rx_value->flip) == true) {
    pressed = !pressed;
  }
  while (digitalRead(rx_value->flip) == true);
  delay(20);
  // If button is pressed - change rotation direction
  if (pressed == true  & rotDirection == 0) {
    digitalWrite(b1, HIGH);
    digitalWrite(b2, LOW);
    rotDirection = 1;
    delay(20);
  }
  // If button is pressed - change rotation direction
  if (pressed == false & rotDirection == 1) {
    digitalWrite(b1, LOW);
    digitalWrite(b2, HIGH);
    rotDirection = 0;
    delay(20);
  }
  
   

       
      break;

    case BOUND_NO_VALUES:
      //Serial.print(newTime - time); Serial.println(" : ----");
      break;

    default:
      break;

  }

}