Skip to content

Commit

Permalink
bsp/olimex-pic32-hmz144: MII/RMII setup for ETH
Browse files Browse the repository at this point in the history
Change adds config options for ethernet.
  • Loading branch information
kasjer committed Oct 3, 2022
1 parent 7eeb461 commit 9509164
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hw/bsp/olimex-pic32-hmz144/src/hal_bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@
*/
#pragma config WINDIS=1, WDTSPGM=1, WDTPS=15

#if MYNEWT_VAL(ETH_0)
#if MYNEWT_VAL_CHOICE(PIC32_ETH_0_PHY_ITF, RMII)
#pragma config FMIIEN=OFF
#else
#pragma config FMIIEN=ON
#endif

#if MYNEWT_VAL(PIC32_ETH_0_PHY_ALT_PINS)
#pragma config FETHIO=OFF
#else
#pragma config FETHIO=ON
#endif
#endif

#endif

#if MYNEWT_VAL(SPIFLASH)
Expand Down

0 comments on commit 9509164

Please sign in to comment.