Commit Graph

164 Commits

Author SHA1 Message Date
flyingcys 35e59002ef [bsp] fix bxcan.c inline bug 2017-06-23 23:23:58 +08:00
armink 9b7d2023bb [BSP] Fix a bug on stm32f10x uart rx DMA driver when first receive data filled the FIFO. 2017-05-24 09:06:23 +08:00
Aubr.Cool fd08d0ba50 [Bsp] stm32f10x usart correct rx parity err 2017-04-13 12:47:49 +08:00
Bernard Xiong 54c5b83c14 Merge pull request #704 from AubrCool/fix-pin.driv.add.irq.apis
[DeviceDrivers] pin: add irq APIs.
2017-03-18 11:46:27 +08:00
armink 82930906a2 [BSP] Enhanced stm32f10x serial DMA rx driver reliability. 2017-03-17 16:45:23 +08:00
Aubr.Cool aa8e5cc412 [components] drivers pin irq change apis 2017-03-14 10:28:29 +08:00
Aubr.Cool 320b116b5f [Components] Drivers: pin add irq apis 2017-03-10 15:07:28 +08:00
Aubr.Cool f3c2930d05 correct stm32f10x txisr error 2017-02-27 09:38:15 +08:00
Aubr.Cool 4008a0a5fb stm32f10x usart add interrupt tx mode 2017-01-19 14:27:13 +08:00
Aubr.Cool 9b4222b2f0 bxcan irq add irq enter & irq leave 2017-01-18 09:46:16 +08:00
Aubr.Cool cd679a251e [BSP] stm32f10x bxcan correct ext frame filter 2016-12-26 14:26:47 +08:00
Aubr.Cool c2d8bff672 [Bsp] stm32f10x delete compiler c99 mode 2016-09-21 11:31:53 +08:00
Bernard Xiong 4503e5d79d Merge pull request #634 from margguo/master
[BSP] Update gpio.c in BSP/stm32f10x/drivers/gpio.c
2016-05-23 22:23:03 +08:00
margguo 09b0e48439 add 48 pins IC define in BSP/stm32f10x 2016-05-23 22:15:14 +08:00
margguo 4bbbfab29c add 48 pins IC define in BSP/stm32f10x 2016-05-23 22:00:21 +08:00
margguo 3defb749cb add 48 pins IC define in BSP/stm32f10x 2016-05-23 21:57:19 +08:00
armink 7d17f50a31 [BSP] Add usart DMA Rx driver to stm32f10x. 2016-05-14 13:43:14 +08:00
gbcwbz 0d63eb5f6d fix hardfault when RT_CAN_USING_BUS_HOOK is enabled in bsp/stm32f10x
function `rt_pin_write` is invoked by  function `can_bus_hook`, and it should to be initialized by gpio.c.
but gpio.c was not added in SConscript
2016-04-14 23:47:32 +08:00
gbcwbz b420e83da4 fix can baud rate config error in bsp/stm32f10x fix #597
enum CANBAUD was changed in components/drivers/include/drivers/can.h ,
which causes array index out of bound in bsp/stm32f10x/drivers/bxcan.c

temporarily remove RT_CAN_USING_BUS_HOOK, because there are some bugs in
bsp/stm32f10x/applications/canapp.c  function can_bus_hook
2016-04-13 21:24:36 +08:00
gbcwbz a6fcf8cf1f remove function finsh_set_device in application.c in bsp/stm32f10x
finsh_set_device is not needed since version 1.2.0
2016-04-09 13:15:49 +08:00
gbcwbz e35ad3e677 fix initialization error in bsp/stm32f10x
temporarily disable canapp initialization.
2016-04-03 21:39:33 +08:00
zhoujie fc2467a190 fix keil armcc compiling report "Error: expected an expression" 2015-12-10 21:47:53 +08:00
Aubr.Cool b2d55d2c8c correct stm32f10x can sendmsg rtr flag error 2015-11-23 09:43:48 +08:00
Aubr.Cool 33de63fbe2 correct compile error when using can 2015-11-23 09:43:17 +08:00
FlyM 62f0def025 1.delete comment code
2.add change log
2015-07-16 22:50:24 +08:00
FlyM 32855cfd3a rename bsp/stm32f10x/drivers/rtc.c to stm32f1_rtc.c
rename bsp/stm32f10x/drivers/rtc.h to stm32f10x/drivers/stm32f1_rtc.h

remove set_date,set_time function.
2015-07-16 02:08:44 +08:00
Aubr.Cool 6fad73c939 [BSP] stm32f10x can code format 2015-07-07 16:31:46 +08:00
Aubr.Cool b750e11ec1 [bsp]stm32f10x add canapp can bus hook set 2015-07-07 14:37:07 +08:00
Aubr.Cool b7571b5549 [BSP] stm32f10x fix bxcan for new changed driver 2015-07-07 14:37:04 +08:00
Aubr.Cool b7010ff946 fix bxcan include component.h dirs error 2015-06-30 14:27:05 +08:00
Aubr.Cool 70aedb7a34 correct bxcan rcv irq error 2015-06-16 08:49:26 +08:00
Aubr.Cool 40123f0973 correct bxcan drive errors 2015-06-16 08:49:25 +08:00
Aubr.Cool b319fb53e4 correct bxcan rcv msg rtr flag set 2015-06-16 08:49:25 +08:00
Aubr.Cool b155067b6b correct bxcan init error 2015-05-26 14:43:46 +08:00
BernardXiong 951fd5429c [BSP] remove Keil MDK3 project file 2015-05-23 10:26:38 +08:00
BernardXiong be895cc9b2 [BSP] update Keil MDK project file. 2015-05-20 16:57:44 +08:00
Aubr.Cool 8e29e3d98b add author information 2015-05-15 07:58:21 +08:00
Aubr.Cool eb56b832ef Add Can Drv 2015-05-14 16:52:48 +08:00
BernardXiong e38f3aa39c [BSP] Update Keil MDK project files. 2015-05-11 21:10:25 +08:00
Aubr.Cool 2be9959891 correct stm32f10x pin64 define error 2015-04-23 16:11:38 +08:00
Bright Pan 93122aaa19 [BSP]stm32f10x: Fix gpio driver for 144pins and 64pins 2015-03-25 10:44:02 +08:00
Bright Pan c377690989 [BSP]stm32f10x: Add gpio driver for pin driver frame 2015-03-24 16:30:37 +08:00
unknown 351dd923e3 bsp stm32f10x add uart4 drive 2015-03-11 15:24:09 +08:00
Bright Pan a61d228b76 Nanopb is a plain-C implementation of Google's Protocol Buffers data
format. It is targeted at 32 bit microcontrollers, but is also fit for
other embedded systems with tight (2-10 kB ROM, <1 kB RAM) memory
constraints.(http://koti.kapsi.fi/jpa/nanopb/)

How to use the example:
	1. move examples/nanopb to bsp/xxxx/
	2. enable macro RT_USING_NANOPB in rtconfig.h
	3. regenerate the project file (scons --target=xxxx)
	4. rebuild the project
2015-03-10 18:24:17 +08:00
armink 79c37cb30f [BSP]changed stm32f10x uart driver. make sure the serial transmit
complete in putc().
2015-01-31 11:18:59 +08:00
armink 131c41d182 [BSP]support 9 data bits and parity config for stm32f10x uart driver. 2015-01-31 11:14:10 +08:00
armink 1213dec3c9 fix #347 2015-01-31 11:05:00 +08:00
Bright Pan 3c65a522fd Add mdk5 project for stm32 bsps 2014-11-19 15:28:56 +08:00
armink 77b214f1bc [BSP]Add serial receive overflow interrupt to stm32f10x ISR. 2014-09-13 11:53:21 +08:00
armink 04c4e5d9a4 [BSP]Fixes two writing mistake for stm32f10x. 2014-09-13 11:50:54 +08:00
tcz717 537beefa70 拼写错误
drvers->drivers
2014-09-08 19:53:55 +08:00
bernard 9572d3e46a [bsp] Fix STM32F10x compiling warning. 2014-07-21 06:23:50 +08:00
bernard 26118499e0 [BSP] remove rt_device_init_all() invoking. 2014-07-19 06:50:00 +08:00
bernard 74377b2650 [Drivers] re-write serial framework. 2014-07-18 07:21:09 +08:00
Grissiom 2a9e893c79 initialize timer in bsp
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-21 00:31:10 +08:00
Grissiom d70761222c stm32f10x: fix the rtgui initialization
The rtgui_system_server_init prototype is wrong. And if we use
RT_USING_COMPONENTS_INIT, there is no need to call
rtgui_system_server_init again.
2013-09-03 20:09:45 +08:00
aozima 13c30f9269 update usart driver: use serial driver component. 2013-07-12 23:32:48 +08:00
aozima b12f6bbdee cleanup code. 2013-07-12 23:28:24 +08:00
aozima fc9d7926e2 update project support auto initial. 2013-07-12 23:09:12 +08:00
aozima c44b02f08c support auto initial. 2013-07-12 23:08:46 +08:00
aozima 8890e83aa9 update DM9000 ethernet driver for auto initial. 2013-07-12 22:54:53 +08:00
aozima 020d05ca92 update SD card driver for auto initial. 2013-07-12 22:54:48 +08:00
aozima 5183697fd4 update linker script for components auto initial. 2013-07-12 22:50:50 +08:00
aozima e749fb6e9a cleanup code. 2013-07-12 18:38:30 +08:00
aozima a183f1fbe9 update stm32f10x project. 2013-07-12 18:31:42 +08:00
aozima 8c2a11c234 update stm32f10x project directory structure. 2013-07-12 18:16:43 +08:00
aozima f0d03af696 remove unused file. 2013-07-12 17:51:35 +08:00
aozima 8711a0c986 update SConstruct. 2013-07-11 23:11:16 +08:00
aozima cc8301d0f1 update linker script for components auto initial. 2013-07-11 23:07:16 +08:00
aozima 4807145a71 clean up code: remove the old file. 2013-06-08 20:50:09 +08:00
Grissiom 24649bfefe bsp/stm32f10x: remove the last calibration.c
This also provide an example to show how to use calibration feature in
the RTGUI.
2013-02-24 18:16:16 +08:00
aozima eefb272cfd update stm32f10x template. 2013-02-20 10:49:09 +08:00
aozima e3a4ae1370 update stm32f10x template. 2013-02-20 10:15:09 +08:00
Ming, Bai b4de7cce57 Re-normalizing the repo 2013-01-08 22:40:58 +08:00
xiongyihui3@gmail.com d48ef70ecd In stm32fx's stm32_rom.ld, add symbol - '_stext' to support lua a. Update lua's README.TXT
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2410 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-13 15:21:01 +00:00
dzzxzz@gmail.com f36a8ca713 using the default path of Keil(C:\Keil) as the keil EXEC_PATH
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2297 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-20 07:22:11 +00:00
dzzxzz@gmail.com 70e39ffa54 update rtgui related project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2177 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-19 00:48:11 +00:00
dzzxzz@gmail.com efeb6231be define RT_USING_RTT_CMSIS in rtconfig.h while using IAR 6.30+
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2170 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-18 03:00:01 +00:00
dzzxzz@gmail.com 0f6856b538 update the keil projects with tools/buildbot.py project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2055 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-14 12:00:17 +00:00
dzzxzz@gmail.com cfc501f919 fixed IAR compiling error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2053 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-14 11:29:42 +00:00
dzzxzz@gmail.com a7810e12b9 update the rtconfig.py and SConstruct in the BSP
in order to use buildbot.py

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2028 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-09 03:32:35 +00:00
dzzxzz@gmail.com 645260a1c9 fixed a compiling error while not defined RT_USING_FINSH
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1906 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-01-03 09:08:47 +00:00
wuyangyong 072fa60bdc update stm32f10x rtconfig.py.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1892 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-31 04:13:36 +00:00
dzzxzz 8b64d24bd4 all STM32 cortex-m3 branches using /libcpu/arm/cortex-m3 instead of /libcpu/arm/stm32
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1858 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-21 09:44:52 +00:00
chaos.proton@gmail.com fe3b233de4 set DMA_Configuration.DMA_BufferSize to 1
DMA_Init asserts DMA_BufferSize >=1.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1822 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-01 10:00:20 +00:00
chaos.proton@gmail.com 48d4e00ee8 clear DMA1_FLAG_TC2 in usart3 initialization
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1821 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-01 09:50:58 +00:00
wuyangyong bff77ee86b update rtc driver.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1811 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-28 05:58:21 +00:00
wuyangyong 88f891066d update rtc driver.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1808 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-26 09:52:52 +00:00
chaos.proton@gmail.com 3efb7d5cda remove the unused key.c and rt_hw_key_init
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1794 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-17 11:28:27 +00:00
chaos.proton@gmail.com 22a9d6f309 revert commit 1791
That commit broke bsp/stm3210x. The cause is that we calls rtgui_system_init in rtgui_startup. But the calibration starts before rtgui_startup and rtgui_system_init. This lead to crash.

One way to deal with it is move rtgui_system_init out of rtgui_startup and call it manually. But it will affect other bsps. So just revert the "bad" commit.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1793 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-16 03:12:04 +00:00
chaos.proton@gmail.com 4e8d6639f0 bsp/stm32f10x: calibrate touch screen before starting GUI
If we do not calibrate the touch screen, GUI is unusable. This patch use a semaphore to block GUI thread until calibration finish.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1791 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-08 09:33:18 +00:00
chaos.proton@gmail.com 065c3fb834 fix typo in last commit...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1790 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-08 09:19:41 +00:00
chaos.proton@gmail.com 93104fb4fc bsp/stm32f10x/touch: return early when lost the position
Check whether finger is still on the screen. If not, we couldn't determine where the user has touched. It's better to return early rather than give garbage values.

A more sensitive solution might be caculate the position once the interrupt occured. But it's not anti-shake friendly.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1789 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-08 07:52:20 +00:00
chaos.proton@gmail.com 44b91706e2 bsp/stm32f10x/touch.c: better naming
Rename flag to touched_down.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1788 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-08 07:41:42 +00:00
chaos.proton@gmail.com f344f00278 bsp/stm32f10x/touch.c: normalize the calibrated touch position
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1783 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-02 12:14:57 +00:00
chaos.proton@gmail.com e803640027 avoid divided by zero error
The old code only checks touch->max_x > touch->min_x but not touch->max_x == touch->min_x. Thus may lead to divided by zero error.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1782 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-02 08:58:34 +00:00
chaos.proton@gmail.com 9de3512c8a fix ads7843 data fetching
The old code forgot to drop the MSB in the very first byte retrieved from ads7843 after a control byte. This will lead to data corruption especially in 16-Clocks per conversion mode.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1781 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-02 08:17:40 +00:00
wuyangyong c17931ad60 update enc28j60 driver. thank jeames:http://www.ourdev.cn/bbs/bbs_content.jsp?bbs_sn=4974037
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1753 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-11 02:57:51 +00:00
wuyangyong 85d57f4bee update stm32f10x project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1734 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-30 06:13:05 +00:00
wuyangyong fef0997a37 update stm32 uart driver
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1727 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-24 17:15:22 +00:00