1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1658 - MPU6000 & HMC5x83 make driver struct const

This commit is contained in:
Alessio Morale 2014-12-25 20:43:08 +01:00
parent 9d36ac4b9c
commit 621c1e8679
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ void PIOS_HMC5x83_driver_get_scale(float *scales, uint8_t size, uintptr_t contex
void PIOS_HMC5x83_driver_fetch(void *, uint8_t size, uintptr_t context);
bool PIOS_HMC5x83_driver_poll(uintptr_t context);
PIOS_SENSORS_Driver PIOS_HMC5x83_Driver = {
const PIOS_SENSORS_Driver PIOS_HMC5x83_Driver = {
.test = PIOS_HMC5x83_driver_Test,
.poll = PIOS_HMC5x83_driver_poll,
.fetch = PIOS_HMC5x83_driver_fetch,

View File

@ -48,7 +48,7 @@ void PIOS_MPU6000_driver_Reset(uintptr_t context);
void PIOS_MPU6000_driver_get_scale(float *scales, uint8_t size, uintptr_t context);
QueueHandle_t PIOS_MPU6000_driver_get_queue(uintptr_t context);
PIOS_SENSORS_Driver PIOS_MPU6000_Driver = {
const PIOS_SENSORS_Driver PIOS_MPU6000_Driver = {
.test = PIOS_MPU6000_driver_Test,
.poll = NULL,
.fetch = NULL,

View File

@ -132,7 +132,7 @@ extern uint8_t PIOS_HMC5x83_ReadID(pios_hmc5x83_dev_t handler, uint8_t out[4]);
extern int32_t PIOS_HMC5x83_Test(pios_hmc5x83_dev_t handler);
extern bool PIOS_HMC5x83_IRQHandler(pios_hmc5x83_dev_t handler);
extern PIOS_SENSORS_Driver PIOS_MPU6000_Driver;
extern const PIOS_SENSORS_Driver PIOS_MPU6000_Driver;
#endif /* PIOS_HMC5x83_H */

View File

@ -160,7 +160,7 @@ extern int32_t PIOS_MPU6000_ReadID();
extern void PIOS_MPU6000_Register();
extern bool PIOS_MPU6000_IRQHandler(void);
extern PIOS_SENSORS_Driver PIOS_MPU6000_Driver;
extern const PIOS_SENSORS_Driver PIOS_MPU6000_Driver;
#endif /* PIOS_MPU6000_H */
/**