Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL8195AM - Fix and cleanup mbed_rtx.h #5232

Merged
merged 2 commits into from Oct 9, 2017

Conversation

tung7970
Copy link
Contributor

@tung7970 tung7970 commented Oct 2, 2017

Description

Fix ARMC6 guard and cleanup mbed_rtx.h

Status

READY

Migrations

NO

Related PRs

NONE

Todos

NONE

Deploy notes

NONE

Steps to test or reproduce

NONE

The following configs were no longer necessary for RTX5.
    OS_TASKCNT
    OS_MAINSTKSIZE
    OS_CLOCK

Signed-off-by: Tony Wu <tonywu@realtek.com>
@@ -33,8 +33,7 @@
#define INITIAL_SP (__StackTop)
#endif


#if defined(__CC_ARM) || defined(__GNUC__)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this redundant ? ISR_STACK_SIZE can be set for ARMCC or ARM GCC (see mbed boot code file)

Copy link
Contributor Author

@tung7970 tung7970 Oct 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xc0170 ISR_STACK_SIZE is always set in the case of CC_ARM and ARMCC above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see now. Then this should be moved to the above (ARMCC provides gnu flag that defines also GNUC macro that we use) or be completely removed? I would say to be removed, the default stack size is set. Thus not needed here ?

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 2, 2017

cc @theotherjimmy

@theotherjimmy
Copy link
Contributor

@tung7970 Could you change the sha of the last commit to kick out Circle CI? You can do this with git commit --amend with no changes.

Fix ARMC6 guard typo introduced in commit 4f3f0cc (Make Realtek link)

While at it, remove redundant ISR_STACK_SIZE assignment for ARMCC.

Signed-off-by: Tony Wu <tonywu@realtek.com>
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 5, 2017

/morph test

@mbed-bot
Copy link

mbed-bot commented Oct 5, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1527

All builds and test passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants