Commit graph

368 commits

Author SHA1 Message Date
8e4dc856e7 test: ftl: separate mocked functions 2017-09-19 18:45:37 +02:00
2ff1003430 test: ftl: add tests for write_upage() 2017-09-19 18:45:18 +02:00
c1a7b885f2 test: call __real_write_page_desc() in tests and mock prepare_head() and write_page_desc() 2017-09-19 18:44:53 +02:00
d2aa954573 test: remove redundant declarations 2017-09-19 17:49:48 +02:00
f951d695e8 test: flash: use different mocking technique 2017-09-19 17:49:26 +02:00
b4ecfb527c ftl: check magic in read_page_group() 2017-09-19 16:19:01 +02:00
ed49402e3b test: ftl: add tests for read_page_group() 2017-09-19 16:18:46 +02:00
3e0df6537a test: ftl: implement tests for write_page_desc() 2017-09-19 16:07:13 +02:00
108178d1be test: flash: implement wrappers for flash_write() and flash_erase() 2017-09-19 16:06:55 +02:00
a63e7656fe test: ftl: add tests for next_upage() 2017-09-19 15:04:47 +02:00
e84226657c test: reorganise code 2017-09-19 14:37:23 +02:00
18d2adcb85 make: less strict warnings 2017-09-19 14:36:47 +02:00
f0a8439c51 ftl: fix address calculation in read_page_desc() 2017-09-19 14:23:20 +02:00
bbc799f805 test: add tests for find_block_div() and read_page_desc() 2017-09-19 14:23:00 +02:00
b29e0b945d tbm: fix minor issues during compilation 2017-09-19 14:16:21 +02:00
82d765bee3 make: set up test framework 2017-09-19 14:15:26 +02:00
e089e2ba4e readme: initial version 2017-08-04 15:25:52 +02:00
d5266221ef usart: add CONFIG_USER_ECHO option 2017-08-03 17:09:51 +02:00
9922994d1c usart: do not send newlines 2017-08-03 15:27:25 +02:00
dd6579fda7 stm32f0: rtc: remove unused variable 2017-08-03 13:37:00 +02:00
fc61b55493 shell: rtc: fix off by one 2017-08-02 00:09:24 +02:00
66f0b7b0d6 stm32f0: rtc: fix off by one 2017-08-02 00:09:03 +02:00
3bf0593928 usart: set baud rate to 9600 2017-08-01 17:20:46 +02:00
ebc8dbffa5 mufs: move header 2017-08-01 17:12:48 +02:00
7d968dfad9 make: mufs: re-organise code and add separate Makefile 2017-08-01 17:03:34 +02:00
2f632d140a usart: generalise code for both stm32f0 and stm32f1 2017-08-01 17:00:35 +02:00
81b475c334 usart: remove old usart code 2017-08-01 16:55:42 +02:00
9f5afa977e make: ftl: add separate Makefile 2017-08-01 16:55:17 +02:00
b168422d8a make: move spi_flash.c to source/platform 2017-08-01 16:26:25 +02:00
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
538b3150a5 macros: add proper BIT_MASK() macro 2017-08-01 15:48:16 +02:00
736d7d74a0 make: add commands to run openocd with appropriate settings 2017-08-01 15:08:51 +02:00
a5175b3e54 stm32f0: add support for stm32flash tool 2017-08-01 14:39:28 +02:00
a221bf87bf make: improve prefix support 2017-08-01 14:39:06 +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