Skip to content

Commit 5101cb6

Browse files
committed
Code formatting and linting
1 parent 570f073 commit 5101cb6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

firmware/chipignite/polysat/include/gpio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
/* Begin function prototype declarations */
1616

17-
1817
bool valid_pin(uint32_t pin);
1918
void gpio_set(uint32_t pin, bool value);
2019
void gpio_clear(uint32_t pin);

firmware/chipignite/polysat/src/polysat.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "../include/slip.h"
55
#include "../include/uart.h"
66
#include "../include/gpio.h"
7+
78
// --------------------------------------------------------
89
// Firmware routines
910
// --------------------------------------------------------
@@ -75,13 +76,12 @@ void configure_io() {
7576
reg_mprj_io_30 = GPIO_MODE_MGMT_STD_INPUT_PULLUP; // High
7677
reg_mprj_io_31 = GPIO_MODE_MGMT_STD_INPUT_PULLDOWN; // Low
7778
reg_mprj_io_32 = GPIO_MODE_MGMT_STD_INPUT_PULLUP; // High
78-
reg_mprj_io_33 = GPIO_MODE_MGMT_STD_OUTPUT; //
79+
reg_mprj_io_33 = GPIO_MODE_MGMT_STD_OUTPUT; // Controlled by the code
7980
reg_mprj_io_34 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
8081
reg_mprj_io_35 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
8182
reg_mprj_io_36 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
8283
reg_mprj_io_37 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
8384

84-
8585
// Initialize UART
8686
uart_init();
8787

@@ -154,8 +154,9 @@ void main() {
154154
// // Check if data is available to read
155155
// if (uart_read_available()) {
156156
// // Read and echo back the character
157-
// uint8_t c = uart_read();
158-
// uart_write(c);
157+
// uint8_t ch = uart_read();
158+
// uart_write(ch);
159+
// slip_send_packet(c, 1, SLIP_CMD_DATA, uart_write);
159160
// }
160161

161162
if (!pulse) {

0 commit comments

Comments
 (0)