Merge branch 'master' into feature/mbedtls
This commit is contained in:
		
						commit
						8a470e6f98
					
				
					 5 changed files with 13 additions and 13 deletions
				
			
		|  | @ -75,10 +75,10 @@ static int16_t  MD; | |||
| // Forward declarations
 | ||||
| //
 | ||||
| static void bmp180_meassure(const bmp180_command_t* command); | ||||
| static bool bmp180_informUser_Impl(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperatue, bmp180_press_t pressure); | ||||
| static bool bmp180_informUser_Impl(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperature, bmp180_press_t pressure); | ||||
| 
 | ||||
| // Set default implementation .. User gets result as bmp180_result_t event
 | ||||
| bool (*bmp180_informUser)(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperatue, bmp180_press_t pressure) = bmp180_informUser_Impl; | ||||
| bool (*bmp180_informUser)(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperature, bmp180_press_t pressure) = bmp180_informUser_Impl; | ||||
| 
 | ||||
| // I2C Driver Task
 | ||||
| static void bmp180_driver_task(void *pvParameters) | ||||
|  | @ -279,12 +279,12 @@ static void bmp180_meassure(const bmp180_command_t* command) | |||
| } | ||||
| 
 | ||||
| // Default user inform implementation
 | ||||
| static bool bmp180_informUser_Impl(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperatue, bmp180_press_t pressure) | ||||
| static bool bmp180_informUser_Impl(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperature, bmp180_press_t pressure) | ||||
| { | ||||
|     bmp180_result_t result; | ||||
| 
 | ||||
|     result.cmd = cmd; | ||||
|     result.temperatue = temperatue; | ||||
|     result.temperature = temperature; | ||||
|     result.pressure = pressure; | ||||
| 
 | ||||
|     return (xQueueSend(*resultQueue, &result, 0) == pdTRUE); | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ typedef uint32_t bmp180_press_t; | |||
| typedef struct | ||||
| { | ||||
|     uint8_t cmd; | ||||
|     bmp180_temp_t  temperatue; | ||||
|     bmp180_temp_t  temperature; | ||||
|     bmp180_press_t pressure; | ||||
| } bmp180_result_t; | ||||
| 
 | ||||
|  | @ -50,6 +50,6 @@ void bmp180_trigger_temperature_measurement(const xQueueHandle* resultQueue); | |||
| void bmp180_trigger_pressure_measurement(const xQueueHandle* resultQueue); | ||||
| 
 | ||||
| // Give the user the chance to create it's own handler
 | ||||
| extern bool (*bmp180_informUser)(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperatue, bmp180_press_t pressure); | ||||
| extern bool (*bmp180_informUser)(const xQueueHandle* resultQueue, uint8_t cmd, bmp180_temp_t temperature, bmp180_press_t pressure); | ||||
| 
 | ||||
| #endif /* DRIVER_BMP180_H_ */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue