Brett Davis/Associated Press

O.J. Mayo has been out of the NBA for the past two seasons but will continue his basketball career after signing a contract with San German in Puerto Rico's Baloncesto Superior Nacional basketball league, according to Shams Charania of Yahoo Sports.

Mayo received a two-year suspension from the NBA in 2016 for violating the league's anti-drug program but is eligible to be reinstated in the offseason.

Mayo was the No. 3 overall pick in 2008 and made a quick impact for the Memphis Grizzlies, averaging 18.0 points per game over his first two seasons. He also started all 164 regular-season games.

However, over the following six years he scored 12.1 points per contest and shot just 41.8 percent from the field in stints with the Grizzlies, Mavericks and Bucks.

The 2015-16 season was his worst, averaging 7.8 points with career lows in both field-goal percentage (37.1) and three-point percentage (32.1) before receiving his two-year suspension.

The 30-year-old hopes to return to the NBA in 2018-19, per Ben Golliver of Sports Illustrated, but will first try to get back into the game in Puerto Rico.

According to Charania, Mayo will join his new team in mid-April.