Commit Graph

3013 Commits

Author SHA1 Message Date
prife 4f9dc273ec dfs: fix dfs_unmount bug
fix #211
2013-12-21 11:35:09 +08:00
Grissiom 04f432f47b kernel: let rt_thread_idle_excute loop until there is no dead thread
Out side world is difficult to tell whethere there is dead thread
remaining. If rt_thread_idle_excute only do one cleanup, it's hard to
finish cleanups outside the idle thread. So let is loop and do all the
cleanups in one call.
2013-12-21 11:31:40 +08:00
Grissiom 408ac34bc2 kernel: add rt_critical_level that return the lock count of scheduler
Out side world may be interested in whether the scheduler is locked or
not. Provide an API to tell that.
2013-12-21 11:27:26 +08:00
prife 27112267e9 dfs: rename varialbe name in dfs_filesystem_lookup
empty is confused in dfs_filesystem_lookup.
2013-12-21 10:58:52 +08:00
Bernard Xiong ca270a4667 Merge pull request #213 from grissiom/more-tc
More tc
2013-12-19 23:50:39 -08:00
Grissiom 9a679cc7d8 TC: fix the thread_delete
The tc thread should delay more time than tid2 in order to let it run
the test. The hard-coded "27" is not enough in some cases.
2013-12-20 10:52:51 +08:00
Grissiom bf640015e6 TC: clear the TC_STAT_RUNNING flag when tc forgot to do so
TCs are supposed to exit with the TC_STAT_RUNNING cleared. If it forgot
to do this, do it by ourselves.
2013-12-20 10:23:31 +08:00
prife 52db5cfbe0 Merge pull request #210 from prife/master
dfs: refine code
2013-12-19 07:44:28 -08:00
prife f4e8820bca dfs: refine more code
clean code with pointer rather than index
2013-12-19 13:58:30 +08:00
Bernard Xiong 0e8b23ff95 Merge pull request #212 from grissiom/fix-tc
Fix tc
2013-12-18 18:05:31 -08:00
prife 7fd6d17d5b dfs: refine code
decrease indentation to make cleaner code
fix mkfs bug when there is no mkfs implementation
2013-12-19 00:31:39 +08:00
Grissiom a51b5799f7 TC: fix the heap tests 2013-12-18 23:04:18 +08:00
Grissiom 752fe135cd TC: code cleanup 2013-12-18 22:21:31 +08:00
Grissiom b66c5ee074 TC: always print the test result despite the wait time 2013-12-18 22:20:10 +08:00
Grissiom a7c4d07fb7 TC: heap_realloc: check for realloc(ptr, 0) 2013-12-18 22:03:55 +08:00
Grissiom c6c6b5ef74 TC: semaphore_dynamic: code cleanup 2013-12-18 21:47:00 +08:00
Grissiom 4434c87a71 TC: release the sem in cleanup
The sem that has been created should be deleted. The sem that has been
inited should be detached.
2013-12-18 21:46:08 +08:00
Grissiom e9e8e3f3ca TC: do not use rt_sem_trytake to clean the sem
There can be a race condition that the sem has alread been detached
after we did the cleanup. Besides, there is a RT_IPC_CMD_RESET command
in rt_sem_control which is more clear in setting the sem values.
2013-12-18 20:52:55 +08:00
prife cb347f5af0 Merge pull request #207 from prife/master
update bsp/simulator
2013-12-08 04:59:18 -08:00
prife 712d9428ed simulator: disable RTGUI in rtconfig.h
clean code in SConstruct and application.c, disable RTGUI in rtconfig.h
by default.
2013-12-08 20:39:19 +08:00
Bernard Xiong be2f628160 Merge pull request #205 from geniusgogo/sqlite
Sqlite
2013-11-30 03:36:56 -08:00
geniusgogo 9326719a12 move SQLiteLib/SConscript file to SQLite-3.8.1/SConscript 2013-11-30 15:00:24 +08:00
geniusgogo 06d3cf710e rename sqlite directory to SQLite-3.8.1/SQLiteLib 2013-11-30 15:00:23 +08:00
geniusgogo b3e70cbf40 modify the RTT is abbreviated error, change to be rtthread. 2013-11-30 15:00:21 +08:00
geniusgogo 6433eeae66 build env component removal 2013-11-30 15:00:20 +08:00
geniusgogo dd2a4cd49c port rtt config orig env 2013-11-30 15:00:19 +08:00
geniusgogo ab1429b044 orig config result tool 2013-11-30 15:00:18 +08:00
geniusgogo 2948bf55f7 fix the SQLite mutex free-fun cause a memory leak 2013-11-30 15:00:17 +08:00
geniusgogo d246db603c fix sqlite mutex/vfs/ 2013-11-30 15:00:16 +08:00
geniusgogo 10aad53661 fix declarative referential integrity 2013-11-30 15:00:07 +08:00
geniusgogo 7e7f0fb5f5 add test/test10.c 2013-11-30 15:00:06 +08:00
geniusgogo 7d88b753d6 complete SQLite-3.8.1 porting, and auto generate porting code 2013-11-30 14:59:57 +08:00
geniusgogo 2315160531 add vfs/fs porting 2013-11-30 14:59:56 +08:00
geniusgogo d47febdc65 port complete SQLite-3.8.1 to RT-Thread 2013-11-30 14:59:55 +08:00
geniusgogo 993374d860 add rtt memory management support 2013-11-30 14:59:54 +08:00
geniusgogo bb71850863 add rtt mutex support 2013-11-30 14:59:53 +08:00
geniusgogo e0a3ced7ea add rtt complie macro SQLITE_OS_RTT 2013-11-30 14:59:52 +08:00
geniusgogo a186d329a4 add SQLite-3.8.1 authority original source tree 2013-11-30 14:59:51 +08:00
geniusgogo 0347f8ab9c add SQLite 3.8.1 amalgamation source code 2013-11-30 14:59:48 +08:00
Bernard Xiong 35d83be62f Merge pull request #204 from aozima/pulls
fixed _sys_read()/_sys_write() issues.
2013-11-24 07:22:41 -08:00
aozima e037d2e5f6 fixed _sys_read()/_sys_write() issues. 2013-11-24 23:11:17 +08:00
Bernard Xiong 6c58f80a1d Merge pull request #201 from prife/master
finsh: fix finsh device setting
2013-11-18 16:13:19 -08:00
aozima 52d49c7dc6 Merge pull request #199 from bright-pan/master
It is a big patch for stm32f0x, see the fellow :
2013-11-18 06:44:33 -08:00
prife b79b9be19f finsh: fix finsh device setting
1. rt_console_get_device should be call to set shell device only when it is null, or it will make finsh_set_device useless.
2. RT_USING_CONSOLE can be disabled in bsp/rtconfig.h
2013-11-18 21:17:49 +08:00
Bernard Xiong a2bd42c81a Merge pull request #200 from grissiom/cortex-r4
Cortex r4
2013-11-16 21:24:18 -08:00
Grissiom 0c9b9ced31 cortex-r4: use byte to allocate the stack
Unit of "byte" is more intuitive than "long".
2013-11-17 12:49:08 +08:00
Grissiom a8520ed383 cortex-r4: let svc mode reuse the stack of IRQ on startup
As the svc stack is the stack of threads, there is no need to allocate a
separate stack for the startup. Reuse the IRQ stack should be OK.

