Hello,
the sharing feature have no influence on the generated code in this case. If you want to be sure, you can check the "history of generated code" - for more details please see the attached screen-shot.
The sharing only allows pin allocation and the user is responsible for appropriate initialization. You can for example use now the single ended mode or if you change the init. code you can use differential mode.
However I have passed your comment to developers to consider improvement.
best regards
Vojtech Filip
Processor Expert Support Team