It just seemed from what you have described that your mother's challenges caused you to become a codependent instead of you having the freedom to form your own identity and have your own life.
A child simply doesn't have the skills needed to be the caregiver and should not be expected of doing that for a parent. A child needs to have a parent that can help them develop their own identity and independence.