Caleb Martin and the Miami Heat have agreed to a three-year, $20 million deal.

Martin was a restricted free agent.