OSDN Git Service

(none)
authorryuz <ryuz>
Sun, 8 Feb 2009 03:05:07 +0000 (03:05 +0000)
committerryuz <ryuz>
Sun, 8 Feb 2009 03:05:07 +0000 (03:05 +0000)
sample/mips/jelly/gcc/ram.lds
sample/mips/jelly/gcc/rom.lds
sample/mips/jelly/main.c
sample/mips/jelly/sample.c
sample/mips/jelly/system.cfg

index ff95e29..ef3e50c 100755 (executable)
@@ -4,7 +4,7 @@ ENTRY(_reset_handler)
 MEMORY
 {
        rom    : o = 0x00000000, l = 0x00010000
-       ram    : o = 0x00010000, l = 0x00010000
+       ram    : o = 0x00010000, l = 0x00001000
 }
 
 SECTIONS
index 34554ed..39feb1a 100755 (executable)
@@ -4,7 +4,7 @@ ENTRY(_reset_handler)
 MEMORY
 {
        rom    : o = 0x00000000, l = 0x00010000
-       ram    : o = 0x01000000, l = 0x00002000
+       ram    : o = 0x01000000, l = 0x00001000
 }
 
 SECTIONS
index 57cd2b7..4f7a4fd 100755 (executable)
@@ -12,7 +12,6 @@
 #include "kernel.h"
 #include "uart.h"
 
-#define SDRAM  ((volatile UW*)0x02000000)
 
 
 /** %jp{メイン関数} */
index 7421ea0..aed284f 100755 (executable)
 #define RIGHT(num)     ((num) >= 5 ? 1 : (num) + 1)
 
 
-/** %jp{メッセージ構造体} */
-typedef struct t_print_msg
-{
-       T_MSG msg;
-       char  text[32];
-} T_PRINT_MSG;
-
-
 /** %jp{初期化ハンドラ} */
 void Sample_Initialize(VP_INT exinf)
 {
-       T_CMPF cmpf;
-       T_CMBX cmbx;
-       
        /* %jp{UART初期化} */
        Uart_Initialize();
        
@@ -62,7 +51,7 @@ void Sample_RandWait(void)
 
 
 /** %jp{状態表示} */
-void Sample_PrintSatet(int num, char *text)
+void Sample_PrintSatet(int num, const char *text)
 {
        int     i;
        
@@ -77,8 +66,8 @@ void Sample_PrintSatet(int num, char *text)
        {
                Uart_PutChar(text[i]);
        }
+       Uart_PutChar('\r');
        Uart_PutChar('\n');
-       Uart_PutChar('\0');
        
        sig_sem(SEMID_UART);
 }
@@ -138,5 +127,4 @@ void Sample_Task(VP_INT exinf)
 }
 
 
-
 /* end of file */
index f940be1..7bd4ec1 100755 (executable)
 
 
 /* %jp{カーネル独自の設定}%en{kernel} */
-KERNEL_HEP_MEM(512, NULL);
-KERNEL_SYS_STK(512, NULL);
-KERNEL_INT_STK(512, NULL);
-KERNEL_MAX_TSKID(5);
+KERNEL_HEP_MEM(256, NULL);
+KERNEL_SYS_STK(256, NULL);
+KERNEL_INT_STK(256, NULL);
+KERNEL_MAX_TSKID(6);
 KERNEL_MAX_SEMID(7);
 KERNEL_MAX_FLGID(1);
 KERNEL_MAX_MBXID(1);
 KERNEL_MAX_MPFID(1);
 KERNEL_MAX_MTXID(1);
-KERNEL_MAX_ISRID(1);
+KERNEL_MAX_ISRID(2);
 
 
 /* %jp{OSタイマの設定}%en{OS timer} */