remove obsolete code
This commit is contained in:
parent
07c068cae2
commit
46e19fb4b6
2 changed files with 3 additions and 10 deletions
|
@ -626,13 +626,7 @@ err_t rckemacif_init(struct netif* netif)
|
|||
/* Depending on core location read own private data
|
||||
* (offset, subdest, route)
|
||||
*/
|
||||
if (z == 0) {
|
||||
tmp = ReadConfigReg(CRB_OWN + LUT0);
|
||||
rckemacif->irq_address = (void*) (CRB_OWN + GLCFG0);
|
||||
} else {
|
||||
tmp = ReadConfigReg(CRB_OWN + LUT1);
|
||||
rckemacif->irq_address = (void*) (CRB_OWN + GLCFG1);
|
||||
}
|
||||
tmp = z == 0 ? ReadConfigReg(CRB_OWN + LUT0) : ReadConfigReg(CRB_OWN + LUT1);
|
||||
tile_offset = (uint64_t)((uint64_t) tmp & 0x3FF) << 24;
|
||||
subdest = (tmp >> 10) & 0x07;
|
||||
route = (tmp >> 13) & 0xFF;
|
||||
|
|
|
@ -37,9 +37,8 @@ typedef struct rckemacif {
|
|||
uint32_t rx_buffer_max;
|
||||
uint32_t rx_read_offset;
|
||||
uint8_t* tx_buffer;
|
||||
uint32_t tx_buffer_max;
|
||||
uint32_t tx_write_offset;
|
||||
void* irq_address;
|
||||
uint32_t tx_buffer_max;
|
||||
uint32_t tx_write_offset;
|
||||
uint32_t core;
|
||||
uint32_t num_emac;
|
||||
volatile uint8_t polling;
|
||||
|
|
Loading…
Add table
Reference in a new issue