Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions os/hal/ports/AT32/AT32F402_405/hal_efl_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@
*/
#define efl_lld_driver_fields \
/* Flash registers.*/ \
FLASH_TypeDef *flash
FLASH_TypeDef *flash;

/**
* @brief Low level fields of the embedded flash configuration structure.
*/
#define efl_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/*===========================================================================*/
/* External declarations. */
Expand Down
12 changes: 12 additions & 0 deletions os/hal/ports/AT32/AT32F402_405/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,18 @@
/* Driver macros. */
/*===========================================================================*/

/**
* @brief Returns the frequency of a clock point in Hz.
* @note Static implementation.
*
* @param[in] clkpt clock point to be returned
* @return The clock point frequency in Hz or zero if the
* frequency is unknown.
*
* @notapi
*/
#define hal_lld_get_clock_point(clkpt) 0U

/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/AT32/AT32F415/hal_efl_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@
*/
#define efl_lld_driver_fields \
/* Flash registers.*/ \
FLASH_TypeDef *flash
FLASH_TypeDef *flash;

/**
* @brief Low level fields of the embedded flash configuration structure.
*/
#define efl_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/*===========================================================================*/
/* External declarations. */
Expand Down
12 changes: 12 additions & 0 deletions os/hal/ports/AT32/AT32F415/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,18 @@
/* Driver macros. */
/*===========================================================================*/

/**
* @brief Returns the frequency of a clock point in Hz.
* @note Static implementation.
*
* @param[in] clkpt clock point to be returned
* @return The clock point frequency in Hz or zero if the
* frequency is unknown.
*
* @notapi
*/
#define hal_lld_get_clock_point(clkpt) 0U

