pru: Wrap code to 80 columns

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-02-27 14:16:58 -05:00
parent c3eb976119
commit 7c50bd89cf
2 changed files with 22 additions and 21 deletions

View File

@ -94,7 +94,7 @@ gpio_out_setup(uint8_t pin, uint8_t val)
goto fail; goto fail;
struct gpio_regs *regs = digital_regs[GPIO2PORT(pin)]; struct gpio_regs *regs = digital_regs[GPIO2PORT(pin)];
uint32_t bit = GPIO2BIT(pin); uint32_t bit = GPIO2BIT(pin);
struct gpio_out rv = (struct gpio_out){ .reg=&regs->cleardataout, .bit=bit }; struct gpio_out rv = (struct gpio_out){.reg=&regs->cleardataout, .bit=bit};
gpio_out_write(rv, val); gpio_out_write(rv, val);
regs->oe &= ~bit; regs->oe &= ~bit;
*MUXREG(mux_offset) = 0x0f; *MUXREG(mux_offset) = 0x0f;

View File

@ -163,7 +163,8 @@ static void
process_io(void) process_io(void)
{ {
for (;;) { for (;;) {
CT_INTC.SECR0 = (1 << KICK_PRU0_FROM_ARM_EVENT) | (1 << KICK_PRU0_EVENT); CT_INTC.SECR0 = ((1 << KICK_PRU0_FROM_ARM_EVENT)
| (1 << KICK_PRU0_EVENT));
check_can_send(); check_can_send();
int can_sleep = check_can_read(); int can_sleep = check_can_read();
if (can_sleep) { if (can_sleep) {
@ -278,7 +279,7 @@ struct my_resource_table {
(uint32_t)TYPE_VDEV, //type (uint32_t)TYPE_VDEV, //type
(uint32_t)VIRTIO_ID_RPMSG, //id (uint32_t)VIRTIO_ID_RPMSG, //id
(uint32_t)0, //notifyid (uint32_t)0, //notifyid
(uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures (uint32_t)RPMSG_PRU_C0_FEATURES,//dfeatures
(uint32_t)0, //gfeatures (uint32_t)0, //gfeatures
(uint32_t)0, //config_len (uint32_t)0, //config_len
(uint8_t)0, //status (uint8_t)0, //status