aboutsummaryrefslogtreecommitdiffstats
path: root/src/pru
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-27 14:16:58 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-27 14:20:15 -0500
commit7c50bd89cffaa6899c963305d5aea8418b23f51b (patch)
tree960c6d8b026517063a2dc62efa2fa95242cab897 /src/pru
parentc3eb97611900c3ebacf943ad232ba318645e84ce (diff)
downloadkutter-7c50bd89cffaa6899c963305d5aea8418b23f51b.tar.gz
kutter-7c50bd89cffaa6899c963305d5aea8418b23f51b.tar.xz
kutter-7c50bd89cffaa6899c963305d5aea8418b23f51b.zip
pru: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pru')
-rw-r--r--src/pru/gpio.c2
-rw-r--r--src/pru/pru0.c41
2 files changed, 22 insertions, 21 deletions
diff --git a/src/pru/gpio.c b/src/pru/gpio.c
index 0a641639..79b313ad 100644
--- a/src/pru/gpio.c
+++ b/src/pru/gpio.c
@@ -94,7 +94,7 @@ gpio_out_setup(uint8_t pin, uint8_t val)
goto fail;
struct gpio_regs *regs = digital_regs[GPIO2PORT(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);
regs->oe &= ~bit;
*MUXREG(mux_offset) = 0x0f;
diff --git a/src/pru/pru0.c b/src/pru/pru0.c
index 4b60af27..266b9b1f 100644
--- a/src/pru/pru0.c
+++ b/src/pru/pru0.c
@@ -163,7 +163,8 @@ static void
process_io(void)
{
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();
int can_sleep = check_can_read();
if (can_sleep) {
@@ -275,31 +276,31 @@ struct my_resource_table {
/* rpmsg vdev entry */
{
- (uint32_t)TYPE_VDEV, //type
- (uint32_t)VIRTIO_ID_RPMSG, //id
- (uint32_t)0, //notifyid
- (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures
- (uint32_t)0, //gfeatures
- (uint32_t)0, //config_len
- (uint8_t)0, //status
- (uint8_t)2, //num_of_vrings, only two is supported
- {(uint8_t)0, (uint8_t)0 }, //reserved
+ (uint32_t)TYPE_VDEV, //type
+ (uint32_t)VIRTIO_ID_RPMSG, //id
+ (uint32_t)0, //notifyid
+ (uint32_t)RPMSG_PRU_C0_FEATURES,//dfeatures
+ (uint32_t)0, //gfeatures
+ (uint32_t)0, //config_len
+ (uint8_t)0, //status
+ (uint8_t)2, //num_of_vrings, only two is supported
+ {(uint8_t)0, (uint8_t)0 }, //reserved
/* no config data */
},
/* the two vrings */
{
- 0, //da, will be populated by host, can't pass it in
- 16, //align (bytes),
- PRU_RPMSG_VQ0_SIZE, //num of descriptors
- 0, //notifyid, will be populated, can't pass right now
- 0 //reserved
+ 0, //da, will be populated by host, can't pass it in
+ 16, //align (bytes),
+ PRU_RPMSG_VQ0_SIZE, //num of descriptors
+ 0, //notifyid, will be populated, can't pass right now
+ 0 //reserved
},
{
- 0, //da, will be populated by host, can't pass it in
- 16, //align (bytes),
- PRU_RPMSG_VQ1_SIZE, //num of descriptors
- 0, //notifyid, will be populated, can't pass right now
- 0 //reserved
+ 0, //da, will be populated by host, can't pass it in
+ 16, //align (bytes),
+ PRU_RPMSG_VQ1_SIZE, //num of descriptors
+ 0, //notifyid, will be populated, can't pass right now
+ 0 //reserved
},
{