Turkish troops arrived before the US pulled out.
Turkey's official intervention plans date back to 2014 with a de facto declaration of war.
Bülent Arinc said that the gist of the resolutions was to extend the current mandate for "hot pursuit" against the PKK and Syrian Army into Syria and Iraq, which was to end the second week in October 2014, and to add ISIS to the list and set up a buffer zone on the Syrian side of the border.
In 2016-2017 Ankara called for no-fly zones. Washington, NATO and Russia were not in favor for it could risk clashes with Russia (which had control over the Syrian airspace). It was a Turkish initiative.
In August 2016, the Turkey, supported by the US, began a declared direct military intervention in Syria saying the operation was an act of self-defence, in response to Isis shelling of Turkish border towns and suicide bombings and attacks targeting Turkish nationals.
November 2016, Erdogan said that the Turkish military launched its operations in Syria to end the rule of Syrian President Bashar al-Assad.
The only thing done with Russia was on October 2017, when Turkish forces launched an operation to establish observation posts in the northern Idlib governorate in coordination with Russia.
There is also the regularization of diplomatic ties following the SU24 incident.
On December 2015, Turkey rejected to join the anti-ISIL quartet of Syria, Iran, Iraq and Russia. Erdogan said that he rejected it due to the presence of al-Assad.
Hardly anything done with the blessing of Russia.