pull/11692/merge
dps.lwk 2024-03-16 09:46:18 +08:00 zatwierdzone przez GitHub
commit 36f8f661b1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -211,7 +211,11 @@ static void wiznet5k_init(void) {
// Configure wiznet for raw ethernet frame usage.
// Configure 16k buffers for fast MACRAW
#if _WIZCHIP_ < W5200
uint8_t sn_size[8] = {8, 0, 0, 0, 8, 0, 0, 0}; // 8k buffers on W5100 and W5100S
#else
uint8_t sn_size[16] = {16, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0};
#endif
ctlwizchip(CW_INIT_WIZCHIP, sn_size);
if (wiznet5k_obj.use_interrupt) {
@ -221,7 +225,7 @@ static void wiznet5k_init(void) {
setSn_IMR(0, Sn_IR_RECV);
#if _WIZCHIP_ == W5100S
// Enable interrupt pin
setMR(MR2_G_IEN);
setMR2(MR2_G_IEN);
#endif
mp_hal_pin_input(wiznet5k_obj.pin_intn);