cpu/stm32f1: modernized peripheral GPIO driver#3535
cpu/stm32f1: modernized peripheral GPIO driver#3535PeterKietzmann merged 4 commits intoRIOT-OS:masterfrom
Conversation
|
nice! |
cpu/stm32f1/include/periph_cpu.h
Outdated
|
The changes look valid to me at a first glance. I don't have all boards here to test, just the iot-lab_M3. Will do now |
|
The transceiver driver seems so work correctly on the iot-lab_M3 node. Does anyone know the pin-setup of the iot-lab connector? Can anyone test this on spark-core and fox? |
|
Ok, how do we proceed? @haukepetersen did you test it on spark-core and/or fox boards? We don't have those... |
|
I will try it out and fix the comments tomorrow. |
20fcde8 to
febd8ae
Compare
|
addressed comments and added missing implementation of the |
|
I am un-able to test the spark-core, my board seems to be electrically broken... |
febd8ae to
1dc096d
Compare
|
found one more bug in the |
|
Why is this offset needed? |
|
Without the offset, Port A would lead to |
|
two more fixes:
|
There was a problem hiding this comment.
Could you shortly explain these values? Maybe referring to the reference manual (sec.9.2.1, p. 171 or table 20, p.161)? I think it's much faster than figuring this out by myself
There was a problem hiding this comment.
Sure: To understand them, have a look at the gpio_init function and how they are used. I made a bit-map table with the configuration values for the CR[L|H] register and then tried to map the values of DIR and PP to this table. The values you see here is what you get.
There was a problem hiding this comment.
Ah, I totally overlooked if (dir == GPIO_DIR_OUT) there
|
@haukepetersen on iot-lab_M3 I tested tests/periph_gpio, tests/driver_at86rf2xx, examples/default with success. Travis gives us green light. I think no one else will test this on fox and spark-core. So this is an ACK. Please squash your latest commits (or at least remove the "s") |
3ea3c60 to
de8d8be
Compare
|
squashed. Waiting for Travis once more to make sure I did not break anything while squashing... |
|
Let's do this. ACK and go |
cpu/stm32f1: modernized peripheral GPIO driver
One more CPU on the bright side :-)
Code size before (
tests/periph_gpio,iot-lab_M3):and after:
Savings ~1,2k