Skip to content

Commit fb437d8

Browse files
committed
Formatting fixes
1 parent 3b01a65 commit fb437d8

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

ports/atmel-samd/common-hal/displayio/ParallelBus.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2222
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
* THE SOFTWARE.
24+
* THE SOFTWARE .
2525
*/
2626

2727
#include "shared-bindings/displayio/ParallelBus.h"
@@ -33,9 +33,9 @@
3333
#include "shared-bindings/digitalio/DigitalInOut.h"
3434
#include "shared-bindings/microcontroller/__init__.h"
3535

36-
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* self,
37-
const mcu_pin_obj_t* data0, const mcu_pin_obj_t* command, const mcu_pin_obj_t* chip_select,
38-
const mcu_pin_obj_t* write, const mcu_pin_obj_t* read, const mcu_pin_obj_t* reset, uint32_t frequency) {
36+
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t *self,
37+
const mcu_pin_obj_t *data0, const mcu_pin_obj_t *command, const mcu_pin_obj_t *chip_select,
38+
const mcu_pin_obj_t *write, const mcu_pin_obj_t *read, const mcu_pin_obj_t *reset, uint32_t frequency) {
3939

4040
uint8_t data_pin = data0->number;
4141
if (data_pin % 8 != 0) {
@@ -55,7 +55,7 @@ void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* sel
5555
wrconfig |= 0xff << (data_pin % 32);
5656
}
5757
g->WRCONFIG.reg = wrconfig;
58-
self->bus = ((uint8_t*) &g->OUT.reg) + (data0->number % 32 / 8);
58+
self->bus = ((uint8_t *)&g->OUT.reg) + (data0->number % 32 / 8);
5959

6060
self->command.base.type = &digitalio_digitalinout_type;
6161
common_hal_digitalio_digitalinout_construct(&self->command, command);
@@ -95,7 +95,7 @@ void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* sel
9595
}
9696
}
9797

