- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# chip/at32uc3a3/include/chip/usart.h

Go to the documentation of this file.

    00001
    00041 #ifndef CHIP_USART_H_INCLUDED
    00042 #define CHIP_USART_H_INCLUDED
    00043
    00044 #include <chip/memory-map.h>
    00045 #include <stddef.h>
    00046
    00055 static inline void *get_usart_regs(unsigned int id)
    00056 {
    00057         switch (id) {
    00058         case 0:
    00059                 return (void *)USART0_BASE;
    00060         case 1:
    00061                 return (void *)USART1_BASE;
    00062         case 2:
    00063                 return (void *)USART2_BASE;
    00064         case 3:
    00065                 return (void *)USART3_BASE;
    00066         default:
    00067                 return NULL;
    00068         }
    00069 }
    00070
    00071 #endif /* CHIP_USART_H_INCLUDED */