From 103cd6bc02b8316a0287e015bdde051eefd228a8 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sat, 19 Nov 2016 17:20:50 +0000 Subject: Fixed Bug #794 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9929 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/AVR/hal_icu_lld.c | 1 - os/hal/ports/AVR/hal_pal_lld.h | 1 - os/hal/ports/AVR/hal_pwm_lld.c | 1 - os/hal/ports/AVR/hal_spi_lld.h | 1 - os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.c | 1 - os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c | 1 - os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c | 1 - os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 2 -- os/hal/ports/STM32/STM32F4xx/hal_lld.h | 1 - os/hal/ports/STM32/STM32L4xx/hal_lld.h | 1 - os/hal/ports/STM32/STM32L4xx/stm32_rcc.h | 1 - os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 1 - os/hal/src/hal_qspi.c | 1 - os/hal/src/hal_st.c | 1 - 14 files changed, 15 deletions(-) (limited to 'os') diff --git a/os/hal/ports/AVR/hal_icu_lld.c b/os/hal/ports/AVR/hal_icu_lld.c index 2cdd1bc3c..f27af0585 100644 --- a/os/hal/ports/AVR/hal_icu_lld.c +++ b/os/hal/ports/AVR/hal_icu_lld.c @@ -53,7 +53,6 @@ static icu_registers_t regs_table[]= #endif }; - /*===========================================================================*/ /* Driver exported variables. */ /*===========================================================================*/ diff --git a/os/hal/ports/AVR/hal_pal_lld.h b/os/hal/ports/AVR/hal_pal_lld.h index 6a325ca73..708cf5168 100644 --- a/os/hal/ports/AVR/hal_pal_lld.h +++ b/os/hal/ports/AVR/hal_pal_lld.h @@ -227,7 +227,6 @@ typedef volatile avr_gpio_registers_t * ioportid_t; #define IOPORTSPI1 ((volatile avr_gpio_registers_t *)&PIN_SPI1) #endif - /*===========================================================================*/ /* Implementation, some of the following macros could be implemented as */ /* functions, if so please put them in pal_lld.c. */ diff --git a/os/hal/ports/AVR/hal_pwm_lld.c b/os/hal/ports/AVR/hal_pwm_lld.c index 49d637e63..c2de785c9 100644 --- a/os/hal/ports/AVR/hal_pwm_lld.c +++ b/os/hal/ports/AVR/hal_pwm_lld.c @@ -560,7 +560,6 @@ void pwm_lld_disable_channel_notification(PWMDriver *pwmp, *regs_table[i].timsk &= ~(1 << (channel + 1)); } - #endif /* HAL_USE_PWM */ /** @} */ diff --git a/os/hal/ports/AVR/hal_spi_lld.h b/os/hal/ports/AVR/hal_spi_lld.h index 5f3a6c2c5..b685087ee 100644 --- a/os/hal/ports/AVR/hal_spi_lld.h +++ b/os/hal/ports/AVR/hal_spi_lld.h @@ -214,7 +214,6 @@ extern "C" { uint8_t spi_lld_polled_exchange(SPIDriver *spip, uint8_t frame); #endif - #ifdef __cplusplus } #endif diff --git a/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.c b/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.c index 8982d45b4..83f582b74 100644 --- a/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.c +++ b/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.c @@ -57,7 +57,6 @@ static union { } u; #endif /* STM32_SDC_SDIO_UNALIGNED_SUPPORT */ - /** * @brief SDIO default configuration. */ diff --git a/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c b/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c index 257ae6f24..01a2eda9d 100644 --- a/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c +++ b/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c @@ -99,7 +99,6 @@ static union { } u; #endif /* STM32_SDC_SDMMC_UNALIGNED_SUPPORT */ - /** * @brief SDIO default configuration. */ diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c index 35a384fc6..942abef2e 100644 --- a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c @@ -383,7 +383,6 @@ OSAL_IRQ_HANDLER(STM32_USART2_HANDLER) { } #endif /* STM32_UART_USE_USART2 */ - #if defined(STM32_USART3_8_HANDLER) #if STM32_SERIAL_USE_USART3 || STM32_SERIAL_USE_UART4 || \ STM32_SERIAL_USE_UART5 || STM32_SERIAL_USE_USART6 || \ diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h index d1dc9e7fc..56b138e65 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h @@ -1492,7 +1492,6 @@ #define STM32_HAS_DAC2_CH1 FALSE #define STM32_HAS_DAC2_CH2 FALSE - /* DMA attributes.*/ #define STM32_ADVANCED_DMA TRUE #define STM32_DMA_SUPPORTS_CSELR FALSE @@ -1714,7 +1713,6 @@ #define STM32_HAS_CRC TRUE #define STM32_CRC_PROGRAMMABLE TRUE - /*===========================================================================*/ /* STM32F091xC, STM32F098xx. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld.h b/os/hal/ports/STM32/STM32F4xx/hal_lld.h index 526a4ce1d..9a71b6c34 100644 --- a/os/hal/ports/STM32/STM32F4xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld.h @@ -1945,7 +1945,6 @@ #define STM32_PLL48CLK 0 #endif /* !STM32_CLOCK48_REQUIRED */ - /** * @brief Clock of timers connected to APB1 * (Timers 2, 3, 4, 5, 6, 7, 12, 13, 14). diff --git a/os/hal/ports/STM32/STM32L4xx/hal_lld.h b/os/hal/ports/STM32/STM32L4xx/hal_lld.h index d8b0d086c..b1594d99c 100644 --- a/os/hal/ports/STM32/STM32L4xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32L4xx/hal_lld.h @@ -2073,7 +2073,6 @@ #define STM32_MSI_FLASHBITS FLASH_ACR_LATENCY_4WS #endif - /*===========================================================================*/ /* Driver data structures and types. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h index 8905c6b59..9c771276c 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h @@ -267,7 +267,6 @@ } /** @} */ - /** * @name ADC peripherals specific RCC operations * @{ diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index c1261e306..9648c9f99 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -312,7 +312,6 @@ #define STM32_LPUART1_HANDLER Vector158 #define STM32_LPUART1_NUMBER 70 - #define STM32_HAS_USART3 FALSE #define STM32_HAS_UART4 FALSE #define STM32_HAS_UART5 FALSE diff --git a/os/hal/src/hal_qspi.c b/os/hal/src/hal_qspi.c index cca5dd747..06dbc15c6 100644 --- a/os/hal/src/hal_qspi.c +++ b/os/hal/src/hal_qspi.c @@ -92,7 +92,6 @@ void qspiStart(QSPIDriver *qspip, const QSPIConfig *config) { osalDbgCheck((qspip != NULL) && (config != NULL)); - osalSysLock(); osalDbgAssert((qspip->state == QSPI_STOP) || (qspip->state == QSPI_READY), diff --git a/os/hal/src/hal_st.c b/os/hal/src/hal_st.c index 0a8b6e987..bf4ba4cb9 100644 --- a/os/hal/src/hal_st.c +++ b/os/hal/src/hal_st.c @@ -62,7 +62,6 @@ void stInit(void) { st_lld_init(); } - /** * @brief Starts the alarm. * @note Makes sure that no spurious alarms are triggered after -- cgit v1.2.3