cpu: added `extern "C"` to headers

This PR adds `extern "C"` to the header files in ./RIOT/cpu/* folders.
```
#ifdef __cplusplus
extern "C" {
#endif
```
should be outside the #endif (line 8317).