Skip to content

Commit bdff956

Browse files
committed
Explicit pinmap - fix style
1 parent 4b30429 commit bdff956

File tree

18 files changed

+230
-223
lines changed

18 files changed

+230
-223
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ static void uart_test_common(int baudrate, int data_bits, SerialParity parity, i
133133
const serial_fc_pinmap_t pinmap = get_uart_fc_pinmap(rts, cts);
134134
serial_set_flow_control_direct(&serial, FlowControlRTSCTS, &pinmap);
135135
#else
136-
//skip this test case if explicit pinmap is not supported
137-
return;
136+
//skip this test case if explicit pinmap is not supported
137+
return;
138138
#endif
139139
} else {
140140
serial_set_flow_control(&serial, FlowControlRTSCTS, rts, cts);

drivers/SPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class SPI : private NonCopyable<SPI> {
440440
/* SPI peripheral name */
441441
SPIName _peripheral_name;
442442
/* Pointer to spi init function */
443-
void (*_init_func)(SPI*);
443+
void (*_init_func)(SPI *);
444444

445445
private:
446446
void _do_construct();

hal/analogin_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct analogin_s analogin_t;
4444
* @param obj The analogin object to initialize
4545
* @param pinmap pointer to structure which holds static pinmap
4646
*/
47-
void analogin_init_direct(analogin_t* obj, const PinMap *pinmap);
47+
void analogin_init_direct(analogin_t *obj, const PinMap *pinmap);
4848

4949
/** Initialize the analogin peripheral
5050
*

hal/analogout_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct dac_s dac_t;
4444
* @param obj The analogout object to initialize
4545
* @param pinmap pointer to structure which holds static pinmap
4646
*/
47-
void analogout_init_direct(dac_t* obj, const PinMap *pinmap);
47+
void analogout_init_direct(dac_t *obj, const PinMap *pinmap);
4848

4949
/** Initialize the analogout peripheral
5050
*

hal/explicit_pinmap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ MSTD_CONSTEXPR_FN_14 spi_pinmap_t get_spi_pinmap(const PinName mosi, const PinNa
186186
}
187187

188188
if ((!mosi_map || !miso_map || !sclk_map || !ssel_map) ||
189-
(mosi_map->peripheral != miso_map->peripheral || mosi_map->peripheral != sclk_map->peripheral) ||
190-
(ssel_map->pin != NC && mosi_map->peripheral != ssel_map->peripheral)) {
189+
(mosi_map->peripheral != miso_map->peripheral || mosi_map->peripheral != sclk_map->peripheral) ||
190+
(ssel_map->pin != NC && mosi_map->peripheral != ssel_map->peripheral)) {
191191
return {NC, NC, NC, NC, NC, NC, NC, NC, NC};
192192
}
193193

hal/pwmout_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ typedef struct pwmout_s pwmout_t;
4343
* @param obj The pwmout object to initialize
4444
* @param pinmap pointer to structure which holds static pinmap
4545
*/
46-
void pwmout_init_direct(pwmout_t* obj, const PinMap *pinmap);
46+
void pwmout_init_direct(pwmout_t *obj, const PinMap *pinmap);
4747

4848
/** Initialize the pwm out peripheral and configure the pin
4949
*

platform/cxxsupport/mstd_cstddef

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,15 @@
6161
#define alignas(N) __attribute__((aligned(N)))
6262
#endif
6363

64-
namespace std
65-
{
64+
namespace std {
6665
// [cstddef.syn]
6766
using nullptr_t = decltype(nullptr);
6867

6968
} // namespace std
7069

7170
#endif // __CC_ARM
7271

73-
namespace mstd
74-
{
72+
namespace mstd {
7573
using std::size_t;
7674
using std::ptrdiff_t;
7775
using std::nullptr_t;

platform/source/mbed_retarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ static FileHandle *default_console()
290290
#if MBED_CONF_TARGET_CONSOLE_UART && DEVICE_SERIAL
291291

292292
# if MBED_CONF_PLATFORM_STDIO_BUFFERED_SERIAL
293-
static const serial_pinmap_t console_pinmap = get_uart_pinmap(STDIO_UART_TX, STDIO_UART_RX);
294-
static UARTSerial console(console_pinmap, MBED_CONF_PLATFORM_STDIO_BAUD_RATE);
293+
static const serial_pinmap_t console_pinmap = get_uart_pinmap(STDIO_UART_TX, STDIO_UART_RX);
294+
static UARTSerial console(console_pinmap, MBED_CONF_PLATFORM_STDIO_BAUD_RATE);
295295
# if CONSOLE_FLOWCONTROL == CONSOLE_FLOWCONTROL_RTS
296296
static const serial_fc_pinmap_t fc_pinmap = get_uart_fc_pinmap(STDIO_UART_RTS, NC);
297297
console.serial_set_flow_control(SerialBase::RTS, fc_pinmap);

0 commit comments

Comments
 (0)