Skip to content

Commit

Permalink
firmware: take advantage of weak functions for default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mndza committed Jun 3, 2024
1 parent 0ee9034 commit 5a44bdb
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 369 deletions.
27 changes: 0 additions & 27 deletions firmware/src/boards/cynthion_d11/debug_spi.c

This file was deleted.

24 changes: 0 additions & 24 deletions firmware/src/boards/cynthion_d21/dfu.c

This file was deleted.

10 changes: 0 additions & 10 deletions firmware/src/boards/cynthion_d21/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ enum {
};


/*
* Allows or disallows the FPGA from configuring. When disallowed,
* initialization (erasing of configuration memory) takes place, but the FPGA
* does not proceed to the configuration phase.
*/
void permit_fpga_configuration(bool enable)
{
}


/**
* Sets up the I/O pins needed to configure the FPGA.
*/
Expand Down
38 changes: 0 additions & 38 deletions firmware/src/boards/cynthion_d21/fpga_adv.c

This file was deleted.

28 changes: 0 additions & 28 deletions firmware/src/boards/daisho/debug_spi.c

This file was deleted.

25 changes: 0 additions & 25 deletions firmware/src/boards/daisho/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ enum {
};


/*
* Allows or disallows the FPGA from configuring. When disallowed,
* initialization (erasing of configuration memory) takes place, but the FPGA
* does not proceed to the configuration phase.
*/
void permit_fpga_configuration(bool enable)
{
}


static void fpga_initialize_power(void)
{
gpio_t rail_enables[] = {
Expand Down Expand Up @@ -71,18 +61,3 @@ void fpga_io_init(void)
fpga_core_power_sequence();
board_delay(1000);
}


/**
* Requests that the FPGA clear its configuration and try to reconfigure.
*/
void trigger_fpga_reconfiguration(void)
{
// FIXME: TODO
}


void force_fpga_offline(void)
{
// FIXME: TODO
}
38 changes: 0 additions & 38 deletions firmware/src/boards/daisho/fpga_adv.c

This file was deleted.

36 changes: 0 additions & 36 deletions firmware/src/boards/qtpy/debug_spi.c

This file was deleted.

24 changes: 0 additions & 24 deletions firmware/src/boards/qtpy/dfu.c

This file was deleted.

10 changes: 0 additions & 10 deletions firmware/src/boards/qtpy/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ enum {
#endif


/*
* Allows or disallows the FPGA from configuring. When disallowed,
* initialization (erasing of configuration memory) takes place, but the FPGA
* does not proceed to the configuration phase.
*/
void permit_fpga_configuration(bool enable)
{
}


/**
* Sets up the I/O pins needed to configure the FPGA.
*/
Expand Down
29 changes: 0 additions & 29 deletions firmware/src/boards/samd11_xplained/debug_spi.c

This file was deleted.

24 changes: 0 additions & 24 deletions firmware/src/boards/samd11_xplained/dfu.c

This file was deleted.

10 changes: 0 additions & 10 deletions firmware/src/boards/samd11_xplained/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ enum {
};


/*
* Allows or disallows the FPGA from configuring. When disallowed,
* initialization (erasing of configuration memory) takes place, but the FPGA
* does not proceed to the configuration phase.
*/
void permit_fpga_configuration(bool enable)
{
}


/**
* Sets up the I/O pins needed to configure the FPGA.
*/
Expand Down
Loading

0 comments on commit 5a44bdb

Please sign in to comment.