Add ssc pins definition for sam3 family.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Jun 2011 09:00:45 +0000 (09:00 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Jun 2011 09:00:45 +0000 (09:00 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4949 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/sam3.h

index 24fefc007b81312d30fefdfba4585f8952063977..8b69cb4480fe2b878ab2875415d8cce2f239c925 100644 (file)
 
 #if CPU_CM3_SAM3X
        #define SSC_PORT            PIOA_BASE
+       #define SSC_PIO_PDR         PIOA_PDR
        #define SSC_RECV_PERIPH     PIO_PERIPH_A
        #define SSC_TRAN_PERIPH     PIO_PERIPH_B
        #define SSC_RD              18
        #define SSC_TD              16
        #define SSC_TF              15
        #define SSC_TK              14
+#elif CPU_CM3_SAM3N
+       #define SSC_PORT            /* None! */
+       #define SSC_PIO_PDR         /* None! */
+       #define SSC_RECV_PERIPH     /* None! */
+       #define SSC_TRAN_PERIPH     /* None! */
+       #define SSC_RD              /* None! */
+       #define SSC_RF              /* None! */
+       #define SSC_RK              /* None! */
+       #define SSC_TD              /* None! */
+       #define SSC_TF              /* None! */
+       #define SSC_TK              /* None! */
+#elif CPU_CM3_SAM3S
+       #define SSC_PORT            PIOA_BASE
+       #define SSC_PIO_PDR         PIOA_PDR
+       #define SSC_RECV_PERIPH     PIO_PERIPH_A
+       #define SSC_TRAN_PERIPH     PIO_PERIPH_A
+       #define SSC_RD              18
+       #define SSC_RF              20
+       #define SSC_RK              19
+       #define SSC_TD              17
+       #define SSC_TF              15
+       #define SSC_TK              16
+#elif CPU_CM3_SAM3U
+       #define SSC_PORT            PIOA_BASE
+       #define SSC_PIO_PDR         PIOA_PDR
+       #define SSC_RECV_PERIPH     PIO_PERIPH_A
+       #define SSC_TRAN_PERIPH     PIO_PERIPH_A
+       #define SSC_RD              27
+       #define SSC_RF              31
+       #define SSC_RK              29
+       #define SSC_TD              26
+       #define SSC_TF              30
+       #define SSC_TK              28
 #else
        #error no ssc pins are defined for this cpu
 #endif