diff options
Diffstat (limited to 'os/hal/platforms')
| -rw-r--r-- | os/hal/platforms/SPC560Pxx/platform.mk | 4 | ||||
| -rw-r--r-- | os/hal/platforms/SPC56ELxx/platform.mk | 4 | ||||
| -rw-r--r-- | os/hal/platforms/SPC5xx/EQADC_v1/adc_lld.h | 8 | ||||
| -rw-r--r-- | os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h | 8 | 
4 files changed, 16 insertions, 8 deletions
| diff --git a/os/hal/platforms/SPC560Pxx/platform.mk b/os/hal/platforms/SPC560Pxx/platform.mk index 53b94c39d..864eaae15 100644 --- a/os/hal/platforms/SPC560Pxx/platform.mk +++ b/os/hal/platforms/SPC560Pxx/platform.mk @@ -1,9 +1,13 @@  # List of all the SPC560Pxx platform files.
  PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/SPC560Pxx/hal_lld.c \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.c \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.c \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c
  # Required include directories
  PLATFORMINC = ${CHIBIOS}/os/hal/platforms/SPC560Pxx \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1 \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1 \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1 \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1
 diff --git a/os/hal/platforms/SPC56ELxx/platform.mk b/os/hal/platforms/SPC56ELxx/platform.mk index 61f1cf3de..b907987d6 100644 --- a/os/hal/platforms/SPC56ELxx/platform.mk +++ b/os/hal/platforms/SPC56ELxx/platform.mk @@ -1,9 +1,13 @@  # List of all the SPC56ELxx platform files.
  PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/SPC56ELxx/hal_lld.c \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.c \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.c \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c
  # Required include directories
  PLATFORMINC = ${CHIBIOS}/os/hal/platforms/SPC56ELxx \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1 \
 +              ${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1 \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1 \
                ${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1
 diff --git a/os/hal/platforms/SPC5xx/EQADC_v1/adc_lld.h b/os/hal/platforms/SPC5xx/EQADC_v1/adc_lld.h index 9ad820ee4..faffc6394 100644 --- a/os/hal/platforms/SPC5xx/EQADC_v1/adc_lld.h +++ b/os/hal/platforms/SPC5xx/EQADC_v1/adc_lld.h @@ -458,11 +458,11 @@  #error "EQADC not present in the selected device"
  #endif
 -#define SPC5_ADC_USE_ADC0                   (SPC5_ADC_USE_ADC0_Q0 |         \
 -                                             SPC5_ADC_USE_ADC0_Q1 |         \
 +#define SPC5_ADC_USE_ADC0                   (SPC5_ADC_USE_ADC0_Q0 ||        \
 +                                             SPC5_ADC_USE_ADC0_Q1 ||        \
                                               SPC5_ADC_USE_ADC0_Q2)
 -#define SPC5_ADC_USE_ADC1                   (SPC5_ADC_USE_ADC1_Q3 |         \
 -                                             SPC5_ADC_USE_ADC1_Q4 |         \
 +#define SPC5_ADC_USE_ADC1                   (SPC5_ADC_USE_ADC1_Q3 ||        \
 +                                             SPC5_ADC_USE_ADC1_Q4 ||        \
                                               SPC5_ADC_USE_ADC1_Q5)
  #if !SPC5_ADC_USE_ADC0 && !SPC5_ADC_USE_ADC1
 diff --git a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h index 042102977..207f314d3 100644 --- a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h +++ b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h @@ -240,28 +240,28 @@   * @brief   PWMD5 interrupt priority level setting.
   */
  #if !defined(SPC5_PWM_SMOD4_PRIORITY) || defined(__DOXYGEN__)
 -#define SPC5_PWM_SMOD4_PRIORITY          7
 +#define SPC5_PWM_SMOD4_PRIORITY             7
  #endif
  /**
   * @brief   PWMD6 interrupt priority level setting.
   */
  #if !defined(SPC5_PWM_SMOD5_PRIORITY) || defined(__DOXYGEN__)
 -#define SPC5_PWM_SMOD5_PRIORITY          7
 +#define SPC5_PWM_SMOD5_PRIORITY             7
  #endif
  /**
   * @brief   PWMD7 interrupt priority level setting.
   */
  #if !defined(SPC5_PWM_SMOD6_PRIORITY) || defined(__DOXYGEN__)
 -#define SPC5_PWM_SMOD6_PRIORITY          7
 +#define SPC5_PWM_SMOD6_PRIORITY             7
  #endif
  /**
   * @brief   PWMD8 interrupt priority level setting.
   */
  #if !defined(SPC5_PWM_SMOD7_PRIORITY) || defined(__DOXYGEN__)
 -#define SPC5_PWM_SMOD7_PRIORITY          7
 +#define SPC5_PWM_SMOD7_PRIORITY             7
  #endif
  /**
 | 
