This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28027x support files issue - CPU driver

Hi folks,

I've a project using the f2802x support files driver version and just realised that the CPU driver globally declares the CPU object from within the driver source. The name chosen for the object is 'cpu'.

Logical enough so far, but this conflicts with my naming scheme which I also thought was logical, CPU_Handle cpu;. This becomes an issue as soon as I want to make the CPU object handle global :\ could the next version of the files switch to a better name for the object such as _cpu or cpu_obj, etc. Or maybe even make the CPU driver create and initialise its object in the same manner as the rest of the drivers, removing the issue entirely.

Thanks :)

EDIT: Just did a quick search and don't think the object, as it currently is, is actually used anywhere within the driver files so it should be a a good candidate for switching to initialisation in a manner similar to the other drivers.