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

Added stm32l476 support, trivial source code cleanup #147

Closed
wants to merge 0 commits into from
Closed

Added stm32l476 support, trivial source code cleanup #147

wants to merge 0 commits into from

Conversation

Kochise
Copy link

@Kochise Kochise commented Apr 1, 2017

Source code cleanup made for static analyzers

@louisom
Copy link
Contributor

louisom commented Apr 5, 2017

@Kochise Thanks for the porting to stm32L476, but it seems broke the build of the exists board on CI and locals (which I build on my computer and raise the error, too).

Could you help to check the build error, and fix it?
Thanks.

@Kochise
Copy link
Author

Kochise commented Apr 5, 2017

Will check https://travis-ci.org/f9micro/f9-kernel/builds/217574958 this week-end and provide a makeit script for the corrected source.

@louisom
Copy link
Contributor

louisom commented Apr 5, 2017

@Kochise you can found it at travis-ci here.

I'm not sure why kernel/ipc.c is affect by your code, but three of the exists board all were failed.

@Kochise
Copy link
Author

Kochise commented Apr 5, 2017

ipc.c, line 251, remove the badly formatted line :

		dbg_printf(DL_IPC,
			dbg_printf(DL_IPC, "IPC: %t thread start\n", to_tid);

@Kochise
Copy link
Author

Kochise commented Apr 6, 2017

Also forgot to modify original build scripts to include the new board/platform, sorry, will commit that asap.

@@ -0,0 +1,32 @@
/* Copyright (c) 2016 The F9 Microkernel Project. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

You can bump the date to 2017 since your contributions show up.

Copy link
Author

Choose a reason for hiding this comment

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

Will do that...

if (user_irq_queue_is_empty())
return NULL;

struct user_irq *uirq = user_irq_queue.head;
uirq = user_irq_queue.head;
Copy link
Member

Choose a reason for hiding this comment

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

Can you split the changes against directory kernel/ in another commit?

Copy link
Author

Choose a reason for hiding this comment

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

Will also do that, since I'm also moving sources (board, external, kernel, loader, platform, user) into a \src folder

@@ -98,14 +101,17 @@ static void user_irq_queue_delete(int irq)

static inline void user_irq_reset_all(void)
{
for (int i = 0 ; i < IRQn_NUM ; i++)
int i;
for (i = 0 ; i < IRQn_NUM ; i++)
Copy link
Member

Choose a reason for hiding this comment

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

Can't your compiler support C99 features like the statement for (int i = 0 ; i < IRQn_NUM ; i++)?

@Kochise
Copy link
Author

Kochise commented Apr 10, 2017

Hmmm, perhaps I should install a Linux VM with Travis to test my builds against regular toolchains before committing :/

@Kochise
Copy link
Author

Kochise commented Apr 11, 2017

OK, got it to compile, now I have to revert my commits back to origin and recommit them in two batches, one for the stm32l476 support, one for the kernel code 'beautification'.

@Kochise Kochise closed this Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants