style: fix some of the easier style bugs
No real changes.
This commit is contained in:
@@ -82,27 +82,27 @@
|
||||
/* Bits [3:0] - Reserved */
|
||||
|
||||
enum usart_stopbits {
|
||||
USART_STOPBITS_1,
|
||||
USART_STOPBITS_1_5,
|
||||
USART_STOPBITS_2,
|
||||
USART_STOPBITS_1,
|
||||
USART_STOPBITS_1_5,
|
||||
USART_STOPBITS_2,
|
||||
};
|
||||
|
||||
enum usart_parity {
|
||||
USART_PARITY_NONE,
|
||||
USART_PARITY_ODD,
|
||||
USART_PARITY_EVEN,
|
||||
USART_PARITY_NONE,
|
||||
USART_PARITY_ODD,
|
||||
USART_PARITY_EVEN,
|
||||
};
|
||||
|
||||
enum usart_mode {
|
||||
USART_MODE_DISABLED,
|
||||
USART_MODE_RX,
|
||||
USART_MODE_TX,
|
||||
USART_MODE_TX_RX,
|
||||
USART_MODE_DISABLED,
|
||||
USART_MODE_RX,
|
||||
USART_MODE_TX,
|
||||
USART_MODE_TX_RX,
|
||||
};
|
||||
|
||||
enum usart_flowcontrol {
|
||||
USART_FLOWCONTROL_NONE,
|
||||
USART_FLOWCONTROL_RTS_CTS,
|
||||
USART_FLOWCONTROL_NONE,
|
||||
USART_FLOWCONTROL_RTS_CTS,
|
||||
};
|
||||
|
||||
void usart_send(uint32_t usart, uint16_t data);
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
|
||||
/* --- Convenience macros ------------------------------------------------ */
|
||||
|
||||
#define PORTA PORT_BASE + 0
|
||||
#define PORTB PORT_BASE + 0x80
|
||||
#define PORTA (PORT_BASE + 0)
|
||||
#define PORTB (PORT_BASE + 0x80)
|
||||
|
||||
/* --- PORT registers ----------------------------------------------------- */
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/*
|
||||
* The adc v2 peripheral optionally supports per channel sampling, injected
|
||||
* sequences, watchdogs, offsets and other "advanced" features, and is
|
||||
* sequences, watchdogs, offsets and other "advanced" features, and is
|
||||
* found on the (so far) F3 and L4,
|
||||
* or only a much "simpler" version as found on (so far) f0 and l0.
|
||||
*/
|
||||
|
||||
@@ -31,10 +31,10 @@ specific memorymap.h header before including this header file.*/
|
||||
|
||||
/*
|
||||
* The adc v2 peripheral optionally supports per channel sampling, injected
|
||||
* sequences, watchdogs, offsets and other "advanced" features, and is
|
||||
* sequences, watchdogs, offsets and other "advanced" features, and is
|
||||
* found on the (so far) F3 and L4,
|
||||
* or only a much "simpler" version as found on (so far) f0 and l0.
|
||||
*/
|
||||
*/
|
||||
|
||||
/** @cond */
|
||||
#ifdef LIBOPENCM3_ADC_H
|
||||
|
||||
@@ -182,7 +182,7 @@ void adc_disable_vbat_sensor(void);
|
||||
void adc_calibrate_start(uint32_t adc)
|
||||
LIBOPENCM3_DEPRECATED("see adc_calibrate/_async");
|
||||
void adc_calibrate_wait_finish(uint32_t adc)
|
||||
LIBOPENCM3_DEPRECATED("see adc_is_calibrating"); ;
|
||||
LIBOPENCM3_DEPRECATED("see adc_is_calibrating");
|
||||
|
||||
/* Analog Watchdog */
|
||||
void adc_enable_analog_watchdog_on_all_channels(uint32_t adc);
|
||||
|
||||
@@ -413,7 +413,7 @@ void adc_enable_external_trigger_regular(uint32_t adc, uint32_t trigger);
|
||||
void adc_enable_external_trigger_injected(uint32_t adc, uint32_t trigger);
|
||||
void adc_reset_calibration(uint32_t adc);
|
||||
void adc_calibration(uint32_t adc)
|
||||
LIBOPENCM3_DEPRECATED("see adc_calibrate/_async");;
|
||||
LIBOPENCM3_DEPRECATED("see adc_calibrate/_async");
|
||||
void adc_calibrate_async(uint32_t adc);
|
||||
bool adc_is_calibrating(uint32_t adc);
|
||||
void adc_calibrate(uint32_t adc);
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
/* Address: 0x80000000 */
|
||||
#define FMC_BANK3 (PERIPH_BASE_AHB3 + 0x20000000U)
|
||||
/* Address: 0x90000000 */
|
||||
#define QUADSPI_BANK (PERIPH_BASE_AHB3 + 0x30000000U)
|
||||
#define QUADSPI_BANK (PERIPH_BASE_AHB3 + 0x30000000U)
|
||||
#define FSMC_BASE (PERIPH_BASE_AHB3 + 0x40000000U)
|
||||
#define FMC_BASE (PERIPH_BASE_AHB3 + 0x40000000U)
|
||||
#define QUADSPI_BASE (PERIPH_BASE_AHB3 + 0x40001000U)
|
||||
|
||||
Reference in New Issue
Block a user