stm32f103rey6: fix warnings and one typo

* Fix typo in `atom.c` which failed building
* Fixes to reduce the amount of warnings when building for the iot_lab-M3 board.