bsp/lpc176x: Fix integer to pointer warnings

This commit is contained in:
Sebastian Huber
2017-03-08 15:36:54 +01:00
parent 504a58228d
commit f82e9af7fa
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -19,7 +19,8 @@
#include <bsp/adc.h>
#include <bsp/adc-defs.h>
static lpc176x_adc_device *const adc_device = AD0_BASE_ADDR;
static lpc176x_adc_device *const adc_device =
(lpc176x_adc_device *) AD0_BASE_ADDR;
static const lpc176x_adc_pin_map adc_pinmap[ ADC_DEVICES_COUNT ] =
{
+2 -1
View File
@@ -23,7 +23,8 @@
/**
* @brief The low level device.
*/
static lpc176x_pwm_device *const pwm_device = PWM1_BASE_ADDR;
static lpc176x_pwm_device *const pwm_device =
(lpc176x_pwm_device *) PWM1_BASE_ADDR;
/**
* @brief The possible output pins for each PWM output.