_
This commit is contained in:
@@ -53,7 +53,7 @@ int main(void) {
|
||||
// TODO: enabling any kind of SysTick IRQ literally causes the socket to hang forever
|
||||
// with 1ms interval the hang is on DHCP_ACK, on check_DHCP_leasedIP -> sendto() ARP req
|
||||
// with 1s it happens somewhere on DNS req
|
||||
init_systick();
|
||||
// init_systick();
|
||||
tim2_init();
|
||||
|
||||
// systick irq enable here would complete the DHCP configuration and hang on DNS..
|
||||
|
||||
@@ -137,7 +137,7 @@ void init_spidma(void) {
|
||||
SPI_DataSize_8b | // 8-bit data frame format
|
||||
SPI_CPOL_Low | // Clock polarity
|
||||
SPI_CPHA_1Edge | // Clock phase
|
||||
SPI_BaudRatePrescaler_8 | // Baud rate prescaler
|
||||
SPI_BaudRatePrescaler_64 | // Baud rate prescaler
|
||||
SPI_NSS_Soft; // Software NSS management
|
||||
|
||||
// Enable TX and RX DMA
|
||||
|
||||
Reference in New Issue
Block a user