[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart
HplPXA27xUARTP.nc, 1.1.2.1, 1.1.2.2
Philip Buonadonna
philipb at users.sourceforge.net
Wed Jul 12 14:36:59 PDT 2006
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart
HplPXA27xSTUARTP.nc, 1.1.2.2, NONE
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart
HalPXA27xSerialCntl.nc, 1.1.2.1, 1.1.2.2 HalPXA27xSerialP.nc,
1.1.2.2, 1.1.2.3 HplPXA27xBTUARTC.nc, 1.1.2.1,
1.1.2.2 HplPXA27xFFUARTC.nc, 1.1.2.1,
1.1.2.2 HplPXA27xSTUARTC.nc, 1.1.2.2,
1.1.2.3 HplPXA27xUARTP.nc, 1.1.2.2, 1.1.2.3 PXA27X_UARTREG.h,
1.1.2.1, 1.1.2.2 pxa27x_serial.h, 1.1.2.1, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/uart
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25081
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
HplPXA27xUARTP.nc
Log Message:
Index: HplPXA27xUARTP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/uart/Attic/HplPXA27xUARTP.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** HplPXA27xUARTP.nc 12 Jul 2006 19:10:00 -0000 1.1.2.1
--- HplPXA27xUARTP.nc 12 Jul 2006 21:36:57 -0000 1.1.2.2
***************
*** 31,35 ****
/**
* Provides low-level initialization, 1st level interrupt dispatch and register
! * access to the STUART.
* This component automatically handles setting of the DLAB bit for
* divisor register access (DLL and DLH)
--- 31,39 ----
/**
* Provides low-level initialization, 1st level interrupt dispatch and register
! * access for the different uarts. It is a generic that's bound to
! * the particular UART upon creation.
! *
! * @param baseaddr. The base address of the associated uart. One of
! * &FFRBR, &BTRBR or &STRBR.
* This component automatically handles setting of the DLAB bit for
* divisor register access (DLL and DLH)
***************
*** 38,46 ****
*/
! module HplPXA27xSTUARTP
{
provides interface Init;
! provides interface HplPXA27xUART as STUART;
! uses interface HplPXA27xInterrupt as STUARTIrq;
}
--- 42,52 ----
*/
! #include "PXA27X_UARTREG.h"
!
! generic module HplPXA27xUARTP{uint32_t base_addr)
{
provides interface Init;
! provides interface HplPXA27xUART as UART;
! uses interface HplPXA27xInterrupt as UARTIrq;
}
***************
*** 58,68 ****
if (!isInited) {
! CKEN |= CKEN5_STUART;
! call STUARTIrq.allocate();
! call STUARTIrq.enable();
! STLCR |= LCR_DLAB;
! STDLL = 0x04;
! STDLH = 0x00;
! STLCR &= ~LCR_DLAB;
}
--- 64,86 ----
if (!isInited) {
! switch (uartid) {
! case (0x40100000):
! CKEN |= CKEN6_FFUART;
! break;
! case (0x40200000):
! CKEN |= CKEN7_BTUART;
! break;
! case (0x40700000):
! CKEN |= CKEN5_STUART;
! break;
! default:
! breakt;
! }
! call UARTIrq.allocate();
! call UARTIrq.enable();
! UARTLCR(base_addr) |= LCR_DLAB;
! UARTDLL(base_addr) = 0x04;
! UARTDLH(base_addr) = 0x00;
! UARTLCR(base_addr) &= ~LCR_DLAB;
}
***************
*** 70,125 ****
}
! async command uint32_t STUART.getRBR() { return STRBR; }
! async command void STUART.setTHR(uint32_t val) { STRBR = val; }
! async command void STUART.setDLL(uint32_t val) {
! STLCR |= LCR_DLAB;
! STDLL = val;
! STLCR &= ~LCR_DLAB;
}
! async command uint32_t STUART.getDLL() {
uint32_t val;
! STLCR |= LCR_DLAB;
! val = STDLL;
! STLCR &= ~LCR_DLAB;
return val;
}
! async command void STUART.setDLH(uint32_t val) {
! STLCR |= LCR_DLAB;
! STDLH = val;
! STLCR &= ~LCR_DLAB;
}
! async command uint32_t STUART.getDLH() {
uint32_t val;
! STLCR |= LCR_DLAB;
! val = STDLH;
! STLCR &= ~LCR_DLAB;
return val;
}
! async command void STUART.setIER(uint32_t val) { STIER = val; }
! async command uint32_t STUART.getIER() { return STIER; }
! async command uint32_t STUART.getIIR() { return STIIR; }
! async command void STUART.setFCR(uint32_t val) { STFCR = val; }
! async command void STUART.setLCR(uint32_t val) { STLCR = val; }
! async command uint32_t STUART.getLCR() { return STLCR; }
! async command void STUART.setMCR(uint32_t val) { STMCR = val; }
! async command uint32_t STUART.getMCR() { return STMCR; }
! async command uint32_t STUART.getLSR() { return STLSR; }
! async command uint32_t STUART.getMSR() { return STMSR; }
! async command void STUART.setSPR(uint32_t val) { STSPR = val; }
! async command uint32_t STUART.getSPR() { return STSPR; }
! async command void STUART.setISR(uint32_t val) { STISR = val; }
! async command uint32_t STUART.getISR() { return STISR; }
! async command void STUART.setFOR(uint32_t val) { STFOR = val; }
! async command uint32_t STUART.getFOR() { return STFOR; }
! async command void STUART.setABR(uint32_t val) { STABR = val; }
! async command uint32_t STUART.getABR() { return STABR; }
! async command uint32_t STUART.getACR() { return STACR; }
! async event void STUARTIrq.fired () {
! signal STUART.interruptUART();
}
! default async event void STUART.interruptUART() { return; }
}
--- 88,143 ----
}
! async command uint32_t UART.getRBR() { return UARTRBR(base_addr); }
! async command void UART.setTHR(uint32_t val) { UARTTHR(base_addr) = val; }
! async command void UART.setDLL(uint32_t val) {
! UARTLCR(base_addr) |= LCR_DLAB;
! UARTDLL(base_addr) = val;
! UARTLCR(base_addr) &= ~LCR_DLAB;
}
! async command uint32_t UART.getDLL() {
uint32_t val;
! UARTLCR(base_addr) |= LCR_DLAB;
! val = UARTDLL(base_addr);
! UARTLCR(base_addr) &= ~LCR_DLAB;
return val;
}
! async command void UART.setDLH(uint32_t val) {
! UARTLCR(base_addr) |= LCR_DLAB;
! UARTDLH(base_addr) = val;
! UARTLCR(base_addr) &= ~LCR_DLAB;
}
! async command uint32_t UART.getDLH() {
uint32_t val;
! UARTLCR(base_addr) |= LCR_DLAB;
! val = UARTDLH(base_addr);
! UARTLCR(base_addr) &= ~LCR_DLAB;
return val;
}
! async command void UART.setIER(uint32_t val) { UARTIER(base_addr) = val; }
! async command uint32_t UART.getIER() { return UARTIER(base_addr); }
! async command uint32_t UART.getIIR() { return UARTIIR(base_addr); }
! async command void UART.setFCR(uint32_t val) { UARTFCR(base_addr) = val; }
! async command void UART.setLCR(uint32_t val) { UARTLCR(base_addr) = val; }
! async command uint32_t UART.getLCR() { return UARTLCR(base_addr); }
! async command void UART.setMCR(uint32_t val) { UARTMCR(base_addr) = val; }
! async command uint32_t UART.getMCR() { return UARTMCR(base_addr); }
! async command uint32_t UART.getLSR() { return UARTLSR(base_addr); }
! async command uint32_t UART.getMSR() { return UARTMSR(base_addr); }
! async command void UART.setSPR(uint32_t val) { UARTSPR(base_addr) = val; }
! async command uint32_t UART.getSPR() { return UARTSPR(base_addr); }
! async command void UART.setISR(uint32_t val) { UARTISR(base_addr) = val; }
! async command uint32_t UART.getISR() { return UARTISR(base_addr); }
! async command void UART.setFOR(uint32_t val) { UARTFOR(base_addr) = val; }
! async command uint32_t UART.getFOR() { return UARTFOR(base_addr); }
! async command void UART.setABR(uint32_t val) { UARTABR(base_addr) = val; }
! async command uint32_t UART.getABR() { return UARTABR(base_addr); }
! async command uint32_t UART.getACR() { return UARTACR(base_addr); }
! async event void UARTIrq.fired () {
! signal UART.interruptUART();
}
! default async event void UART.interruptUART() { return; }
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart
HplPXA27xSTUARTP.nc, 1.1.2.2, NONE
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart
HalPXA27xSerialCntl.nc, 1.1.2.1, 1.1.2.2 HalPXA27xSerialP.nc,
1.1.2.2, 1.1.2.3 HplPXA27xBTUARTC.nc, 1.1.2.1,
1.1.2.2 HplPXA27xFFUARTC.nc, 1.1.2.1,
1.1.2.2 HplPXA27xSTUARTC.nc, 1.1.2.2,
1.1.2.3 HplPXA27xUARTP.nc, 1.1.2.2, 1.1.2.3 PXA27X_UARTREG.h,
1.1.2.1, 1.1.2.2 pxa27x_serial.h, 1.1.2.1, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list