/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/AT32/AT32F435_437/hal_efl_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ typedef enum {
*/
#define efl_lld_driver_fields \
/* Flash registers.*/ \
FLASH_TypeDef *flash
FLASH_TypeDef *flash;

/**
* @brief Low level fields of the embedded flash configuration structure.
*/
#define efl_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/*===========================================================================*/
/* External declarations. */
Expand Down
12 changes: 12 additions & 0 deletions os/hal/ports/AT32/AT32F435_437/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,18 @@

#define DEBUG_CTRL_TMR2_PAUSE DEBUG_APB1_PAUSE_TMR2_PAUSE

/**
* @brief Returns the frequency of a clock point in Hz.
* @note Static implementation.
*
* @param[in] clkpt clock point to be returned
* @return The clock point frequency in Hz or zero if the
* frequency is unknown.
*
* @notapi
*/
#define hal_lld_get_clock_point(clkpt) 0U

/* Various helpers.*/
#include "nvic.h"
#include "mpu_v7m.h"
Expand Down
6 changes: 3 additions & 3 deletions os/hal/ports/AT32/LLD/ADCv1/hal_adc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ typedef uint32_t adcerror_t;
/* Pointer to associated DMA channel.*/ \
const at32_dma_stream_t *dmastp; \
/* DMA mode bit mask.*/ \
uint32_t dmamode
uint32_t dmamode;

/**
* @brief Low level fields of the ADC configuration structure.
*/
#define adc_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/**
* @brief Low level fields of the ADC configuration structure.
Expand Down Expand Up @@ -231,7 +231,7 @@ typedef uint32_t adcerror_t;
uint32_t osq2; \
/* ADC OSQ3 register initialization data. \
NOTE: Conversion group sequence 1...6.*/ \
uint32_t osq3
uint32_t osq3;

/**
* @name Sequences building helper macros
Expand Down
6 changes: 3 additions & 3 deletions os/hal/ports/AT32/LLD/ADCv2/hal_adc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,14 @@ typedef uint32_t adcerror_t;
/* Pointer to associated DMA channel.*/ \
const at32_dma_stream_t *dmastp; \
/* DMA mode bit mask.*/ \
uint32_t dmamode
uint32_t dmamode;

/**
* @brief Low level fields of the ADC configuration structure.
*/
#define adc_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/**
* @brief Low level fields of the ADC configuration structure.
Expand Down Expand Up @@ -290,7 +290,7 @@ typedef uint32_t adcerror_t;
uint32_t osq2; \
/* ADC OSQ3 register initialization data. \
NOTE: Conversion group sequence 1...6.*/ \
uint32_t osq3
uint32_t osq3;

/**
* @name Sequences building helper macros
Expand Down
2 changes: 1 addition & 1 deletion os/hal/ports/AT32/LLD/RTCv2/hal_rtc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ typedef struct hal_ertc_wakeup {
/* Pointer to the ERTC registers block.*/ \
ERTC_TypeDef *ertc; \
/* Callback pointer.*/ \
rtccb_t callback
rtccb_t callback;

/*===========================================================================*/
/* Driver macros. */
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/AT32/LLD/SPIv1/hal_spi_v2_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
/* Sink for discarded data.*/ \
uint32_t rxsink; \
/* Source for default TX pattern.*/ \
uint32_t txsource
uint32_t txsource;

/**
* @brief Low level fields of the SPI configuration structure.
Expand All @@ -241,7 +241,7 @@
/* SPI CTRL1 register initialization data.*/ \
uint16_t ctrl1; \
/* SPI CTRL2 register initialization data.*/ \
uint16_t ctrl2
uint16_t ctrl2;

/*===========================================================================*/
/* External declarations. */
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/AT32/LLD/SPIv2/hal_spi_v2_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
/* Sink for discarded data.*/ \
uint32_t rxsink; \
/* Source for default TX pattern.*/ \
uint32_t txsource
uint32_t txsource;

/**
* @brief Low level fields of the SPI configuration structure.
Expand All @@ -242,7 +242,7 @@
/* SPI CTRL1 register initialization data.*/ \
uint16_t ctrl1; \
/* SPI CTRL2 register initialization data.*/ \
uint16_t ctrl2
uint16_t ctrl2;

/*===========================================================================*/
/* External declarations. */
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/AT32/LLD/USARTv2/hal_sio_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
/* Pointer to the USARTx registers block.*/ \
USART_TypeDef *usart; \
/* Clock frequency for the associated USART/UART.*/ \
uint32_t clock
uint32_t clock;

/**
* @brief Low level fields of the SIO configuration structure.
Expand All @@ -259,7 +259,7 @@
/* USART CTRL2 register initialization data.*/ \
uint32_t ctrl2; \
/* USART CTRL3 register initialization data.*/ \
uint32_t ctrl3
uint32_t ctrl3;

/**
* @brief Determines the state of the RX FIFO.
Expand Down
12 changes: 12 additions & 0 deletions os/hal/ports/ES32/FS026/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@
/* Driver macros. */
/*===========================================================================*/

/**
* @brief Returns the frequency of a clock point in Hz.
* @note Static implementation.
*
* @param[in] clkpt clock point to be returned
* @return The clock point frequency in Hz or zero if the
* frequency is unknown.
*
* @notapi
*/
#define hal_lld_get_clock_point(clkpt) 0U

/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
Expand Down
6 changes: 3 additions & 3 deletions os/hal/ports/ES32/LLD/ADCv1/hal_adc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ typedef uint32_t adcerror_t;
/* Pointer to associated DMA channel.*/ \
const void *dmastp; \
/* DMA mode bit mask.*/ \
uint32_t dmamode
uint32_t dmamode;

/**
* @brief Low level fields of the ADC configuration structure.
*/
#define adc_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/**
* @brief Low level fields of the ADC configuration structure.
Expand All @@ -99,7 +99,7 @@ typedef uint32_t adcerror_t;
/* ADC CHSELR register initialization data. \
NOTE: The number of bits at logic level one in this register must \
be equal to the number in the @p num_channels field.*/ \
uint32_t chselr
uint32_t chselr;


/*===========================================================================*/
Expand Down
6 changes: 3 additions & 3 deletions os/hal/ports/GD/GD32VF103/DACv1/hal_dac_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ typedef enum {
/* DAC channel parameters.*/ \
const dacparams_t *params; \
/* Associated DMA.*/ \
const gd32_dma_stream_t *dma
const gd32_dma_stream_t *dma;

/**
* @brief Low level fields of the DAC configuration structure.
Expand All @@ -259,7 +259,7 @@ typedef enum {
/* DAC data holding register mode.*/ \
dacdhrmode_t datamode; \
/* DAC control register lower 16 bits.*/ \
uint32_t ctl
uint32_t ctl;

/**
* @brief Low level fields of the DAC group configuration structure.
Expand All @@ -268,7 +268,7 @@ typedef enum {
/* DAC initialization data. This field contains the (not shifted) value \
to be put into the TSEL field of the DAC CR register during \
initialization. All other fields are handled internally.*/ \
uint32_t trigger
uint32_t trigger;

/*===========================================================================*/
/* External declarations. */
Expand Down
2 changes: 1 addition & 1 deletion os/hal/ports/GD/GD32VF103/RTCv1/hal_rtc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ typedef struct hal_rtc_alarm {
/* Pointer to the RTC registers block.*/ \
RTC_TypeDef *rtc; \
/* Callback pointer.*/ \
rtccb_t callback
rtccb_t callback;

/*===========================================================================*/
/* Driver macros. */
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/GD/GD32VF103/SPIv1/hal_i2s_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
/* RX DMA mode bit mask.*/ \
uint32_t rxdmamode; \
/* TX DMA mode bit mask.*/ \
uint32_t txdmamode
uint32_t txdmamode;

/**
* @brief Low level fields of the I2S configuration structure.
Expand All @@ -243,7 +243,7 @@
/* Configuration of the I2SPSC register. \
NOTE: See the GD32 reference manual, this register is used for \
the I2S clock setup.*/ \
int16_t i2spsc
int16_t i2spsc;

/*===========================================================================*/
/* External declarations. */
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/GD/GD32VF103/SPIv1/hal_spi_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
/* RX DMA mode bit mask.*/ \
uint32_t rxdmamode; \
/* TX DMA mode bit mask.*/ \
uint32_t txdmamode
uint32_t txdmamode;

/**
* @brief Low level fields of the SPI configuration structure.
Expand All @@ -219,7 +219,7 @@
/* SPI CR1 register initialization data.*/ \
uint16_t ctl0; \
/* SPI CR2 register initialization data.*/ \
uint16_t ctl1
uint16_t ctl1;

/*===========================================================================*/
/* External declarations. */
Expand Down
6 changes: 3 additions & 3 deletions os/hal/ports/GD/GD32VF103/hal_adc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ typedef enum {
/* Pointer to associated DMA channel.*/ \
const gd32_dma_stream_t *dmastp; \
/* DMA mode bit mask.*/ \
uint32_t dmamode
uint32_t dmamode;

/**
* @brief Low level fields of the ADC configuration structure.
*/
#define adc_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/**
* @brief Low level fields of the ADC configuration structure.
Expand Down Expand Up @@ -200,7 +200,7 @@ typedef enum {
uint32_t rsq1; \
/* ADC RSQ2 register initialization data. \
NOTE: Conversion group sequence 1...6.*/ \
uint32_t rsq2
uint32_t rsq2;

/**
* @name Sequences building helper macros
Expand Down
4 changes: 2 additions & 2 deletions os/hal/ports/GD/GD32VF103/hal_efl_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@
*/
#define efl_lld_driver_fields \
/* Flash registers.*/ \
FLASH_TypeDef *flash
FLASH_TypeDef *flash;

/**
* @brief Low level fields of the embedded flash configuration structure.
*/
#define efl_lld_config_fields \
/* Dummy configuration, it is not needed.*/ \
uint32_t dummy
uint32_t dummy;

/*===========================================================================*/
/* External declarations. */
Expand Down
Loading
Loading