pru: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c3eb976119
commit
7c50bd89cf
|
@ -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=®s->cleardataout, .bit=bit };
|
struct gpio_out rv = (struct gpio_out){.reg=®s->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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue