File tree Expand file tree Collapse file tree
firmware/chipignite/polysat Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515/* Begin function prototype declarations */
1616
17-
1817bool valid_pin (uint32_t pin );
1918void gpio_set (uint32_t pin , bool value );
2019void gpio_clear (uint32_t pin );
Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments