Anonymous | Login | Signup for a new account | 2021-03-08 02:17 UTC | ![]() |
Main | My View | View Issues | Roadmap | Repositories |
View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
0000011 | Firmware | Structure / Style | public | 2008-10-29 16:48 | 2011-11-26 14:00 | ||||||
Reporter | Fred | ||||||||||
Assigned To | Fred | ||||||||||
Priority | low | Severity | minor | Reproducibility | N/A | ||||||
Status | assigned | Resolution | open | ||||||||
Platform | OS | OS Version | |||||||||
Product Version | |||||||||||
Target Version | Future | Fixed in Version | |||||||||
Summary | 0000011: Define And Reorganise Header Structure | ||||||||||
Description | Currently the header structure could be improved somewhat. I would like to see it more granular such that only files that *need* to see certain identifiers can see them. That should be the case with a single exception, main.c which should see everything. | ||||||||||
Tags | No tags attached. | ||||||||||
FirmwareVersion | |||||||||||
Issue Type | Improvement | ||||||||||
Risk of Breakage | low | ||||||||||
Attached Files | |||||||||||
![]() |
|||||||||||
|
![]() |
|
![]() Fred (administrator) 2008-10-29 16:50 |
If possible I'd like to do some tricks to expose various vars for reading in all files but only allow them to be writable in a few key places. C lends itself to promiscuity and I'd like to avoid that if possible. |
![]() Fred (administrator) 2009-01-02 14:18 |
Some of this has been done, but much more is required. This is related to mantis 61 |
![]() Fred (administrator) 2011-10-21 12:59 |
Some thoughts: - Comms stuff split into UART ISR, comms common, comms core headers. esc bytes out of globals into this - structs.h split into meaninful units that are smaller. - globalDefines.h split into system&utility and variableInit and maybe move some to the memory header too and some more to decoderInterface.h - freeEMS.h to only contain global struct memory layout stuff, more or less. - make directory for define list style headers, sync loss ID, error codes, payloadids, etc. And more! |
![]() Fred (administrator) 2011-11-26 14:00 |
structs.h is gone! :-) |
Copyright © 2000 - 2011 MantisBT Group |