Skip to content

Commit

Permalink
final scons format + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed May 11, 2024
1 parent 6439a44 commit 97e7d25
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions projects/gpio_interrupts/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include "FreeRTOS.h"
#include "delay.h"
#include "gpio.h"
#include "gpio_it.h"
#include "interrupt.h"
#include "log.h"
#include "tasks.h"
#include "interrupt.h"
#include "gpio_it.h"

#define BTN_INT_EVENT 5

Expand All @@ -31,19 +31,14 @@ GpioAddress addr4 = {
.pin = 15,
};

GpioAddress buttonAddress = {
.port = GPIO_PORT_A,
.pin = 7
};
GpioAddress buttonAddress = { .port = GPIO_PORT_A, .pin = 7 };

InterruptSettings led_interrupt = {
.priority = INTERRUPT_PRIORITY_NORMAL,
.type = INTERRUPT_TYPE_INTERRUPT,
.edge = INTERRUPT_EDGE_RISING
};
InterruptSettings led_interrupt = { .priority = INTERRUPT_PRIORITY_NORMAL,
.type = INTERRUPT_TYPE_INTERRUPT,
.edge = INTERRUPT_EDGE_RISING };

TASK(GPIO_LED, TASK_STACK_512) {
gpio_init_pin(&buttonAddress, GPIO_INPUT_PULL_DOWN , GPIO_STATE_LOW);
gpio_init_pin(&buttonAddress, GPIO_INPUT_PULL_DOWN, GPIO_STATE_LOW);
gpio_init_pin(&addr1, GPIO_OUTPUT_PUSH_PULL, GPIO_STATE_LOW);
gpio_init_pin(&addr2, GPIO_OUTPUT_PUSH_PULL, GPIO_STATE_LOW);
gpio_init_pin(&addr3, GPIO_OUTPUT_PUSH_PULL, GPIO_STATE_LOW);
Expand Down

0 comments on commit 97e7d25

Please sign in to comment.