Commit graph

307 commits

Author SHA1 Message Date
b1d94ce1d0 shell: flash: use base 0 to use base 10 by default or base 16 when a 0x prefix is used 2017-08-01 16:20:04 +02:00
7c44691059 usart: do not handle Ctrl+C 2017-08-01 16:19:37 +02:00
f16cf26197 shell: flash: use console_getc() instead of getc() 2017-08-01 16:16:16 +02:00
e6c1197d07 ftl: fix find_last_group() to use proper group offsets 2017-08-01 15:51:50 +02:00
51da9338ea ftl: return -1 when no root could be found 2017-08-01 15:50:48 +02:00
5b21fe9813 ftl: fix read_page_desc() and write_page_desc() to use proper offsets 2017-08-01 15:50:16 +02:00
f44581b648 ftl: fix is_group_erased() to read the proper offsets 2017-08-01 15:49:17 +02:00
ebd770b957 stm32f1: initial support 2017-08-01 14:37:27 +02:00
dc6365c7f8 ftl: fix bug in root recovery by marking page descriptors with a magic value 2017-07-31 14:17:11 +02:00
23c861eab5 mufs: erase during block allocation 2017-07-28 15:41:44 +02:00
07e6cadae9 stm32f0: gpio: use PA4-PA7 for SPI1 to be compatible with tbm-schematics 2017-07-28 14:37:56 +02:00
33373dd250 main: swap around USART1 and USART2 to be compatible with tbm-schematics 2017-07-28 13:15:07 +02:00
0ee4779e5c mufs: clean up code for tree management 2017-07-27 17:34:55 +02:00
2a62bd1f15 mufs: properly free intermediate pages when empty in mufs_do_free_page() 2017-07-27 17:06:07 +02:00
37a25d7384 ftl: use default_flash_is_zero() to check if pages are erased 2017-07-27 16:54:07 +02:00
756e5852cb flash: implement functions to check if pages are all zero or one 2017-07-27 16:53:01 +02:00
fe1cd870c0 mufs: implement mufs_get_index() to select the index bits from the va at a specific depth 2017-07-27 16:45:45 +02:00
907175bd37 stm32f0: spi: move to platform-specific directory 2017-07-27 15:28:25 +02:00
73788ae5e6 flash: consistently use char instead of uint8_t 2017-07-27 15:24:34 +02:00
d17c1b65b4 make: separate Makefile for shell commands 2017-07-27 15:15:23 +02:00
c10a0a2421 stm32f0: usart: set baud rate to 115200 2017-07-27 15:13:15 +02:00
f2a922c697 main: don't bail if mounting fails 2017-07-27 13:20:42 +02:00
ebb8bbe5f3 main: add command for booting 2017-07-27 13:17:55 +02:00
159b29c625 shell: boot: switch to trusted commands 2017-07-27 13:17:31 +02:00
428ce212a5 shell: add boot commands 2017-07-27 12:46:50 +02:00
db0a62fc9f shell: rtc: fix off by one 2017-07-27 12:25:57 +02:00
2b1d401296 stm32f0: rtc: fix off by one 2017-07-27 12:24:42 +02:00
c6afcd1027 shell: version: fix typo 2017-07-27 12:15:44 +02:00
4aa807a7b3 shell: return exit codes to the user console 2017-07-27 12:15:24 +02:00
2942340b21 shell: return exit codes 2017-07-27 11:54:31 +02:00
a7504ad99c shell: swap argc and argv 2017-07-27 11:41:20 +02:00
ab5e9d532e main: mount flash chip, FTL and mufs automatically 2017-07-27 11:06:05 +02:00
0261989724 main: implement user commands 2017-07-27 11:05:40 +02:00
501b80e87c shell: mufs: expose individual commands 2017-07-27 11:03:34 +02:00
bba75900c0 shell: mufs: show newline for each line to write 2017-07-27 10:59:14 +02:00
6570ab27c9 shell: implement version command 2017-07-27 10:51:54 +02:00
651291ece1 main: initialise the real-time clock 2017-07-27 10:45:50 +02:00
6dcf58a25d shell: implement echo command 2017-07-27 10:44:52 +02:00
acdc364fab shell: rtc: add commands to get and set the date 2017-07-27 10:39:47 +02:00
333706ccb9 stm32f0: rtc: set up the real-time clock and implement functions to get and set the time 2017-07-26 11:30:04 +02:00
c071903dd1 shell: pass around console object 2017-07-24 17:57:13 +02:00
3f7580ae39 usart: only allocate two USART structures 2017-07-24 17:09:59 +02:00
715cd7f72e usart: use a baud rate of 9600 2017-07-24 17:09:43 +02:00
fffcd4c3b9 usart: remove debugging statement 2017-07-24 17:08:41 +02:00
7536a6878b shell: improve parse_hex() to use new stdio implementation 2017-07-24 17:08:06 +02:00
de701429a7 shell: mufs: use a temporary hack to get unbuffered input from the serial interface 2017-07-24 17:06:54 +02:00
846ea90bdc ftl: initialise the offset in the map 2017-07-24 16:36:22 +02:00
952f2e63fb mufs: sync in mufs_format() 2017-07-24 16:11:41 +02:00
e24012af82 ftl: enable sync-less writes 2017-07-24 15:40:36 +02:00
7125ddadf9 mufs: get proper virtual address in mufs_shrink_tree() 2017-07-24 15:38:23 +02:00