Conversation
Updated ASF Module to call CMSIS APIs
Reduced Heap size for optimal memory usage
Updated Application modules for ASF and CMSIS changes
Reduced number of system messages for optimal memory usage
Added HAL Files
Implemented GPIO and PINMAP HAL APIs
Updated existing code to call the HAL APIs instead of Driver APIs
Removed some of the unused variables to remove warnings or marked as __attribute__((unused))
|
@ravibadam and @pankajgoenka please review this pull request |
|
Commit comments:
commit aa5c1a2:
Style comments:
|
|
Hi Hunyue, Thank you for the review comments.
Sure. I will separate them out.
The arguments to a task/thread are generally expected to remain unchanged so I thought making it const makes more sense.
Priority of threads should be signed as per CMSIS.
Sure. Will do that.
Agreed. Will remove the additional scope.
Chip_SYSCON calls were not replaced as part of GPIO HAL implementation since HAL APIs for the same are not defined in mbed.
HAL APIs for pinmux are not defined in mbed. pinmap is used to achieve the same.
Stack overflowed after introducing the HAL code. The stack sizes were therefore readjusted.
I'll make it global const instead of static const since it is used across multiple files
Sure. Will do that.
The existing coding convention in OSP and mbed is followed for the above.
It seems the file format is changed from UNIX to DOS, which is why the diff shows the complete file as changes.
These changes are part of the addition of RTOS abstraction layer (CMSIS). We haven't changed mutexes. Just replaced RTX implementation with CMSIS implementation.
With the addition of CMSIS layer, the initialization time of different tasks changed.
I'll ammend/rebase the commits to incorporate the above mentioned changes.
Sure. I'll take of those. -Pankaj |
|
Thanks. The main thing with most of the comments is there were changes not documented in the commit log. From a reviewer point of view, small well documented commits are easier to review and Can you point to the coding convention for OSP or mbed that requires you to typedef structures and then directly access members within them? Not trying to create a new debate but that makes little sense from a reviewing point of view. All it does is add extra level of indirection. |
|
How do I get off of this email distribution? Jamie Raible From: hyau [mailto:notifications@github.com] Thanks. The main thing with most of the comments is there were changes not documented in the commit log. From a reviewer point of view, small well documented commits are easier to review and Can you point to the coding convention for OSP or mbed that requires you to typedef structures and then directly access members within them? Not trying to create a new debate but that makes little sense from a reviewing point of view. All it does is add extra level of indirection. — |
I understand your point. There is no document for mbed or OSP coding convention that I know of. However, most of these typedef-ed structures are pre-defined in mbed header files. The implementation of HAL APIs would be very difficult without accessing the members of these structs. Maybe we can discuss and take a call about whether this needs to be changed. I've closed the review comments and committed the modified code as separate branches as discussed with Rian. I've raised pull requests again for the same. Request you to kindly review. CMSIS Changes: Pull Request #2 In addition I have also committed the RTC HAL APIs as Pull Request #4 -Pankaj |
I moved these changes off into their own branch and issued this pull request so we can properly code review them