Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000498FirmwareStructure / Stylepublic2012-01-04 13:002014-02-18 23:05
ReporterFred 
Assigned ToFred 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version0.2.0-SNAPSHOT 
Target Version0.2.1Fixed in Version 
Summary0000498: Remove all CLEAR_ flags and replace with a macro that clears
DescriptionCurrent stuff is error prone and bad for maintenance with duplicated flag defines everywhere, yuck. Probably move to something like this:

SETBITS(variable, MASK);
CLEARRBITS(variable, MASK);

or

ENABLEBITS(variable, MASK);
DISABLEBITS(variable, MASK);

or similar.
TagsNo tags attached.
FirmwareVersion
Issue TypeImprovement
Risk of Breakagelow
Attached Files

- Relationships

-  Notes
User avatar (0001096)
Fred (administrator)
2012-01-04 14:14

OK, to do this properly there need to be three variants of each, 8, 16, 32 bits. Without this the best you can hope for is single bit, and not safely.

I'm hoping that it's possible to generate some sort of error if they are misused with the wrong type of input var. Quite possibly.


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker