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

iot-lab_M3: definitions for implementation of peripheral timer driver #18

Conversation

thomaseichinger
Copy link
Contributor

accompanies PR OlegHahm/thirdparty_cpu#26 by providing definitions for the peripheral timer driver.

@LudwigKnuepfer
Copy link

Is this in a working condition?

@thomaseichinger
Copy link
Contributor Author

yes it is

@LudwigKnuepfer
Copy link

@authmillenon can you please review?

@LudwigKnuepfer
Copy link

@authmillenon (I saw you had the hardware to test this)

@miri64
Copy link
Contributor

miri64 commented May 14, 2014

@thomaseichinger which branches do I need of what repository?

@thomaseichinger
Copy link
Contributor Author

@authmillenon you'll need
thirdparty_boards:iot-lab_M3-periph_timer_driver_defs
thirdparty_cpu:periph_timer

@miri64
Copy link
Contributor

miri64 commented May 14, 2014

Maybe not related to this PR, but:

RIOTBOARD=~/Repositories/RIOT-OS/thirdparty_boards/ RIOTCPU=~/Repositories/RIOT-OS/thirdparty_cpu/ BOARD=iot-lab_M3 make -C ~/Repositories/RIOT-OS/RIOT/tests/test_hwtimer -B clean all flash term
make: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/tests/test_hwtimer'
rm -rf /home/martine/Repositories/RIOT-OS/RIOT/tests/test_hwtimer/bin/iot-lab_M3/

Compiling.... main.c

Building application test_hwtimer for iot-lab_M3 w/ MCU stm32f103rey6.
[…]
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/cortex_common'
crash.c: In function 'core_panic':
crash.c:64:1: warning: 'noreturn' function does return [enabled by default]
 }
 ^
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/cortex_common'
[…]
make[1]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT'
arm-none-eabi-gcc: error: /home/martine/Repositories/RIOT-OS/RIOT/tests/test_hwtimer/bin/iot-lab_M3/syscalls.o: No such file or directory
make: *** [all] Error 1
make: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/tests/test_hwtimer'

@thomaseichinger
Copy link
Contributor Author

hm works for me, I rebased both branches could you try again?

@thomaseichinger
Copy link
Contributor Author

ok, now it is hard faulting, I'll investigate and come back to you

@thomaseichinger
Copy link
Contributor Author

@authmillenon You will need to add

puts("hwtimer set.");
+while(1);
return 0;

to test_hwtimer/main.c because thread exit seems to be still broken on stm32f103rey6

@haukepetersen
Copy link
Contributor

The crash on return of main is known, it's fixed in the cortexm-common code in master...

@thomaseichinger
Copy link
Contributor Author

@authmillenon could you try again? Don't know why jenkins fails.

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

It seems to fail for all thirdparty_cpu PRs (it can't find RIOTBASE in RIOTCPU for some reason…). I have to look into it.

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

Still cannot find syscalls.o Nevermind, I just forgot to rebase thirdparty_cpu

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

Cannot flash it (since my udev is not configured correctly anymore… would be nice if we could document this somewhere), but at least all tests/test_hwtimer*/ are building except with a few warnings:

[…]
make[2]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/stm32f103rey6'
cpu.c: In function 'cpu_switch_context_exit':
cpu.c:84:1: warning: 'noreturn' function does return [enabled by default]
 }
 ^
[…]
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/cortex_common'
crash.c: In function 'core_panic':
crash.c:64:1: warning: 'noreturn' function does return [enabled by default]
 }
 ^
[…]

@miri64 miri64 closed this May 19, 2014
@miri64 miri64 reopened this May 19, 2014
@miri64
Copy link
Contributor

miri64 commented May 19, 2014

Sorry, hit the wrong button.

@thomaseichinger
Copy link
Contributor Author

what's the problem with udev? which kind of configuration does it need?

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

Sorry, was not a udev problem: see OlegHahm/thirdparty_cpu#32

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

Appart from the afformentioned problem with crash on return (which is not part of this PR imho), all test applications run.

#define TIMER_0_EN 1
#define TIMER_1_EN 1

/* Timer 0 configuration */
Copy link
Contributor

Choose a reason for hiding this comment

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

Docstring?

Copy link
Contributor

Choose a reason for hiding this comment

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

actually no, these comments were only meant for better readability of the code and not really for doxygen...

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

If above comments are addressed, I will give my ACK :)

@thomaseichinger
Copy link
Contributor Author

updated addressing @authmillenon's comments

@miri64
Copy link
Contributor

miri64 commented May 19, 2014

ACK, squash and go.

@thomaseichinger
Copy link
Contributor Author

squashed will merge when @haukepetersen approves OlegHahm/thirdparty_cpu#26

@@ -7,4 +7,6 @@

typedef uint8_t radio_packet_length_t;

Copy link
Contributor

Choose a reason for hiding this comment

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

But a copyright + doxygen header wouldn't hurt here!

@haukepetersen
Copy link
Contributor

Conditional ACK if you add the doxygen and copyright headers.

@thomaseichinger
Copy link
Contributor Author

updated addressing @haukepetersen's comments

@haukepetersen
Copy link
Contributor

looking good. ACK

@thomaseichinger
Copy link
Contributor Author

reworded second commit with tag and GO

thomaseichinger added a commit that referenced this pull request May 21, 2014
…river_defs

iot-lab_M3: definitions for implementation of peripheral timer driver
@thomaseichinger thomaseichinger merged commit 93c432e into OlegHahm:master May 21, 2014
@thomaseichinger thomaseichinger deleted the iot-lab_M3-periph_timer_driver_defs branch May 21, 2014 09:52
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.

None yet

4 participants