summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-15It is a big patch for stm32f0x, see the fellow :Bright Pan
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-06Merge pull request #194 from grissiom/eol-issueBernard Xiong
freemodbus: fix eol
2013-11-06freemodbus: fix eolGrissiom
On Windows platform, please set `autocrlf = true` and on Linux, please set `autocrlf = input`.
2013-11-05Merge pull request #192 from armink/masterBernard Xiong
net: add freemodbus master and slave v1.6.0
2013-11-06add SConscript for freemodbusarmink
Signed-off-by: armink <[email protected]>
2013-11-06add modbus master to freemodbusarmink
Signed-off-by: armink <[email protected]>
2013-11-04Merge pull request #189 from bright-pan/masteraozima
Fix hardfault bug for gcc port
2013-11-04Fix hardfault bug for gcc portBright Pan
for 2013-02-20 aozima commmit "port for gcc", but the commit is not tested,and the kernel is breakdown in context_gcc.S, the file is a copy from cortex-m3,but not port for cortex-m0, so i complete this port for aozima, test it in stm32f0discovery board , and it works fine.
2013-10-28Merge pull request #188 from prife/masterprife
simulatr: print error messages when RTT_RTGUI is invalid
2013-10-26simulatr: print error messages when RTT_RTGUI is invalidprife
2013-10-25Merge pull request #187 from grissiom/serial-fixBernard Xiong
Revert "serial: set the errno if and only if in thread context"
2013-10-25Revert "serial: set the errno if and only if in thread context"Grissiom
This reverts commit 07bd09fc0fc256e5c53ad3c6157802fd94c9910c. The validation of the context is done with in `rt_set_errno`. So it's safe to call it here.
2013-10-25Merge pull request #186 from grissiom/serial-fixBernard Xiong
Serial fix
2013-10-25k60: add rt_interrupt_{enter,leave} in IRQHandlerGrissiom
2013-10-25serial: set the errno if and only if in thread contextGrissiom
The errno is associated with threads. It will crash the thread if we set it in interrupt context.
2013-10-25serial: do onthing if the size of read/write is zeroGrissiom
Return early if the size is 0 as there is nothing to do.
2013-10-22Merge pull request #184 from caicai07/k60-fixBernard Xiong
K60: fix compile error
2013-10-23K60: fix compile errorcaicai
2013-10-22Merge pull request #183 from grissiom/log_trace-in-memBernard Xiong
Log trace in mem
2013-10-22Merge pull request #181 from grissiom/rm48x50-nextBernard Xiong
Rm48x50 next
2013-10-23log_trace: add a in-mem-log exampleGrissiom
After `log_trace_init()`, call `memlog_init`. It then turn the logtrace into a "in-memory" logger which will buffer all the log in memory. It also set a hook in idle to flush all the log into console. One may create an other thread to flush the logs but idle might be the simplest place to go.
2013-10-23device/pipe: add a control cmd to get the space left in pipeGrissiom
2013-10-20Merge pull request #182 from grissiom/fix-timer-initBernard Xiong
initialize timer in bsp
2013-10-21initialize timer in bspGrissiom
With new timer algorithm, timer should be initialized during startup. So add them to the bsps. Use these commands to get which bsp is missing calling the function: % git grep rt_system_timer_init bsp|sed -n 's|bsp/\([^/]*\).*|\1|p' | sort | uniq > have_tm_init % ls -1 bsp |sed -n 's|\([^/]*\).*|\1|p' | sort > all_bsp % comm -3 all_bsp have_tm_init beaglebone lpc176x lpc178x ls1bdev mb9bf506r stm32f10x xplorer4330
2013-10-20cortex-r4: dump register on trapsGrissiom
We could not handle any traps except IRQ/FIQ.
2013-10-20cortex-r4: remove RM48x50.h and add armv7.hGrissiom
2013-10-20rm48x50: cleanup sys_startup.cGrissiom
2013-10-20rm48: move some asm file to libcpuGrissiom
2013-10-20rm48x50: add GCC supportGrissiom
2013-10-20rm48x50: cleanup HALCoGen codeGrissiom
2013-10-19Merge pull request #180 from grissiom/hot-fixBernard Xiong
kernel: timer: fix compiling bug in d59aa279c37b7
2013-10-19rm48x50: fix the prototype of finsh_system_initGrissiom
2013-10-19kernel: timer: fix compiling bug in d59aa279c37b7Grissiom
2013-10-18Merge pull request #179 from grissiom/finsh-exBernard Xiong
Finsh ex
2013-10-18finsh: refactor the control key handlingGrissiom
We split the history handling form the key handling. So we could handle the direction key even if the history is disabled. As a "side effect", I also remove the unnecessary "use_history" bit.
2013-10-17Merge pull request #173 from grissiom/new-timerBernard Xiong
kernel: use skip list to implement timer list
2013-10-17Merge pull request #161 from aozima/pullsBernard Xiong
make sure the device is in STREAM mode when used by rt_kprintf.
2013-10-17Merge pull request #162 from joyhope/masterBernard Xiong
UART DMA tx_complete() with buffer information
2013-10-17Merge pull request #178 from prife/jffs2Bernard Xiong
simulator/jffs2: remove _TIME_T_DEFINED when built by VC++
2013-10-17simulator/jffs2: remove _TIME_T_DEFINED when built by VC++prife
_TIME_T_DEFINED was pre-defined in order to build jffs2 with VC. While it may cause many side effects.
2013-10-14Merge pull request #175 from prife/simulatorBernard Xiong
simulator: add createdef.py to generate def file for VS
2013-10-14Merge pull request #174 from grissiom/rtt-nextBernard Xiong
kernel: mutex could only be released in thread context
2013-10-14simulator: add createdef.py to generate def file for VSprife
Now we can get rid off Mingw to create def file. To create def file, one should run: scons --def in the bsp/simulator.
2013-10-14kernel: mutex could only be released in thread contextGrissiom
Mutex has the idea of ownership, only the thread which owns the mutex can release it. So rt_mutex_release could only be called in thread context. Add a debug guard to it.
2013-10-12kernel: use skip list to implement timer listGrissiom
Skip list is a "random" data structure that in high possibilities it would get O(log(N)) time complexity in inserting while the old list get O(N). Forthermore, when set RT_TIMER_SKIP_LIST_LEVEL to 1, it will just the same as the old double linked list, both in time and space complexity. Benchmarks shows that when RT_TIMER_SKIP_LIST_LEVEL is 3, the average time of random insertion of new timer is about 2 times faster than the old timer when there are 100 timers and 3 times faster when there are 200 timers. However, it restores the deprecated funcion rt_system_timer_init. BSPs must invoke it upon system startup.
2013-10-12Merge pull request #172 from grissiom/rtt-nextBernard Xiong
kernel: fix compiling error when RT_DEBUG is not defined
2013-10-12kernel: fix compiling error when RT_DEBUG is not definedGrissiom
Define RT_DEBUG_IN_THREAD_CONTEXT when RT_DEBUG is not defined.
2013-10-11Merge pull request #170 from grissiom/rtt-nextBernard Xiong
kernel: add RT_DEBUG_IN_THREAD_CONTEXT
2013-10-11kernel: add RT_DEBUG_IN_THREAD_CONTEXTGrissiom
In thread context means: 1) the scheduler has been started; 2) not in interrupt context. It is more stronger than RT_DEBUG_NOT_IN_INTERRUPT. With this commit, you will catch the error on situations like taking mutex before scheduling instead of crashing on NULL pointer reference.
2013-10-11Merge pull request #168 from grissiom/dfs-fixBernard Xiong
DFS: add dfs_file_flush prototype in dfs_file.h