Mercurial > nand-ecoscentric
changeset 244:b558d7de4fda
Fix SCC1 initialization error - failed on powerup.
| author | gthomas |
|---|---|
| date | Thu, 18 Jul 2002 16:00:36 +0000 |
| parents | 52e104cb3184 |
| children | a6660704f7a6 |
| files | packages/hal/powerpc/quicc/current/ChangeLog packages/hal/powerpc/quicc/current/src/quicc_smc1.c |
| diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/hal/powerpc/quicc/current/ChangeLog +++ b/packages/hal/powerpc/quicc/current/ChangeLog @@ -1,3 +1,8 @@ +2002-07-18 Gary Thomas <gary@chez-thomas.org> + + * src/quicc_smc1.c (cyg_hal_scc1_init_channel): Fix init which + failed from power-up - wrong channel in CP command! + 2002-07-11 Gary Thomas <gary@chez-thomas.org> * src/quicc_smc1.c:
--- a/packages/hal/powerpc/quicc/current/src/quicc_smc1.c +++ b/packages/hal/powerpc/quicc/current/src/quicc_smc1.c @@ -245,7 +245,7 @@ cyg_hal_smc1_init_channel(struct port_in /* * Init Rx & Tx params for SMC1 */ - eppc->cp_cr = 0x91; + eppc->cp_cr = QUICC_CPM_CR_INIT_TXRX | QUICC_CPM_SMC1 | QUICC_CPM_CR_BUSY; info->irq = 0; // Interrupts not enabled #ifndef CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT // remove below @@ -650,7 +650,7 @@ cyg_hal_scc1_init_channel(struct port_in /* * Init Rx & Tx params for SCC1 */ - eppc->cp_cr = 0x41; + eppc->cp_cr = QUICC_CPM_CR_INIT_TXRX | QUICC_CPM_SCC1 | QUICC_CPM_CR_BUSY; /* * Clear any previous events. Mask interrupts.