Tested on rm48 board.
2013-11-17 12:49:07 +08:00
Bright Pan 9691c659c8 It is a big patch for stm32f0x, see the fellow :
1. fix heap management for stm32f0xx(SRAM=8k)
    2. add USART1, USART2 driver for stm32f051R8
    3. fix finsh support for stm32f0x
    4. fix board components initial for stm32f0x and open debug msg
    5. add led driver(pc9) and test thread for stm32f0discovery board
    6. add init thread for stm32f0x do components initial
    7. add rcc initial for stm32f0x in rt_hw_board_init()
    8. add print rcc freq information function

the console output example is:
    SYSCLK_Frequency is 48000000HZ
    PCLK_Frequency is 48000000HZ
    HCLK_Frequency is 48000000HZ
    CECCLK_Frequency is 32786HZ
    ADCCLK_Frequency is 14000000HZ
    USART1CLK_Frequency is 48000000HZ
    I2C1CLK_Frequency is 8000000HZ
    SystemCoreClock is 48000000HZ
    initialize rti_start:0 done

    \ | /
    - RT -     Thread Operating System
    / | \     1.2.0 build Nov 15 2013
    2006 - 2013 Copyright by rt-thread team
    do components intialization.
    initialize rti_board_end:0 done
    initialize rt_hw_led_init:32768 done
    initialize finsh_system_init:0 done
    finsh>>
2013-11-15 14:05:30 +08:00
Bernard Xiong 394657979d Merge pull request #194 from grissiom/eol-issue
freemodbus: fix eol
2013-11-06 16:43:44 -08:00
Grissiom 61ffa2c438 freemodbus: fix eol
On Windows platform, please set `autocrlf = true` and on Linux, please
set `autocrlf = input`.
2013-11-06 21:47:49 +08:00