mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-27 16:19:20 +08:00
grspw: Fix typos
This commit is contained in:
committed by
Daniel Hellstrom
parent
8244a2f447
commit
5efbb6619c
@@ -1379,8 +1379,8 @@ static int grspw_hw_init(GRSPW_DEV *pDev) {
|
|||||||
pDev->rx = (SPACEWIRE_RXBD *) pDev->mem_bdtable;
|
pDev->rx = (SPACEWIRE_RXBD *) pDev->mem_bdtable;
|
||||||
pDev->tx = (SPACEWIRE_RXBD *) pDev->mem_bdtable + SPACEWIRE_BDTABLE_SIZE;
|
pDev->tx = (SPACEWIRE_RXBD *) pDev->mem_bdtable + SPACEWIRE_BDTABLE_SIZE;
|
||||||
#else
|
#else
|
||||||
pDev->rx = (SPACEWIRE_RXBD *) rtems_heap_allocate_aligned_with_boundry( SPACEWIRE_BDTABLE_SIZE, 1024, 0 );
|
pDev->rx = (SPACEWIRE_RXBD *) rtems_heap_allocate_aligned_with_boundary( SPACEWIRE_BDTABLE_SIZE, 1024, 0 );
|
||||||
pDev->tx = (SPACEWIRE_TXBD *) rtems_heap_allocate_aligned_with_boundry( SPACEWIRE_BDTABLE_SIZE, 1024, 0 );
|
pDev->tx = (SPACEWIRE_TXBD *) rtems_heap_allocate_aligned_with_boundary( SPACEWIRE_BDTABLE_SIZE, 1024, 0 );
|
||||||
#endif
|
#endif
|
||||||
SPACEWIRE_DBG("hw_init [minor %i]\n", pDev->minor);
|
SPACEWIRE_DBG("hw_init [minor %i]\n", pDev->minor);
|
||||||
|
|
||||||
@@ -1423,7 +1423,7 @@ static void grspw_hw_reset(GRSPW_DEV *pDev)
|
|||||||
SPW_CTRL_WRITE(pDev, SPW_CTRL_LINKSTART); /*start link core*/
|
SPW_CTRL_WRITE(pDev, SPW_CTRL_LINKSTART); /*start link core*/
|
||||||
#ifndef GRSPW_STATIC_MEM
|
#ifndef GRSPW_STATIC_MEM
|
||||||
free(pDev->rx);
|
free(pDev->rx);
|
||||||
free(pDec->tx);
|
free(pDev->tx);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user