Cleanup and refactoring of the STM32w port

This is a general cleanup of things like code style issues and code structure of the STM32w port to make it more like the rest of Contiki is structured.
This commit is contained in:
Adam Dunkels 2013-03-15 16:14:09 +01:00
parent 12b3d02ba1
commit a5046e83c7
118 changed files with 4470 additions and 4281 deletions

View file

@ -8,29 +8,29 @@
#ifndef _MEMS_H_
#define _MEMS_H_
#include "hal/micro/mems_regs.h"
#include "hal/micro/mems-regs.h"
/** @brief Mems data type: three acceleration values each related to a specific direction
Watch out: only lower data values (e.g. those terminated by the _l) are
currently used by the device */
typedef struct {
int8u outx_l;
int8u outx_h;
int8u outy_l;
int8u outy_h;
int8u outz_l;
int8u outz_h;
uint8_t outx_l;
uint8_t outx_h;
uint8_t outy_l;
uint8_t outy_h;
uint8_t outz_l;
uint8_t outz_h;
} t_mems_data;
/** @brief Mems Initialization function
*/
int8u mems_Init(void);
uint8_t mems_Init(void);
/** @brief Get mems acceleration values
*/
int8u mems_GetValue(t_mems_data *mems_data);
uint8_t mems_GetValue(t_mems_data *mems_data);
#endif /* _MEMS_H_ */