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 @@ -44,7 +44,7 @@ show_projectid:
4444# ---- Clean ----
4545
4646clean :
47- rm -f $(PROJECT ) .elf $(PROJECT ) .hex $(PROJECT ) .bin $(PROJECT ) .lst * .vvp * .vcd
47+ rm -f $(PROJECT ) .elf $(PROJECT ) .hex $(PROJECT ) .hexe $( PROJECT ) . bin $(PROJECT ) .lst * .vvp * .vcd
4848
4949.PHONY : clean hex all flash
5050
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ void configure_io() {
7474 reg_mprj_io_27 = GPIO_MODE_MGMT_STD_INPUT_NOPULL ;
7575 reg_mprj_io_28 = GPIO_MODE_MGMT_STD_INPUT_NOPULL ;
7676 reg_mprj_io_29 = GPIO_MODE_MGMT_STD_INPUT_NOPULL ;
77- reg_mprj_io_30 = GPIO_MODE_MGMT_STD_INPUT_PULLUP ; // High
78- reg_mprj_io_31 = GPIO_MODE_MGMT_STD_INPUT_PULLDOWN ; // Low
79- reg_mprj_io_32 = GPIO_MODE_MGMT_STD_INPUT_PULLUP ; // High
77+ reg_mprj_io_30 = GPIO_MODE_MGMT_STD_OUTPUT ; // Controlled by the code
78+ reg_mprj_io_31 = GPIO_MODE_MGMT_STD_OUTPUT ; // Controlled by the code
79+ reg_mprj_io_32 = GPIO_MODE_MGMT_STD_OUTPUT ; // Controlled by the code
8080 reg_mprj_io_33 = GPIO_MODE_MGMT_STD_OUTPUT ; // Controlled by the code
8181 reg_mprj_io_34 = GPIO_MODE_MGMT_STD_INPUT_NOPULL ;
8282 reg_mprj_io_35 = GPIO_MODE_MGMT_STD_INPUT_NOPULL ;
@@ -156,13 +156,11 @@ void main() {
156156 // Main loop - echo received characters and blink LED and
157157 while (true) {
158158 if (!pulse ) {
159- led_off ();
160- // Set GPIO 33 low (bit 1)
161- gpio_clear (33 );
159+ reg_mprj_datah = 0x00000000 ; // Set all high pins (32-37) low
160+ reg_mprj_datal = 0x00000000 ; // Set all low pins (0-31) low
162161 } else {
163- led_on ();
164- // Set GPIO 33 high (bit 1)
165- gpio_set (33 , true);
162+ reg_mprj_datah = 0xFFFFFFFF ; // Set all high pins (32-37) high
163+ reg_mprj_datal = 0xFFFFFFFF ; // Set all low pins (0-31) high
166164 }
167165 pulse = !pulse ;
168166
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ in pkgs.mkShell {
2929 pkgs . gnumake
3030 pkgs . python3 # Useful for any build scripts
3131 pythonPackages . pyftdi
32+ pkgs . busybox
3233 ] ;
3334
3435 # Set up environment variables
You can’t perform that action at this time.
0 commit comments