Skip to content

Commit d75cc97

Browse files
committed
Explicit pinmap - fix style
1 parent 17c1b9a commit d75cc97

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
@@ -132,8 +132,8 @@ static void uart_test_common(int baudrate, int data_bits, SerialParity parity, i
132132
const serial_fc_pinmap_t pinmap = get_uart_fc_pinmap(rts, cts);
133133
serial_set_flow_control_direct(&serial, FlowControlRTSCTS, &pinmap);
134134
#else
135-
//skip this test case if explicit pinmap is not supported
136-
return;
135+
//skip this test case if explicit pinmap is not supported
136+
return;
137137
#endif
138138
} else {
139139
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
@@ -67,7 +67,7 @@ typedef struct analogin_s analogin_t;
6767
* @param obj The analogin object to initialize
6868
* @param pinmap pointer to structure which holds static pinmap
6969
*/
70-
void analogin_init_direct(analogin_t* obj, const PinMap *pinmap);
70+
void analogin_init_direct(analogin_t *obj, const PinMap *pinmap);
7171

7272
/** Initialize the analogin peripheral
7373
*

hal/analogout_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef struct dac_s dac_t;
6969
* @param obj The analogout object to initialize
7070
* @param pinmap pointer to structure which holds static pinmap
7171
*/
72-
void analogout_init_direct(dac_t* obj, const PinMap *pinmap);
72+
void analogout_init_direct(dac_t *obj, const PinMap *pinmap);
7373

7474
/** Initialize the analogout peripheral
7575
*

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
@@ -73,7 +73,7 @@ typedef struct pwmout_s pwmout_t;
7373
* @param obj The pwmout object to initialize
7474
* @param pinmap pointer to structure which holds static pinmap
7575
*/
76-
void pwmout_init_direct(pwmout_t* obj, const PinMap *pinmap);
76+
void pwmout_init_direct(pwmout_t *obj, const PinMap *pinmap);
7777

7878
/** Initialize the pwm out peripheral and configure the pin
7979
*

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
@@ -332,8 +332,8 @@ static FileHandle *default_console()
332332
#if MBED_CONF_TARGET_CONSOLE_UART && DEVICE_SERIAL
333333

334334
# if MBED_CONF_PLATFORM_STDIO_BUFFERED_SERIAL
335-
static const serial_pinmap_t console_pinmap = get_uart_pinmap(STDIO_UART_TX, STDIO_UART_RX);
336-
static UARTSerial console(console_pinmap, MBED_CONF_PLATFORM_STDIO_BAUD_RATE);
335+
static const serial_pinmap_t console_pinmap = get_uart_pinmap(STDIO_UART_TX, STDIO_UART_RX);
336+
static UARTSerial console(console_pinmap, MBED_CONF_PLATFORM_STDIO_BAUD_RATE);
337337
# if CONSOLE_FLOWCONTROL == CONSOLE_FLOWCONTROL_RTS
338338
static const serial_fc_pinmap_t fc_pinmap = get_uart_fc_pinmap(STDIO_UART_RTS, NC);
339339
console.serial_set_flow_control(SerialBase::RTS, fc_pinmap);

0 commit comments

Comments
 (0)