Skip to content

Commit 444a2bd

Browse files
Astyle run.
1 parent ecaadd2 commit 444a2bd

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/cy_qspi_api.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,21 @@ extern "C" {
2626
#endif
2727

2828
#if CY_IP_MXSMIF_INSTANCES == 1
29-
static cyhal_qspi_t* qspi_ptr = NULL;
29+
static cyhal_qspi_t *qspi_ptr = NULL;
3030
#else
3131
#error Unhandled number of SMIF instances
3232
#endif
3333

3434
qspi_status_t qspi_init(qspi_t *obj, PinName io0, PinName io1, PinName io2, PinName io3, PinName sclk, PinName ssel, uint32_t hz, uint8_t mode)
3535
{
3636
// If qspi has already been initialized, free and reinit.
37-
if(qspi_ptr != NULL)
38-
{
37+
if (qspi_ptr != NULL) {
3938
cyhal_qspi_free(qspi_ptr);
4039
qspi_ptr = NULL;
4140
}
4241

4342
cy_rslt_t result = cyhal_qspi_init(&(obj->hal_qspi), io0, io1, io2, io3, NC, NC, NC, NC, sclk, ssel, hz, mode);
44-
if(CY_RSLT_SUCCESS != result)
45-
{
43+
if (CY_RSLT_SUCCESS != result) {
4644
return QSPI_STATUS_ERROR;
4745
}
4846

targets/TARGET_Cypress/TARGET_PSOC6/cy_reset_reason_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ reset_reason_t hal_reset_reason_get(void)
6969
count++;
7070
}
7171

72-
if (count > 1)
72+
if (count > 1) {
7373
reason = RESET_REASON_MULTIPLE;
74+
}
7475

7576
return reason;
7677
}

targets/TARGET_Cypress/TARGET_PSOC6/cy_us_ticker_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ void us_ticker_init(void)
7474
* replaced once we have a way to allocate dedicated timers for TF-M
7575
* and Mbed OS. */
7676
cyhal_resource_inst_t res = { CYHAL_RSC_TCPWM, 0, 0 };
77-
if(CY_RSLT_SUCCESS != cyhal_hwmgr_reserve(&res)) {
77+
if (CY_RSLT_SUCCESS != cyhal_hwmgr_reserve(&res)) {
7878
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER, MBED_ERROR_CODE_FAILED_OPERATION), "cyhal_timer_init");
7979
}
8080
res.channel_num = 1;
81-
if(CY_RSLT_SUCCESS != cyhal_hwmgr_reserve(&res)) {
81+
if (CY_RSLT_SUCCESS != cyhal_hwmgr_reserve(&res)) {
8282
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER, MBED_ERROR_CODE_FAILED_OPERATION), "cyhal_timer_init");
8383
}
8484
#endif

0 commit comments

Comments
 (0)