mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 01:58:44 +08:00
bsp/lpc176x: Fix integer to pointer warnings
This commit is contained in:
@@ -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 ] =
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user