Once you enroll in Medicare (April 1, 2015), you are no longer eligible to contribute to an HSA. You can, however, contribute to an HSA for the months prior to this date (assuming you are covered by a high-deductible health plan for this period). Thus, you can contribute for one quarter of the year (and your dollar limit on your contribution is one fourth the annual contribution limit.
For 2007, a high deductible health plan is a health plan with an annual deductible that is not less than $1,100 for self-only coverage or $2,200 for family coverage, and with annual out-of-pocket expenses that do not exceed $5,600 or $11,200, respectively.