Changeset 610 for soft/giet_vm/applications/shell/main.c
- Timestamp:
- Jul 14, 2015, 5:02:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/shell/main.c
r589 r610 19 19 ////////////////////////////////////////// 20 20 { 21 giet_ shr_printf("\n[SHELL] Enter at cycle %d\n", giet_proctime());21 giet_tty_alloc(); 22 22 23 /////////////// diplay disk content 24 giet_shr_printf("\n#############################################################"); 23 giet_tty_printf("\n[SHELL] Enter at cycle %d\n", giet_proctime() ); 24 25 /////////////// display disk content 25 26 giet_fat_list( "/" ); 26 27 giet_fat_list( "/misc" ); 27 28 giet_fat_list( "/home" ); 28 giet_shr_printf("#############################################################\n");29 29 30 30 /////////////// open lena_256.raw … … 36 36 else 37 37 { 38 giet_ shr_printf("\n[SHELL] open lena_256.raw\n");38 giet_tty_printf("\n[SHELL] open lena_256.raw\n"); 39 39 } 40 40 … … 47 47 else 48 48 { 49 giet_ shr_printf("\n[SHELL] open copy.raw\n");49 giet_tty_printf("\n[SHELL] open copy.raw\n"); 50 50 } 51 51 … … 62 62 else 63 63 { 64 giet_ shr_printf("\n[SHELL] lena_256.raw loaded from device\n");64 giet_tty_printf("\n[SHELL] lena_256.raw loaded from device\n"); 65 65 } 66 66 … … 77 77 else 78 78 { 79 giet_ shr_printf("\n[SHELL] copy.raw stored to device\n");79 giet_tty_printf("\n[SHELL] copy.raw stored to device\n"); 80 80 } 81 81 … … 87 87 else 88 88 { 89 giet_ shr_printf("\n[SHELL] lena_256.raw closed\n");89 giet_tty_printf("\n[SHELL] lena_256.raw closed\n"); 90 90 } 91 91 … … 97 97 else 98 98 { 99 giet_ shr_printf("\n[SHELL] copy.raw closed\n");99 giet_tty_printf("\n[SHELL] copy.raw closed\n"); 100 100 } 101 101 102 102 ////////////// display disk content 103 giet_shr_printf("\n#############################################################");104 103 giet_fat_list( "/" ); 105 104 giet_fat_list( "/misc" ); 106 105 giet_fat_list( "/home" ); 107 giet_shr_printf("#############################################################\n");108 106 109 107 ///////////// rename copy.raw … … 114 112 else 115 113 { 116 giet_ shr_printf("\n[SHELL] /home/copy.raw renamed to /misc/copy_lena.raw\n");114 giet_tty_printf("\n[SHELL] /home/copy.raw renamed to /misc/copy_lena.raw\n"); 117 115 } 118 116 119 117 ////////////// display disk content 120 giet_shr_printf("\n#############################################################");121 118 giet_fat_list( "/" ); 122 119 giet_fat_list( "/misc" ); 123 120 giet_fat_list( "/home" ); 124 giet_shr_printf("#############################################################\n");125 121 126 122 ///////////// remove home … … 131 127 else 132 128 { 133 giet_ shr_printf("\n[SHELL] /home removed from file system\n");129 giet_tty_printf("\n[SHELL] /home removed from file system\n"); 134 130 } 135 131 136 132 ////////////// display disk content 137 giet_shr_printf("\n#############################################################");138 133 giet_fat_list( "/" ); 139 134 giet_fat_list( "/misc" ); 140 giet_shr_printf("#############################################################\n");141 135 142 136 //////////// create new_home … … 147 141 else 148 142 { 149 giet_ shr_printf("\n[SHELL] /new_home created in file system\n");143 giet_tty_printf("\n[SHELL] /new_home created in file system\n"); 150 144 } 151 145 152 146 ////////////// display disk content 153 giet_shr_printf("\n#############################################################");154 147 giet_fat_list( "/" ); 155 148 giet_fat_list( "/misc" ); 156 149 giet_fat_list( "/new_home" ); 157 giet_shr_printf("#############################################################\n");158 150 159 151 giet_exit("Completed");
Note: See TracChangeset
for help on using the changeset viewer.