98-
void common_hal_displayio_parallelbus_deinit(displayio_parallelbus_obj_t* self) {
98+
void common_hal_displayio_parallelbus_deinit(displayio_parallelbus_obj_t *self) {
9999
for (uint8_t i = 0; i < 8; i++) {
100100
reset_pin_number(self->data0_pin + i);
101101
}
@@ -108,7 +108,7 @@ void common_hal_displayio_parallelbus_deinit(displayio_parallelbus_obj_t* self)
108108
}
109109

110110
bool common_hal_displayio_parallelbus_reset(mp_obj_t obj) {
111-
displayio_parallelbus_obj_t* self = MP_OBJ_TO_PTR(obj);
111+
displayio_parallelbus_obj_t *self = MP_OBJ_TO_PTR(obj);
112112
if (self->reset.base.type == &mp_type_NoneType) {
113113
return false;
114114
}
@@ -124,17 +124,17 @@ bool common_hal_displayio_parallelbus_bus_free(mp_obj_t obj) {
124124
}
125125

126126
bool common_hal_displayio_parallelbus_begin_transaction(mp_obj_t obj) {
127-
displayio_parallelbus_obj_t* self = MP_OBJ_TO_PTR(obj);
127+
displayio_parallelbus_obj_t *self = MP_OBJ_TO_PTR(obj);
128128
common_hal_digitalio_digitalinout_set_value(&self->chip_select, false);
129129
return true;
130130
}
131131

132132
void common_hal_displayio_parallelbus_send(mp_obj_t obj, display_byte_type_t byte_type,
133133
display_chip_select_behavior_t chip_select, const uint8_t *data, uint32_t data_length) {
134-
displayio_parallelbus_obj_t* self = MP_OBJ_TO_PTR(obj);
134+
displayio_parallelbus_obj_t *self = MP_OBJ_TO_PTR(obj);
135135
common_hal_digitalio_digitalinout_set_value(&self->command, byte_type == DISPLAY_DATA);
136-
uint32_t* clear_write = (uint32_t*) &self->write_group->OUTCLR.reg;
137-
uint32_t* set_write = (uint32_t*) &self->write_group->OUTSET.reg;
136+
uint32_t *clear_write = (uint32_t *)&self->write_group->OUTCLR.reg;
137+
uint32_t *set_write = (uint32_t *)&self->write_group->OUTSET.reg;
138138
uint32_t mask = self->write_mask;
139139
for (uint32_t i = 0; i < data_length; i++) {
140140
*clear_write = mask;
@@ -144,6 +144,6 @@ void common_hal_displayio_parallelbus_send(mp_obj_t obj, display_byte_type_t byt
144144
}
145145

146146
void common_hal_displayio_parallelbus_end_transaction(mp_obj_t obj) {
147-
displayio_parallelbus_obj_t* self = MP_OBJ_TO_PTR(obj);
147+
displayio_parallelbus_obj_t *self = MP_OBJ_TO_PTR(obj);
148148
common_hal_digitalio_digitalinout_set_value(&self->chip_select, true);
149149
}

ports/esp32s2/common-hal/displayio/ParallelBus.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2222
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
* THE SOFTWARE.
24+
* THE SOFTWARE .
2525
*/
2626

2727
#include "shared-bindings/displayio/ParallelBus.h"
@@ -38,9 +38,9 @@
3838
* - data0 pin must be byte aligned
3939
*/
4040

41-
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* self,
42-
const mcu_pin_obj_t* data0, const mcu_pin_obj_t* command, const mcu_pin_obj_t* chip_select,
43-
const mcu_pin_obj_t* write, const mcu_pin_obj_t* read, const mcu_pin_obj_t* reset, uint32_t frequency) {
41+
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t *self,
42+
const mcu_pin_obj_t *data0, const mcu_pin_obj_t *command, const mcu_pin_obj_t *chip_select,
43+
const mcu_pin_obj_t *write, const mcu_pin_obj_t *read, const mcu_pin_obj_t *reset, uint32_t frequency) {
4444

4545
uint8_t data_pin = data0->number;
4646
if (data_pin % 8 != 0) {

ports/mimxrt10xx/common-hal/displayio/ParallelBus.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
#include "shared-bindings/digitalio/DigitalInOut.h"
3434
#include "shared-bindings/microcontroller/__init__.h"
3535

36-
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* self,
37-
const mcu_pin_obj_t* data0, const mcu_pin_obj_t* command, const mcu_pin_obj_t* chip_select,
38-
const mcu_pin_obj_t* write, const mcu_pin_obj_t* read, const mcu_pin_obj_t* reset, uint32_t frequency) {
36+
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t *self,
37+
const mcu_pin_obj_t *data0, const mcu_pin_obj_t *command, const mcu_pin_obj_t *chip_select,
38+
const mcu_pin_obj_t *write, const mcu_pin_obj_t *read, const mcu_pin_obj_t *reset, uint32_t frequency) {
3939

4040
mp_raise_NotImplementedError(translate("ParallelBus not yet supported"));
4141
}

ports/nrf/common-hal/displayio/ParallelBus.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2222
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
* THE SOFTWARE.
24+
* THE SOFTWARE .
2525
*/
2626

2727
#include "shared-bindings/displayio/ParallelBus.h"
@@ -33,9 +33,9 @@
3333
#include "shared-bindings/digitalio/DigitalInOut.h"
3434
#include "shared-bindings/microcontroller/__init__.h"
3535

36-
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* self,
37-
const mcu_pin_obj_t* data0, const mcu_pin_obj_t* command, const mcu_pin_obj_t* chip_select,
38-
const mcu_pin_obj_t* write, const mcu_pin_obj_t* read, const mcu_pin_obj_t* reset, uint32_t frequency) {
36+
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t *self,
37+
const mcu_pin_obj_t *data0, const mcu_pin_obj_t *command, const mcu_pin_obj_t *chip_select,
38+
const mcu_pin_obj_t *write, const mcu_pin_obj_t *read, const mcu_pin_obj_t *reset, uint32_t frequency) {
3939

4040
uint8_t data_pin = data0->number;
4141
if (data_pin % 8 != 0) {

ports/stm/common-hal/displayio/ParallelBus.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2222
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
* THE SOFTWARE.
24+
* THE SOFTWARE .
2525
*/
2626

2727
#include "shared-bindings/displayio/ParallelBus.h"
@@ -33,9 +33,9 @@
3333
#include "shared-bindings/digitalio/DigitalInOut.h"
3434
#include "shared-bindings/microcontroller/__init__.h"
3535

36-
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* self,
37-
const mcu_pin_obj_t* data0, const mcu_pin_obj_t* command, const mcu_pin_obj_t* chip_select,
38-
const mcu_pin_obj_t* write, const mcu_pin_obj_t* read, const mcu_pin_obj_t* reset, uint32_t frequency) {
36+
void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t *self,
37+
const mcu_pin_obj_t *data0, const mcu_pin_obj_t *command, const mcu_pin_obj_t *chip_select,
38+
const mcu_pin_obj_t *write, const mcu_pin_obj_t *read, const mcu_pin_obj_t *reset, uint32_t frequency) {
3939

4040
mp_raise_NotImplementedError(translate("ParallelBus not yet supported"));
4141
}

0 commit comments

Comments
 (0)