Bogdan Marinescu
d81ce439bf
Merge pull request #256 from bcostm/master
...
[NUCLEO_F030R8] Change PWM_OUT label
2014-04-07 23:29:58 +01:00
Bogdan Marinescu
f12dc4ef0f
Merge pull request #250 from xiongyihui/master
...
add I2C pins name and vector checksum
2014-04-07 23:26:23 +01:00
Bogdan Marinescu
2e32c71b50
[K64F] Ensure immediate update of CnV register in FTM
...
Also changed pin assignment for the PWM test.
2014-04-07 16:48:56 +01:00
Bogdan Marinescu
286a4e42f6
[K64F] Fix PWM implementation
...
Also change the pin for the PWM LED test.
2014-04-07 16:29:54 +01:00
bcostm
6e2d89de0f
[NUCLEO_F030R8] Change PWM_OUT label
...
PB_3 does not support pwm out.
2014-04-07 08:34:15 +02:00
Michael Panetta
81c91a0487
[STM32F3XX] Initial port
...
This is the initial port of the mbed SDK to STM32F3XX (Tested with STM32F3Discovery and hello world test.)
This port is based on the NUCLEO_F302R8 target.
Only the GCC_ARM toolchain has been tested.
2014-04-06 21:21:28 -04:00
0xc0170
a7236a8783
K64F - ADC mbed HAL - channels definition correction
...
- only b channels are available
- SC1A triggers the measurement
- ADC1 channels corrections in the pinmap (PTCx), PTD6
2014-04-05 18:15:15 +02:00
0xc0170
0bc4853443
K64F - pwm clock set store
2014-04-04 11:24:50 +02:00
0xc0170
7daf2753a0
K64F - port HAL corrections
2014-04-04 10:30:30 +02:00
Yihui Xiong
61a0f59bad
add I2C pins name to Arch and Arch Pro
2014-04-04 10:40:31 +08:00
Mihail Stoyanov
220c0bb39c
Rename KSDK to KPSDK. Required for live compiles.
2014-04-03 11:32:15 +01:00
Bogdan Marinescu
2e4bbfb84f
NMI handler is now in mbed_overrides.c
2014-04-03 11:22:56 +01:00
Sissors
fc0a2cf35e
Mode added to BusIn + allow creation of NC pins
...
Now BusIn can also use PullUp, etc, instead of only BusInOut.
If the pin is NC, it does get to the init, but all write/mode functions
are disabled. This is how it used to be in the old gpio version. Quite
some libraries allow users to make pins NC, and they are all locking up
with the current mbed version. This is far from a perfect solution, but
more a temporary fix.
2014-04-03 09:22:51 +02:00
sg-
832875853b
Added PWM pins and mbed overrides for NMI_b
2014-04-02 17:34:31 -05:00
Bogdan Marinescu
d537c51d26
Merge pull request #245 from 0xc0170/dev_k64f_squash
...
target K64F
2014-04-02 20:45:34 +01:00
0xc0170
a0f8bd9741
Freescale - rename KSDK
2014-04-02 21:20:52 +02:00
0xc0170
9cc0f2513a
K64F - d14 and d15 swapped
2014-04-02 20:54:22 +02:00
Bogdan Marinescu
be141acdd0
Merge pull request #244 from bcostm/master
...
[NUCLEO_xxx] Various bugs correction
2014-04-02 18:12:39 +01:00
Bogdan Marinescu
f7c0e770fc
Merge pull request #229 from todor603/master
...
Added GCC_ARM for NUCLEO_F401RE
2014-04-02 18:12:18 +01:00
Mihail Stoyanov
4e46149448
Added pins D14 and D15 for LPC1549
2014-04-02 14:40:02 +01:00
0xc0170
03b3a4e895
Target K64F addition.
...
Squashed commit of the following:
commit db3c9f7682083abeb291e01df31e67e4c50845b3
Author: 0xc0170 <c0170@rocketmail.com>
Date: Wed Apr 2 09:52:00 2014 +0200
K64F - KSDK - Warnings fixes
commit a639a5cdff889c13509c954b0a34ebac861c1361
Merge: 67a2c2a f3de345
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Apr 1 12:48:35 2014 +0200
Merge branch latest 'master' into dev_target_k64f
Conflicts:
libraries/rtos/rtx/RTX_Conf_CM.c
workspace_tools/build_api.py
commit 67a2c2aeb976f264db52ea10d18fea9de0d7685f
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sun Mar 30 13:19:51 2014 +0200
K64F - PinName for buttons (SW2, SW3)
commit 957573e2cd42d5c73ed99477abb98c8b883695b2
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Mar 25 11:46:57 2014 +0100
K64F - pins addition to mbed HAL, uart - 4 instances, fix i2c instance which was not stored
commit 2347a6d03984e297190910a250f2771032ae6327
Author: sg- <sam.w.grove@gmail.com>
Date: Mon Mar 24 15:20:51 2014 -0500
Added wait to i2c stop
commit b7b4a9c72e8724087a44078c41a2cb33e4c8d5e3
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Mar 24 19:28:16 2014 +0100
K64F - I2c - ack flag retreive correction (logic inverted in ksdk hal)
commit 46c875251263029e32463c3b48473b10496088d9
Author: sg- <sam.w.grove@gmail.com>
Date: Mon Mar 24 13:16:18 2014 -0500
Added I2C Pinnames
commit b71c7a0dfba7025662f9a9d176494ce4dc86273e
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Mar 18 17:02:34 2014 +0100
K64F Arduino pinNames update
commit d41b0ee493263d1d80fcb72b3f0d4d788359c7c9
Merge: 9c0a982 e2574eb
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Mar 18 14:57:57 2014 +0100
Merge remote-tracking branch 'upstream/master' into dev_target_k64f.
K64F gpio changed according to the latest mbed master.
Conflicts:
libraries/rtos/rtx/RTX_CM_lib.h
workspace_tools/export/uvision4.py
commit 9c0a9822ab14263fff5e3b6459b7c2b4a77ce30c
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Mar 17 21:08:17 2014 +0100
K64F - sleep support
commit 5edcf3603d2e7b00eedbb377203a054b7a01e51d
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sun Mar 16 18:19:55 2014 +0100
K64F - pullup/down corrections, LED1 - R, LED2 - G, LED3 - B
commit a2b3b53a1474d32779654765cd1ce2ba2c6b2186
Author: 0xc0170 <c0170@rocketmail.com>
Date: Thu Mar 13 20:55:39 2014 +0100
K64F - SPI - delays are set, pin definition for tests
commit 1f3b3abe16f4afaaf1b75cb4bf3e3a9d5b6e50a7
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Mar 11 21:26:00 2014 +0100
K64F - DAC update - tested with test a8
- internal reference set to VDDA
- PinName DAC0_OUT
commit 26d8cf47f8c0786b290ae659beb022901029b313
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Mar 11 08:31:44 2014 +0100
KSDK - drivers layer removal, mbed HAL using only KSDK HAL
- ADC corrections with channels, and clock configuration
commit 67ebe14f5c88725033ea0fb135d94b6bf9a00fdb
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Mar 10 12:46:08 2014 +0100
K20 copy files removed, targets.py - vertical alignment for K64F definition
commit be5c562d513c808e5bd425195a4fb1c71f47a57e
Merge: 696a713 fe0aca9
Author: Emilio Monti <emilmont@gmail.com>
Date: Mon Mar 10 11:14:55 2014 +0000
Merge branch 'rtos_support' into dev_target_k64f
commit 696a713751194b4762f1cdf6c17c0786decd7808
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Mar 10 12:05:30 2014 +0100
[FIX] K64F - adc, sgtl driver updates
commit fe0aca9940bbdd5ee70a1a7341a0a2ad2abf912b
Author: Emilio Monti <emilmont@gmail.com>
Date: Mon Mar 10 11:04:16 2014 +0000
Add RTOS support for K64F
commit 5c3edcbca6dbcce628c7cde51ac94a6fc6278ba5
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sun Mar 9 20:43:38 2014 +0100
K64F - uvision templates update
- uvision 5.10 supports K64F
commit 33f18d11d0eadb9243f1be0ae96c5f82e2913d48
Merge: 26f7587 74e9b2e
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sat Mar 8 10:34:25 2014 +0100
Update branch from mbed master
- merge branch 'master' into dev_target_k64f
Conflicts:
libraries/USBDevice/USBDevice/USBEndpoints.h
libraries/USBDevice/USBDevice/USBHAL_KL25Z.cpp
workspace_tools/export/uvision4.py
workspace_tools/targets.py
commit 26f75872b19a1db2a3abb34c6e773bac56acb32f
Author: 0xc0170 <c0170@rocketmail.com>
Date: Thu Mar 6 22:15:53 2014 +0100
K64F - USBDevice - MPU disable in init
commit e54d6bbaa68827bd63058fbf2428e289d15ac1f7
Author: 0xc0170 <c0170@rocketmail.com>
Date: Wed Feb 26 21:06:58 2014 +0100
K64F - clock setup 4 (usb clock enable)
commit c4165732b9520cb31ae3d649d50c353d09dc9932
Author: 0xc0170 <c0170@rocketmail.com>
Date: Wed Feb 26 20:01:47 2014 +0100
K64F - USBDevice addition
commit 9fcdbb8562b1415561b04e902fcdbb4724add5af
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Feb 24 19:11:48 2014 +0100
K64F SPI HAL - initial version
commit 8093df58fa7d17fcb5ad04872c958d5254ee1d8a
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sat Feb 22 13:14:44 2014 +0100
K64F - RTC and I2C implementation (using KPSDK HAL)
- instance correction in objects and peripherals names headers
commit 7ef3fbda605c2bd53a86f37d0676c0393b2e2949
Author: 0xc0170 <c0170@rocketmail.com>
Date: Fri Feb 14 09:45:27 2014 +0100
mbed RTC HAL for K64F
commit e40332fd2db8bf36b3e6cabac5729e013da40c28
Merge: e059f65 6bfcd87
Author: 0xc0170 <c0170@rocketmail.com>
Date: Thu Feb 13 14:20:20 2014 +0100
Merge branch 'master' into dev_target_k64f
Conflicts:
workspace_tools/build_api.py
workspace_tools/export/uvision4.py
workspace_tools/targets.py
workspace_tools/toolchains/__init__.py
commit e059f65fd09694418f9fa4f38da90954ab9decfe
Author: 0xc0170 <c0170@rocketmail.com>
Date: Wed Feb 5 21:35:49 2014 +0100
pwm mbed HAL
- using jusst ftm hal from KPSDK, not yet functional
commit b784278872b1d66ce2940f4988e0479971de8bc0
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Feb 3 18:28:24 2014 +0100
uvision exporters for K64F, uticker - lptmr
- lptmr - no hal neiter driver, quick implementation using registers and internal clock
- exporters for K64F - using K60 1MB target, because K64F is not available in 4.7 yet
commit 7a030693e025c2bd456563f3e6f4456033d3f644
Author: Bogdan Marinescu <bogdan.marinescu@arm.com>
Date: Tue Jan 28 16:29:54 2014 +0200
Attempt to keep target's include directory structure
commit a2445b383224125abf4ee23bd17f1e685010a4a5
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Jan 27 07:25:16 2014 +0100
Original KPSDK include directory structure for device
commit 9c07c58bb9cf5e9d8be4c3bec117ee87a5ea81c0
Author: 0xc0170 <c0170@rocketmail.com>
Date: Fri Jan 24 16:51:17 2014 +0000
K64F ADC - initial commit
- ADC using KPSDK driver
commit 88e03ef8c5855a57887bb36cddfa5ab1491d400c
Author: 0xc0170 <c0170@rocketmail.com>
Date: Fri Jan 24 12:18:14 2014 +0000
GPI IRQ
- nvic vectors number correction
- gpio irq HAL implementation
commit e83f1108ae9f779ce240d6cdfe23532bfa00a55e
Author: 0xc0170 <c0170@rocketmail.com>
Date: Fri Jan 24 10:06:44 2014 +0000
PORT HAL implementation
- using gpio hal port
commit 75c21943200c8240d1edaf0a67f84b9f3b43db7f
Author: 0xc0170 <c0170@rocketmail.com>
Date: Thu Jan 23 16:02:36 2014 +0000
Serial (only 8bit at the moment), using KPSDK HAL
commit 296e79def617f005918cd8e2aa574f2908a362ca
Author: 0xc0170 <c0170@rocketmail.com>
Date: Thu Jan 23 08:35:50 2014 +0000
Folder structure correction for K64F - KPSDK
- scripts reverted, only new macro is available
- K64F specific headers are in HAL in device folder
commit f236b1ffcb9c8b443ad8483bca8b0e564a63f004
Author: 0xc0170 <c0170@rocketmail.com>
Date: Wed Jan 22 16:07:30 2014 +0100
update KPSDK to RC1
- the update causes few more dependences which were reported. Will be removed later (usb, boards)
- pit timer - hal use , pit driver uses us period
commit f02c5353d4920e885f803ad235e5e82001e97b94
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Jan 21 09:45:55 2014 +0100
KPSDK In/out declaration removal
commit 8c88e098b4dc4901753309f1e6db4adb8aca4384
Author: 0xc0170 <c0170@rocketmail.com>
Date: Tue Jan 21 09:12:41 2014 +0100
gpio_t struct only needs pinName
- gpio_init creates init objects on stack
commit 6b96d4ea2c5a6a2cb13571d740ffb679a62f8f3d
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Jan 20 19:59:03 2014 +0100
us ticker - pit implementation (not functional yet)
- pit driver in KPSDK - added sdk prefix to needed functions
commit 098e60a3846abcd4c9c00bd199b01d4b1899807f
Author: 0xc0170 <c0170@rocketmail.com>
Date: Mon Jan 20 13:01:58 2014 +0100
GPIO HAL - gpio_set implementation
commit 2bfebbfc75dcd08c20297ba42dc0cc82e5381a40
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sun Jan 19 20:46:55 2014 +0100
GPIO KPSDK changes
- gpio driver - sdk prefix, no lookuptable, input/output declaration, refactoring, set MUX to GPIO
- gpio api in mbed implementation, tested on blue led
commit d083733c485fbdd79ed9ce87100df9fee82294a7
Author: 0xc0170 <c0170@rocketmail.com>
Date: Sat Jan 18 17:14:09 2014 +0100
Update folder structure for KPSDK
- drivers addition
- usb (needed by drivers - needs to be fixed)
- utilities
- hal folder
- drivers/flash removed (needs to be fixed)
- usb host removed (needs to be fixed)
commit 9abcf3d94a2cc849cd6e586c1bad650b6a340a0c
Author: 0xc0170 <c0170@rocketmail.com>
Date: Thu Jan 16 11:06:16 2014 +0100
Initial commit for K64F
- KPSDK addition
- CMSIS + HAL for K64F
- HAL is not yet implemented
- scripts - target contain macros, ignore folders, cmsis copy folders
2014-04-02 14:41:06 +02:00
bcostm
b7035550f7
[NUCLEO_F030R8] Fix issue with last changes in error.h
2014-04-02 14:13:50 +02:00
bcostm
76afd011cd
[NUCLEO_F302R8] Correct D11-D13 pin names
2014-04-02 14:05:42 +02:00
bcostm
c2bfc1217b
[NUCLEO_F401RE] Fix issue with PWM on PC_9
...
The correct channel is 4 and not 3.
2014-04-02 14:02:56 +02:00
bcostm
d0c1c2003f
[NUCLEO_xxx] Fix compilation error with missing Port names
...
This error was due to the last changed in the error.h file.
2014-04-02 13:59:17 +02:00
bcostm
af8ec9b497
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-04-02 13:48:42 +02:00
Mihail Stoyanov
4110d25404
Added D14 and D15 pins for Arch Pro
2014-04-01 18:39:41 +01:00
dinau
bf8dc9fed0
[GCC_ARM][DISCO]: Modified compilatin error and silent warning.
2014-04-02 00:34:32 +09:00
Bogdan Marinescu
ad1ef13664
Merge pull request #240 from va7deo/DISCO_F407VG/AudioOut
...
Added AnalogOut for STM32F407 Discovery
2014-04-01 16:30:14 +01:00
darren
4638e6979a
Added AnalogOut for STM32F407 Discovery
2014-03-31 12:15:05 -07:00
neilt6
e57e69c772
Changed error(...) to a weak function
...
Made error(...) a weak function so that it can be overridden in
production projects. Also fixed several serial_api.c files that required
stdlib.h, but were getting it from error.h.
2014-03-31 10:27:14 -06:00
bcostm
f102fdaf0f
Add missing pin labels used in examples.
2014-03-28 18:16:10 +01:00
bcostm
d1c498d38b
[NUCLEO_F302R8] Change PWM_OUT signal assignation
...
The PWM output is not available on PB_3 because the TIMER2 is used by
the us_ticker.
2014-03-27 09:14:37 +01:00
bcostm
8299b1e6a0
[NUCLEO_F103RB] Add automatic HSE/HSI clock configuration
...
And:
- restart PLL in deepsleep function
- add more pins for SPI (the mbed pinout will be updated soon)
2014-03-26 17:47:11 +01:00
bcostm
66791e645f
[NUCLEO_L152RE] Add automatic HSE/HSI clock configuration.
...
Update also SPI prescaler and use mbed_sdk_init() function.
2014-03-26 10:06:27 +01:00
bcostm
8f523daa69
[NUCLEO_F302R8] Use mbed_sdk_init() to update the SystemCoreClock variable.
...
Definitely the best solution...
2014-03-25 18:26:42 +01:00
Bogdan Marinescu
8b4f07882b
Merge pull request #233 from bcostm/master
...
[NUCLEO_F302R8] Fix issue with SystemCoreClock variable update.
2014-03-25 13:33:05 +00:00
bcostm
575f9f9269
[NUCLEO_F302R8] Fix issue with SystemCoreClock variable update.
...
This variable must be placed outside the RAM initialization section.
2014-03-25 14:17:07 +01:00
Bogdan Marinescu
249f016cd8
Merge branch 'master' of github.com:mbedmicro/mbed
2014-03-25 11:44:32 +00:00
Bogdan Marinescu
71b306a2d4
Improvements to Sam's platform_init.c commit
2014-03-25 11:43:54 +00:00
Bogdan Marinescu
11bc6fdd03
Merge pull request #232 from bcostm/master
...
[NUCLEO_F302R8] Improvements in clock configuration, spi default pins, code formatting
2014-03-25 10:00:55 +00:00
bcostm
c675516f51
[NUCLEO_F302R8] Add automatic HSE/HSI clock configuration + change spi default pins
...
The clock configuration is first tried with external 8MHz clock, if fail
then tried with 8MHz xtal and finally with HSI.
2014-03-25 10:24:44 +01:00
sg-
ecad62a205
Updates to build_api.py (platform_init.c remains platform_init.o in mbed.bld) and moved NMI_Handler from gpio_irq_api.c to platform_init.c for KL05Z, KL25Z and KL46Z target platforms to take advantage of this change.
2014-03-24 18:41:19 -05:00
Todor
d5b1abf7b0
Added GCC_ARM for NUCLEO_F401RE
2014-03-24 22:57:51 +01:00
dinau
472a557288
[STM32F4-Discovery(STM32F407VG)] initial port
...
[DISCO_F407VG]
2014-03-24 23:56:58 +09:00
star297
908a9b97a4
Update system_LPC8xx.c
...
Add external 12Mhz crystal support as clock set up 2
2014-03-22 16:52:14 +00:00
bcostm
a5090fa636
[NUCLEO_F302R8] Code formatting
2014-03-22 15:50:50 +01:00
dinau
a43ba4740a
[STM32F407][LPC4088][GCC_ARM] Fixed compilation error.
...
This commit fix FPU error when compile with RTX OS.
2014-03-21 21:16:52 +09:00
dinau
86ee511c80
STM32F0-Discovery (STM32F051R8) initial port
2014-03-21 20:23:13 +09:00
Emilio Monti
93e44fb5a5
Merge pull request #221 from bcostm/master
...
[NUCLEO_F302R8] and [NUCLEO_L152RE] updates
2014-03-20 11:37:36 +00:00
bcostm
9ac335a095
[NUCLEO_L152RE] Typo corrections
2014-03-20 11:41:54 +01:00
bcostm
daefeedf1a
[NUCLEO_L152RE] Change the check of I2C clock frequency + update stop function + cleanup
2014-03-20 11:41:00 +01:00
bcostm
a8236d872a
[NUCLEO_L152RE] Add more ANALOG_IN, ANALOG_OUT, PWM, SERIAL and SPI pins
2014-03-20 11:32:29 +01:00
bcostm
ad9f894f10
[NUCLEO_L152RE] Change system clock to 32MHz + restart PLL after deepsleep
2014-03-20 11:28:30 +01:00
Bogdan Marinescu
ed8481eb97
Updated library version
2014-03-19 18:08:26 +00:00
Emilio Monti
92d3e97e18
Merge pull request #219 from tkuyucu/master
...
Merge after reverting the python scripts to generating hex file with UICR
2014-03-19 17:01:43 +00:00
Bogdan Marinescu
cf8fd1cf86
Merge branch 'master' of git://github.com/bcostm/mbed into bcostm-master
...
Conflicts:
workspace_tools/targets.py
2014-03-19 15:58:10 +00:00
bcostm
87a83a8603
[NUCLEO_F401RE] Fix compilation error with error.h include file
2014-03-19 15:38:39 +01:00
tkuyucu
d268bb0131
Merge remote-tracking branch 'upstream/master'
2014-03-19 15:17:09 +01:00
dinau
1683e9fba2
STM32VL-Discovery initial port
2014-03-19 21:39:01 +09:00
bcostm
64e19dd0ad
[NUCLEO_F401RE] Typo corrections
2014-03-19 09:57:27 +01:00
bcostm
5610184f9f
[NUCLEO_F401RE] Put back SERIAL_TX and SERIAL_RX pins
...
Even if it is a duplication of USB_TX/RX pins, it is better to have them
available.
2014-03-19 09:46:26 +01:00
bcostm
a98c380cf9
[NUCLEO_F401RE] Add INTERRUPT_IN to all pins
2014-03-19 09:44:20 +01:00
bcostm
4e907a09fd
[NUCLEO_F401RE] Add more ANALOG_IN, I2C and SPI pins
2014-03-19 09:42:33 +01:00
bcostm
9b8352d6db
[NUCLEO_F401RE] Add more SERIAL and PWM pins
2014-03-19 09:40:29 +01:00
bcostm
5963a310e3
[NUCLEO_F401RE] Restart PLL after deepsleep
2014-03-19 09:34:30 +01:00
bcostm
75716e08c5
[NUCLEO_F302R8] Add hal files
2014-03-18 15:33:34 +01:00
bcostm
e7262047a8
[NUCLEO_F302R8] Add cmsis files (last part)
2014-03-18 15:30:38 +01:00
bcostm
cc53000db8
[NUCLEO_F302R8] Add cmsis files (2nd part)
2014-03-18 15:27:34 +01:00
bcostm
041839a2ba
[NUCLEO_F302R8] Add cmsis files (first part)
2014-03-18 15:23:47 +01:00
bcostm
38c5c47000
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-03-18 14:58:04 +01:00
Emilio Monti
e2574ebaa5
Merge pull request #213 from dinau/gcc_arm_lpc11u35_stm32f407_mod
...
[GCC_ARM][LPC11U35][LPC1114][STMF407]: Modified build scripts
2014-03-18 13:24:49 +00:00
dinau
64df527fed
Merge branch 'mbed.org/master'
...
Conflicts:
workspace_tools/export/gccarm.py
2014-03-18 22:12:32 +09:00
bcostm
e0bf1e3094
Merge branch 'master' of https://github.com/mbedmicro/mbed
...
Conflicts:
libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_conf.h
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/spi_api.c
2014-03-18 13:17:53 +01:00
Mihail Stoyanov
3e40310534
Rename Nordic soft-device folder. The mbed IDE rejects dots in folder names.
2014-03-18 12:15:16 +00:00
dinau
218ea3a4da
[GCC_ARM][LPC11U35][LPC1114][STMF407]: Modified build scripts
...
1. Added to Makefile templates for LPC11U35 and STM32F407
2. Added output facility of HEX file, LIST file and MAP file
2014-03-18 20:32:53 +09:00
Bogdan Marinescu
c013d6e6a9
Restore serial_api.c on LPC1768
...
Michael's GPIO fix changed this to a previous version, this commit restores
it to the last version.
2014-03-18 10:53:33 +00:00
dinau
2d4fc59956
[LPC11U35][GCC_ARM][GCC_CR]: Modificatins for build.
...
1. Added to the export table in export_test.py.
2. Added to the build table in build_release.py
3. Added the compilation directives to RTX os files.
Notice:
It would be better to change WORDS_STACK_SIZE definition in libraries/rtos/rtx/cmsis_os.h
from 512 to 128 for LPC11U35 and LPC1114 micros compiled by GCC toolchain with newlib-nano,
but I don't know the good way at this moment.
2014-03-17 23:45:39 +09:00
dinau
e82279b5d5
[LPC11U35][GCC_CR] Added export functionality
2014-03-16 22:16:05 +09:00
dinau
07db34211f
Change folder structure
2014-03-15 15:24:07 +09:00
dinau
bf12cc5d67
[LPC1114][GCC_CR] Added export functionality
2014-03-15 10:21:36 +09:00
Toyomasa Watarai
7640da9126
[LPC1549] Fixed initial value of stack pointer
2014-03-15 00:05:02 +09:00
Emilio Monti
7d88efe969
Merge pull request #208 from dreschpe/master
...
Add additional peripherie for ST Nucleo L152 board
2014-03-14 09:54:17 +00:00
dreschpe
71bbdb6f1f
Add additional peripherie for ST Nucleo L152 board
...
Add code for . UART 3-5, SPI 2 + 3, I2C2
2014-03-13 23:38:09 +01:00
tkuyucu
1f962a16a4
Fixed syntactic bug in board.c
2014-03-13 12:37:09 +01:00
tkuyucu
4086fa09d9
merge with mbedmicro
2014-03-13 12:28:59 +01:00
tkuyucu
0f68519f85
Update after hex enabled firmware release
...
Removed SystemInit write to FWID.
Added DEVICE_ERROR_PATTERN for error signaling.
Exception for NRF added to board.c to keep irqs enabled since timer irq
is needed for the wait function.
Button pin names changed from BUTTON0 to BUTTON1 and from BUTTON1 to
BUTTON2.
2014-03-13 10:59:09 +01:00
Toyomasa Watarai
84a654d200
[LPC1549] Added AnalogOut API and PWM improvement
...
Added AnalogOut
I2C code cleanup
PWM now support 4ch
us_ticker now use RIT instead of SCT
2014-03-12 19:23:14 +09:00
Bogdan Marinescu
bca4f4e0e4
Fix previous pull request compilation errors
2014-03-11 17:02:10 +00:00
Bogdan Marinescu
5d2d302526
Merge pull request #206 from dreschpe/master
...
Fix SPI 16 Bit for ST Nucleo
2014-03-11 11:56:20 +00:00
dreschpe
ad09a83642
NUCLEO R030R8 16Bit SPI read and write
...
add 16 bit read and write
2014-03-10 17:45:46 +01:00
dreschpe
3d72f3dcbf
Revert "Add additional peripherie for ST Nucleo F401 board"
...
This reverts commit f973f4c1d7
.
2014-03-10 16:53:40 +01:00
Bogdan Marinescu
f34be80874
Fix compilation errors from GPIO pull request
2014-03-10 13:41:31 +00:00
Bogdan Marinescu
423ddcb86e
Merge pull request #198 from mazgch/gpio_api
...
proposed change of gpio_api (new update pull request)
2014-03-10 11:15:59 +00:00
bcostm
bb57ddc0c3
NUCLEO_F401RE: Change system clock to 84 MHz using HSI + PLL
...
Update also HSE_VALUE and SPI prescaler value.
2014-03-10 11:40:27 +01:00
dreschpe
f973f4c1d7
Add additional peripherie for ST Nucleo F401 board
...
Add UART 3
Add SPI 2 + 3
Add I2C 2 + 3
change external crystal value to 8MHz
patch SPI 16bit write bug
2014-03-09 18:20:01 +01:00
dreschpe
142db468ae
Add additional peripherie definitions for ST Nucleo F401RE bord
...
add UART 2 + 3
add SPI 2 + 3
add I2C 2 + 3
patch SPI 16 bit error
patch extenal cristal value to 8MHz
2014-03-09 18:15:47 +01:00
Toyomasa Watarai
855bafe8d5
Added PwmOut for LPC1549 target
2014-03-07 18:40:45 +09:00
Emilio Monti
955bd9a5c9
Update MBED_LIBRARY_VERSION to latest revision
2014-03-06 09:55:02 +00:00
mazgch
4e53124e70
fix more tabs to spaces
2014-03-04 15:07:30 +01:00
mazgch
8f5a2a580a
fix indentation and make helpers static inline
2014-03-04 15:00:28 +01:00
mazgch
c1d3cb5aa3
address concern from watarai-san about code size and performance by creating a set of common initialization functions
2014-03-04 14:09:41 +01:00
mazgch
be8bca4aa0
proposed change of gpio_api
2014-03-04 11:27:30 +01:00
Emilio Monti
6d79406112
Merge pull request #196 from toyowata/master
...
Added LPC11U35_501 target support
2014-03-04 10:20:01 +00:00
Toyomasa Watarai
7216c36d0f
Added LPC11U35_501 target support
...
Tested with CQ's LPC11U35/501 target board
2014-03-04 17:57:33 +09:00
mazgch
7ec41d4923
Merge branch 'master' of https://github.com/mbedmicro/mbed
...
Conflicts:
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c
2014-03-03 15:04:35 +01:00
Emilio Monti
8431561fc7
Merge pull request #194 from Sissors/master
...
LPC1768 writeable fix + KL25Z/KL46Z RTC pin function
2014-03-03 11:05:07 +00:00
mazgch
ca1d76687b
adding back tx fifo, this also fixes the tx interrupts
2014-03-03 12:00:32 +01:00
Sissors
56ce1e7290
Fixed LPC1768 writable
...
Now if no flow control is used it will check if holding register is
empty, instead of complete UART is empty: The TxIrq uses the same
requirement.
Currently BufferedSerial (and everyone else trying something similar)
goes haywire because it doesn't just check if writable, but also if done
writing.
If flow control is enabled nothing is changed.
2014-03-01 16:58:01 +01:00
Sissors
baa4003b95
Revert "Fixed writable for LPC1768"
...
This reverts commit 19ae097c62
.
2014-03-01 16:46:48 +01:00
Sissors
ace842b1f1
Fixed KL25Z/KL46Z RTC-IN pin function
...
It used to set it to alternate function 2, which is I2C, and still works
fine in all my tests. Not intended though, and might be giving others
issues. 1 is the RTC_CLKIN
2014-03-01 16:40:32 +01:00
Sissors
19ae097c62
Fixed writable for LPC1768
...
Bit 6 (0x40) is true if the peripheral is completely empty.
Bit 5 (0x20) is true if the transmit hold register is empty, which is
sufficient for it to be writable.
The TxIrq uses the same requirement, so now it works together and
BufferedSerial doesn't go haywire on LPC1768
2014-03-01 16:38:03 +01:00
Yihui Xiong
891b63a14e
add D0-D13 and A0-A5 for Arch V1.1 and Arch Pro
2014-02-26 21:15:06 +08:00
bcostm
f285e44f05
[NUCLEO_L152RE] Update license 2/2
2014-02-26 10:28:09 +01:00
bcostm
fe19c62f95
[NUCLEO_L152RE] Update license (1/2)
2014-02-26 10:24:48 +01:00
bcostm
512de10b66
[NUCLEO_F030R8] Update license
2014-02-26 10:08:51 +01:00
bcostm
41b6de2d08
Revert "[NUCLEO_xxx] Update license"
...
This reverts commit 4197942906
.
2014-02-26 10:04:42 +01:00
bcostm
4197942906
[NUCLEO_xxx] Update license
2014-02-26 10:04:14 +01:00
bcostm
e1facae89f
[NUCLEO_F401RE] Update STM32CubeF4 driver V1.0.0 (part 4/4)
2014-02-26 09:29:20 +01:00
bcostm
5a4e51ad4e
[NUCLEO_F401RE] Update STM32CubeF4 driver V1.0.0 (part 3/4)
2014-02-26 09:25:54 +01:00
bcostm
3a37a058c5
[NUCLEO_F401RE] Update STM32CubeF4 driver V1.0.0 (part 2/4)
2014-02-26 09:22:52 +01:00
bcostm
bb9983c4f8
Merge branch 'master' of https://github.com/mbedmicro/mbed
...
Conflicts:
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/PinNames.h
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/PinNames.h
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/PinNames.h
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/PinNames.h
2014-02-25 18:12:12 +01:00
bcostm
3a74e3f9e3
[NUCLEO_F401RE] Update STM32CubeF4 driver V1.0.0 (part 1/4)
2014-02-25 16:44:12 +01:00
0xc0170
97b1598698
TSI electrodes uses regular pinNames
2014-02-23 21:42:16 +01:00
bcostm
330d1a96b0
[NUCLEO_xxx] Add missing USBTX/USBRX pins definition
2014-02-23 16:50:40 +01:00
0xc0170
f28afaedfc
PinNames addition, KL05Z uARM online toolchain
...
- FRDM - TSI elec symbols
- Nucleo - SERIAL_TX pinName to USBTX , same for RX
- KL05Z - uARM set as online toolchain
2014-02-23 11:19:30 +01:00
tkuyucu
2dfdee5fe4
Merge remote-tracking branch 'upstream/master'
2014-02-21 12:54:53 +01:00
tkuyucu
edc9095e7d
SoftDevice added.
2014-02-21 12:53:58 +01:00
sg-
5a64111465
Merge branch 'nxp_merge'
...
Conflicts:
workspace_tools/export/uvision4.py
2014-02-20 16:30:38 -06:00
Emilio Monti
65f5457fff
Merge pull request #181 from Sissors/master
...
Enable sleep for KL05Z
2014-02-20 18:48:15 +00:00
Sissors
26f4773c60
Enable sleep for KL05Z
2014-02-20 19:15:27 +01:00
tkuyucu
8920003345
Merge remote-tracking branch 'upstream/master'
2014-02-20 12:43:26 +01:00
tkuyucu
2ec518a249
Added checks on compilation flags.
2014-02-20 12:43:06 +01:00
Emilio Monti
96dbf718f7
Merge pull request #178 from sg-/FRDM-fix
...
add arduino I2C naming to PinNames.h
2014-02-20 11:05:56 +00:00
sg-
48739cc5e4
add arduino I2C naming to PinNames.h
2014-02-19 15:02:03 -06:00
Emilio Monti
32764eb5d5
Merge pull request #177 from bcostm/master
...
Change us_ticker timer (32-bit) on Nucleo L152RE and F401RE
2014-02-19 17:01:04 +00:00
bcostm
de4e1be4ef
[NUCLEO_F401RE] Change us_ticker timer (32-bit one)
...
Remove also the disable/enable timer update IT in sleep (no more
necessary).
2014-02-19 17:51:22 +01:00
tkuyucu
3b702158ae
Writing FWID to UICR in SystemInit
2014-02-19 17:26:59 +01:00
bcostm
ae97da7b56
[NUCLEO_L152RE] Change us_ticker timer (32-bit one)
2014-02-19 16:29:09 +01:00
bcostm
fe63154f89
[NUCLEO_F401RE] Remove PB_11 pin.
2014-02-19 13:01:41 +01:00
tkuyucu
ec220d9996
Merge remote-tracking branch 'upstream/master'
2014-02-19 12:45:10 +01:00
tkuyucu
befaefcdb8
Updated copyright headers
...
commented out unused variable in cmsis_nvic.c
2014-02-19 12:43:56 +01:00
Toyomasa Watarai
ca527e4dd9
Corrected wrong pin names
2014-02-19 19:25:20 +09:00
0xc0170
cd46fa2a73
CMSIS system for KL05Z update
...
- clocking from external 32kHz is set by default
2014-02-19 08:52:59 +01:00
sg-
be8cccd16f
Tabs to spaces...
2014-02-18 14:16:46 -06:00
sg-
a09c1a724f
Added some PinNames for Arduino compatibility and cleaned up white spaces
2014-02-18 14:12:40 -06:00
sg-
1f50bfc7c5
Update peripheral pin mapping and pin names
2014-02-18 12:08:11 -06:00
Emilio Monti
8583716513
Merge pull request #174 from Sissors/master
...
Properly round non integer bus-frequencies in MHz
2014-02-18 17:48:06 +00:00
Sissors
65d66455c0
Properly round non integer bus-frequencies in MHz
...
PIT prescaler now rounds to nearest instead of down. Since when FLL is
used (default on KL05Z, but also possible on others), the bus
frequencies is 23.986MHz, rounding down is bad.
2014-02-18 18:40:33 +01:00
bcostm
fd0754864e
[NUCLEO_xxx] Fix issue with ticker + add volatile
2014-02-18 16:40:54 +01:00
Emilio Monti
a8f17f5426
Fix DAC initialization#
2014-02-18 13:59:58 +00:00
Emilio Monti
10297b352c
Merge pull request #172 from bcostm/master
...
[NUCLEO_xxx] Fix us_ticker and analog_out issues when -O3/-Otime options are used
2014-02-18 11:02:46 +00:00
Emilio Monti
18bc485181
Merge pull request #170 from sg-/kl05_uarm
...
Added uARM support for KL05Z and added target to build_release.py. Also ...
2014-02-18 10:20:59 +00:00
Emilio Monti
a2a5490f5d
Merge pull request #171 from Sissors/master
...
Fixed LPC1114 InterruptIn for Port1 (and higher)
2014-02-18 10:19:35 +00:00
bcostm
c482ad79a1
[NUCLEO_L152RE] Fix issue with analog_out and -O3/Otime options
2014-02-18 10:56:16 +01:00
bcostm
1c2bc03f99
[NUCLEO_xxx] Fix us_ticker issue
2014-02-18 09:34:32 +01:00
bcostm
636114b4d1
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-02-18 08:19:31 +01:00
Sissors
8da53457ab
Fixed LPC1114 InterruptIn for Port1 (and higher)
...
Channel was only calculated using bits set, port number was ignored.
2014-02-18 07:58:25 +01:00
sg-
bded790c9b
Added uARM support for KL05Z and added target to build_release.py. Also updated uvision4.py to UBLOX_C027 from previous name C027
2014-02-17 22:12:16 -06:00
Emilio Monti
b87dac9fce
fix us_ticker issue for Nucleo boards
2014-02-17 16:13:40 +00:00
tkuyucu
4d767c0dc8
Updated Sleep
...
using WFE for nordic sleep
Removed systemoff call from deepleep since it does not retain program
state.
2014-02-17 15:54:39 +01:00
tkuyucu
cfb9b992c3
Merge remote-tracking branch 'upstream/master'
2014-02-17 11:25:54 +01:00
tkuyucu
4f6b0b6443
nordic_global.h file now included
2014-02-17 10:31:20 +01:00
bcostm
19b70d8833
[NUCLEO_xxx] Add other #pragma O0/Ospace for ticker
2014-02-17 09:10:14 +01:00
Toyomasa Watarai
01cfe17b3d
[LPC1549] Added InterruptIn support
2014-02-16 22:38:09 +09:00
bcostm
e9ff16fa11
[NUCLEO_xxx] Change code optimization for us_ticker_read()
...
Fix issue when the hal is compiled with -O3 -Otime
2014-02-16 12:13:42 +01:00
ytsuboi
a2f2f44258
[LPC1549] Added I2C master support
2014-02-15 18:23:06 +09:00
Toyomasa Watarai
95f4057499
[LPC1549] Added AnalogIn support
2014-02-15 15:18:35 +09:00
tkuyucu
d7dae24aaa
Removed UICR edit.
2014-02-14 12:32:04 +01:00
Toyomasa Watarai
e2a47d9daa
[LPC1549] Corrected wrong pin name
2014-02-14 19:14:05 +09:00
Toyomasa Watarai
5fbea95fe2
[LPC1549] Added Arduino Shield Receptacles Names
2014-02-14 16:18:48 +09:00
bcostm
fda11bae82
[NUCLEO_xxx] Fix issue with attach_us function
2014-02-13 14:11:01 +01:00
Toyomasa Watarai
1c2e2ce572
[LPC1549] Fixed us_ticker problem
2014-02-13 17:00:25 +09:00
Toyomasa Watarai
07706f0821
[LPC1549] Added SPI support
2014-02-13 16:52:38 +09:00
ytsuboi
78d4c7345b
[LPC1549] Added UART support
2014-02-12 23:43:27 +09:00
ytsuboi
5f1f6c7417
[LPC1549] put PINASSIGN0-15 to PINASSIGN[] on LPC15xx.h
...
and fixed typo on system_LPC15xx.c
2014-02-12 16:13:00 +09:00
bcostm
156be94791
[NUCLEO_F401RE] Add uvision exporter + remove compilation warning
2014-02-11 21:08:36 +01:00
bcostm
90c261a513
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-02-11 16:50:40 +01:00
bcostm
e9394fc5f5
Add exporters for NUCLEO_L152RE and F030R8
2014-02-11 16:38:37 +01:00
Emilio Monti
17499c34d2
Remove stm32f4xx_hal_msp template
2014-02-11 14:51:18 +00:00
Toyomasa Watarai
741bfc22b1
[LPC1549] Fixed GPIO
...
Clean-up PinNames.h and GPIOrelated functions.
2014-02-11 23:18:59 +09:00
ytsuboi
e06e842221
[LPC1549] initial commit
2014-02-11 15:54:38 +09:00
bcostm
ddce5e741d
[NUCLEO_F103RB] Correction in SPI clock setting.
2014-02-10 16:33:45 +01:00
bcostm
adab2d9fbc
[NUCLEO_F401RE] Correction in GPIO setting (wrong macro used).
2014-02-10 15:17:46 +01:00
Emilio Monti
9272cdeb45
Merge pull request #161 from bcostm/master
...
Add NUCLEO_F401RE, improvements
2014-02-08 19:33:17 +00:00
bcostm
3a64c7f9d5
[NUCLEO_F401RE] Add toolchain_arm_micro files
2014-02-08 19:12:37 +01:00
sg-
fad5c27038
Add default interrupt handler for Freescale NMI_b pins.
2014-02-07 18:20:45 -06:00
sg-
7ef411e7fb
Clean up tabs to spaces
2014-02-07 18:13:02 -06:00
sg-
5237b766e6
Updated PinMap PinMap_PWM for KL05Z, KL25Z and KL46Z targets. Should support all MCU pins
2014-02-07 18:07:11 -06:00
tkuyucu
026b6610a8
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
libraries/tests/mbed/portinout/main.cpp
libraries/tests/mbed/portout_portin/main.cpp
libraries/tests/mbed/sd/main.cpp
libraries/tests/mbed/spi_slave/main.cpp
workspace_tools/targets.py
workspace_tools/toolchains/arm.py
workspace_tools/toolchains/gcc.py
workspace_tools/toolchains/iar.py
2014-02-07 11:04:50 +01:00
tkuyucu
9b701f6a49
No Ports reduced to 1
...
Licensing headers replaced with mbed Apache.
SPI/SPIS pin configuration is done via PIN_CNF
2014-02-07 10:28:34 +01:00
bcostm
e69063a971
[NUCLEO_F401RE] Add Cube F4 driver V1.0.0RC2
2014-02-07 09:40:12 +01:00
bcostm
c08d507168
[NUCLEO_F401RE] Many corrections on pinmap, RTC, ...
2014-02-07 09:36:31 +01:00
bcostm
4ee89986b7
[NUCLEO_F103RB] Update mapping file.
...
Solve compilation error with flash.
2014-02-07 09:33:15 +01:00
bcostm
a3d0a9bd96
[NUCLEO_F401RE] Add cmsis files
2014-02-05 18:08:43 +01:00
bcostm
99b0820eb3
[NUCLEO_F401RE] Add hal files
2014-02-05 17:58:01 +01:00
tkuyucu
43fe5a4e44
Hardcoded location for FWID is used.
2014-02-04 15:03:44 +01:00
bcostm
01fc443ef8
Add missing interrupt enable
2014-02-04 13:03:00 +01:00
tkuyucu
b77d61416f
UICR values are written by the SystemInit, if missing.
2014-02-04 10:20:40 +01:00
tkuyucu
1eba6888b4
debug comments removed
2014-02-04 08:33:54 +01:00
tkuyucu
08c145aaa6
files and folders renamed to remove case sensitivity
2014-02-04 08:32:34 +01:00
tkuyucu
84b2255ce2
Reformatting
2014-02-03 16:36:23 +01:00
tkuyucu
804188a6f7
Clean up and Reformatting
...
Unused header files are removed from the cmsis dir.
Tab characters replaced by 4 spaces.
Brackets and parenthesis formatted.
Spi slave functions updated for faster response.
2014-02-03 10:33:34 +01:00
bcostm
4ad143ae95
Typo corrections
2014-02-01 22:05:45 +01:00
bcostm
ae20d141c5
[NUCLEO_F030R8] Remove timer update interrupt in sleep
2014-02-01 19:15:23 +01:00
bcostm
2663367dc5
[NUCLEO_L152RE] Remove timer update interrupt in sleep
...
Otherwise the first update interruption will wake-up the MCU.
2014-02-01 19:05:03 +01:00
bcostm
3fba65b769
[NUCLEO_F103RB] Update to std periph driver V3.6.1
2014-02-01 18:48:55 +01:00
bcostm
b275fc579a
[NUCLEO_F103RB] Change ticker to use one timer...
...
and add another pwm output.
2014-02-01 13:27:56 +01:00
bcostm
0110c3eec4
[NUCLEO_L152RE] Add PWM output, ticker with one timer
...
The us_ticker uses now only one timer instead of two. Another PWM output
on TIM4 has been added.
2014-01-31 18:14:31 +01:00
bcostm
e9fe1394a5
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-01-31 11:41:14 +01:00
Bogdan Marinescu
2665d5bac4
Modified call-before-main mechanism
...
Added a new function (mbed_sdk_init) that can be used by the SDK itself to
do initializations before main() is called.
2014-01-31 11:58:18 +02:00
Bogdan Marinescu
74409cbd59
Re-apply 178f881566
on top of the new changes
2014-01-31 11:50:35 +02:00
Bogdan Marinescu
f2e1518220
Merge branch 'master' of git://github.com/Sissors/mbed into Sissors-master
...
Conflicts:
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/analogin_api.c
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/analogout_api.c
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/gpio_api.c
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/i2c_api.c
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/pinmap.c
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KL05Z/pwmout_api.c
2014-01-31 11:46:22 +02:00
bcostm
a865de928b
[NUCLEO_F030R8] Add pwmout api
2014-01-31 10:32:11 +01:00
Bogdan Marinescu
2a782f5067
Merge pull request #149 from cobrid/master
...
Remove unnecessary semicolons.
2014-01-31 00:55:41 -08:00
Bogdan Marinescu
6c4dc5cd33
Merge pull request #155 from sg-/c027_lpc1768_refactor
...
Forgot to add this file...
2014-01-31 00:54:56 -08:00
bcostm
6a30215feb
[NUCLEO_F030R8] Modify us_ticker to use only one timer
2014-01-31 08:27:46 +01:00
Sissors
fb3fe6003a
Put PeripheralPin constant values in .c files, definitions in .h
2014-01-30 18:19:34 +01:00
sg-
1db40f89a7
Forgot to add this file...
2014-01-30 09:55:50 -06:00
bcostm
77bb1560ba
[NUCLEO_L152RE] Change SPI frequency setting
2014-01-30 15:30:33 +01:00
bcostm
ca173a1867
[NUCLEO_F030R8] Add SPI api, corrections in I2C
2014-01-30 15:29:07 +01:00
Bogdan Marinescu
dba523f83f
Merge pull request #154 from bcostm/master
...
Update of I2C, SPI, SLEEP for NUCLEO_F103RB and L152RE
2014-01-30 04:02:04 -08:00
bcostm
08941aaba1
[NUCLEO_L152RE] Add sleep api
2014-01-30 11:14:59 +01:00
Bogdan Marinescu
6e82b54538
Merge branch 'c027_lpc1768_refactor' of git://github.com/sg-/mbed into sg--c027_lpc1768_refactor
...
Conflicts:
workspace_tools/export/uvision4.py
2014-01-30 11:31:56 +02:00
bcostm
90f7a2b80d
[NUCLEO_L152RE] Change AF setting before GPIO setting
2014-01-30 10:13:59 +01:00
bcostm
f712477c36
[NUCLEO_F103RB] Change AF setting before GPIO setting
2014-01-30 10:13:35 +01:00
bcostm
3ace84aece
[NUCLEO_F030R8] Change AF setting before GPIO setting
2014-01-30 10:13:16 +01:00
bcostm
955223fd2c
[NUCLEO_L152RE] Update std periph driver to V1.3.0
2014-01-30 09:53:14 +01:00
bcostm
6f06f6ecd2
[NUCLEO_L152RE] Correction on I2C gpio configuration + code cleanup
2014-01-30 09:49:51 +01:00
bcostm
740f801bb5
[NUCLEO_F103RB] Correction on I2C gpio configuration
2014-01-30 09:48:57 +01:00
tkuyucu
05d6525285
Pwm timer interrupt priority set to 1.
...
When timer interrupt priority is at 3, the pwm functionality can be
disturbed by an active ble connection.
2014-01-30 09:24:53 +01:00
bcostm
139f4fb16f
[NUCLEO_L152RE] Add SPI api
2014-01-30 07:56:35 +01:00
sg-
28f0cf71b3
Update to macro test in board.c, remove C027.cpp(h), set default IO in mbed_main and fixed copy paste error in MBED_LPC1768 reserved_pins.h
2014-01-29 22:33:41 -06:00
bcostm
3c54df796f
[NUCLEO_F103RB] Minor corrections on I2C master api
2014-01-29 15:17:10 +01:00
Sissors
67972d03af
Replaced tabs by spaces
...
Now Martin is happy :)
2014-01-29 14:43:26 +01:00
sg-
f1fa9a0c25
Added support for C027. Small re-factor to LPC1768 to accommodate this.
2014-01-28 20:44:32 -06:00
Sissors
2c2bf35a77
Refactored KLXX code
...
See description. Everything HAL wise went into KLXX, with target
specific in subfolders. Only interrupt and spi are in target specific
since they are target specific.
Also you cannot set the uart anymore for 9 or 10 databits (the code
supported it to set it like that, but the actually read/write only did
8-bits)
2014-01-28 18:57:07 +01:00
bcostm
015887091d
[NUCLEO_F030R8] Add I2C master api
2014-01-28 16:17:18 +01:00
0xc0170
178f881566
KL05Z/LPC1768 coide tmpl, KL05Z GCC warnings fixed
...
- LPC1768 - coide has issues with CMSIS-DAP debugging, already reported.
Added this template but not enabled yet.
- KL05Z export for coide
- KL05Z - supressed warnings in HAL
2014-01-27 20:37:58 +01:00
Bogdan Marinescu
887fc11980
Merge pull request #151 from bcostm/master
...
[NUCLEO_F030R8] Fix vectors remap in RAM issue and more...
2014-01-27 07:25:03 -08:00
bcostm
6866978792
[NUCLEO_F030R8] Fix vectors remap in RAM issue and more...
...
Improve gpio api, add gpio_irq, add sleep.
2014-01-27 15:53:00 +01:00
Bogdan Marinescu
a31ec9c5f7
Merge pull request #150 from bcostm/master
...
Add NUCLEO_L152RE
2014-01-27 06:22:13 -08:00
bcostm
1ccef1a441
[NUCLEO_L152RE] Improvements of gpio and gpio_irq api
2014-01-27 10:02:15 +01:00
bcostm
d14992dcfd
[NUCLEO_F103RB] Improvement of gpio and gpio_irq api
2014-01-27 09:59:07 +01:00
Chiel de Roest
8b3cdc0067
Remove unnecessary semicolons.
...
Remove unnecessary colon that was placed in all SPI drivers for NXP
targets.
2014-01-24 22:49:09 +01:00
neilt6
8e346fc498
Fixed sleep and disabled semihosting on LPC11U35
...
I created 3 separate device.h headers for the three LPC11UXX targets,
and disabled the features that the LPC11U35 board doesn't have like
Semihosting and LocalFileSystem. I also made the call to
mbed_interface_disconnect() require DEVICE_SEMIHOSTING, which prevents
calls to sleep() from hanging the system on an LPC11U35.
2014-01-24 10:51:48 -07:00
bcostm
4afc4e4a3b
[NUCLEO_F030R8] Add rtc api
2014-01-24 14:52:13 +01:00
bcostm
c9bd30590f
[NUCLEO_L152RE] Add rtc api
2014-01-24 14:51:43 +01:00
bcostm
3adc6b41df
[NUCLEO_F030R8] Add analogin api
2014-01-24 12:17:15 +01:00
bcostm
81482e6d92
[NUCLEO_L152RE] Add gpio_irq api
2014-01-22 18:36:35 +01:00
bcostm
486ebece6b
[NUCLEO_F030R8] Add serial api
2014-01-22 17:59:04 +01:00
bcostm
a5726b883b
[NUCLEO_F030R8] Add gpio, port, ticker api, cmsis files
2014-01-22 17:53:54 +01:00
tkuyucu
689a484d23
Stack and heap initialization is removed from the startup file. This solves the mbed runtime problems with the SoftDevice enabled.
2014-01-22 13:58:30 +01:00
bcostm
e577faef66
[NUCLEO_L152RE] Add analog out api
...
and add macros for GPIOs, change master timer for ticker.
2014-01-22 08:22:01 +01:00
bcostm
e3e5180256
[NUCLEO_F103RB] Cleanup code
...
Add STM_PIN and STM_PORT macros for GPIOs.
2014-01-22 07:48:10 +01:00
bcostm
0af4419c74
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-01-20 18:09:48 +01:00
bcostm
f27e93cf3f
[NUCLEO_L152RE] Add analog out api
2014-01-20 17:45:35 +01:00
bcostm
23e383be36
[NUCLEO_L152RE] Add pwmout api
2014-01-17 17:14:29 +01:00
bcostm
a2efcd2c92
[NUCLEO_L152RE] analog_in improvement
2014-01-16 13:25:43 +01:00
bcostm
e5b641777a
[NUCLEO_L152RE] Add analogin api
2014-01-16 13:16:35 +01:00
Bogdan Marinescu
8ef99f8562
Merge pull request #145 from Sissors/master
...
Added MCGPLLFLL clock function, squished some 'bugs'
2014-01-14 14:12:48 -08:00
Sissors
153a9ddb49
Added MCGPLLFLL clock function, squished some 'bugs'
...
PWM bug mentioned here:
https://mbed.org/questions/2315/BUG-Exporting-to-ARM-GCC-does-not-work-n/
Fast internal osc prescaler wasn't taken into account at us_ticker
interrupt clock source, now it is.
2014-01-14 22:57:43 +01:00
0xc0170
937430a130
clk freq header file
...
- HAL clock improvement
2014-01-14 17:51:09 +01:00
0xc0170
4e5993e7ee
Merge branch 'master' into dev_k20d5m_testing
2014-01-14 15:47:22 +01:00
bcostm
ffb7f13018
[NUCLEO_F152RE] Correction in pinmap
2014-01-14 10:14:08 +01:00
bcostm
ba5866b35e
[NUCLEO_L152RE] Fix bugs with gpio and serial
2014-01-13 14:20:27 +01:00
Bogdan Marinescu
f1904ba15c
Merge pull request #140 from Sissors/master
...
KL46Z: Added Sleep, LED3 and LED4 definitions, switches
2014-01-13 02:37:11 -08:00
bcostm
cbfdc4e26d
[NUCLEO_L152RE] Cleanup in available ports/pins
2014-01-13 10:27:47 +01:00
bcostm
bef6fdf339
[NUCLEO_F103RB] Code cleanup, correction in pins definition
2014-01-13 09:24:31 +01:00
Sissors
aa0f7a7026
Added clk_freqs.h for clock related functions
...
Serial now also works when PLL/FLL is disabled and extosc is available.
us_ticker tries to divide extosc to 1MHz, otherwise use fast internal
oscillator
2014-01-11 19:10:36 +01:00
Sissors
ebdbf53ba1
Updat PWM prescaler correctly
2014-01-11 09:40:10 +01:00
Sissors
eedce209c5
Removed hardcoded frequencies, replaced by automatically calculated
...
ADC frequency 1.5MHz -> 6MHz (if possible, otherwise it tries as close
to, but less than 6MHz)
pwm tries to get its clock as close as possible to 1MHz, but not lower
than 1MHz
2014-01-10 21:45:26 +01:00
bcostm
7d145c8dc4
[NUCLEO_L152RE] Add first files (gpio, pinmap, us_ticker)
2014-01-10 17:46:18 +01:00
tkuyucu
fdb41b0ccb
serial will choose the nearest lower baudrate if an unsupported value is chosen.
2014-01-10 15:53:43 +01:00
tkuyucu
29560a3195
SPI and I2C will accept unsupported frequencies and match them with the closest available frequency instead of generating an error.
...
Sleep is now implemented (deepsleep will cause nrf to work in System OFF mode).
2014-01-10 14:21:43 +01:00
tkuyucu
c7eabcd977
Interrupt priorities set to low application level (3) in order to ensure no conflict with the SD.
2014-01-09 14:03:20 +01:00
Andreas Rebert
e8b09cbc2d
[LPC4088] Corrected an invalid header file dependecy.
2014-01-09 09:10:10 +01:00
Andreas Rebert
1448b871c1
[LPC4088] Making it possible to reserve stack space by weak function.
2014-01-09 08:52:33 +01:00
Andreas Rebert
3157d5afb2
[LPC4088] Making it possible to reserve stack space by weak function.
2014-01-09 08:51:30 +01:00
Sissors
7df2622a76
SPI clock fix for KL05Z and KL46Z
2014-01-09 07:57:45 +01:00
Andreas Rebert
a1a2fec259
[LPC4088]: Corrected RAM size in linker script (ARM_GCC)
2014-01-09 07:44:15 +01:00
Sissors
ed7954f5ac
Fixed KL25Z SPI clock
...
https://mbed.org/questions/2309/spifrequency-for-KL25Z/
2014-01-08 21:00:40 +01:00
0xc0170
4732796ab4
PWM channels definition update, serial uses external global variable system clock
2014-01-08 17:32:28 +01:00
0xc0170
ffac7e6d6a
PWM - pwmload removed from the objects header file
2014-01-08 12:05:11 +01:00
tkuyucu
694f9c726c
fixes and updates after the mbed unit tests have been carried out.
2014-01-08 11:14:19 +01:00
0xc0170
889952790f
PWM - mux addition
2014-01-08 10:58:51 +01:00
0xc0170
a6e45b7d38
spi - disable rx/tx fifo, write/readable flags change
2014-01-07 20:23:54 +01:00
Sissors
e5f13c047c
Added Sleep, LED3 and LED4 definitions, switches
...
Sleep = KL25Z sleep (verified to work correctly)
LED3 = LED1, LED4 = LED2 (for compatibility, similar to LED3 = LED4 in
KL25Z code)
SW1 and SW3 for the two switches (SW2 is reset switch)
2014-01-07 18:35:41 +01:00
0xc0170
5d95041620
PWM - legacy mode, LOAD use for updating
2014-01-06 18:43:17 +01:00
bcostm
dace8653e6
[NUCLEO_F103RB] Remove HSE re-configuration in sleep code.
2014-01-06 15:07:49 +01:00
bcostm
989c66165c
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-01-06 11:22:35 +01:00
Bogdan Marinescu
b311c56b44
Merge pull request #138 from ytsuboi/master
...
[LPC812] Add SPISlave function
2013-12-31 07:25:41 -08:00
ytsuboi
4fbf286ee3
[LPC812] change ssp_busy() to check RXOV
2013-12-31 20:24:46 +09:00
0xc0170
aa501c003b
Shared PORT interrupt - check improved
...
- clocks must be enabled and also interrupt detected, otherwise
interrupt handler is not invoked.
2013-12-31 08:34:12 +01:00
0xc0170
a384d1d875
pwm channel 7 correction, enhanced mode
2013-12-30 18:12:01 +01:00
0xc0170
dc19dcbb94
fix - KL46Z cmsis header (v2.2), shared interrupt PORTCD
...
- Ports C and D sharing same interrupt vectors
- KL46Z CMSIS header update
- InterruptIn methods irq_disable/enable comment update
2013-12-30 12:19:24 +01:00
0xc0170
8d7c3da179
i2c clock from global clock value, syntax corrections
2013-12-30 11:39:36 +01:00
ytsuboi
0a11767877
[LPC812] enable SPISlave
2013-12-29 19:18:50 +09:00
0xc0170
ee7c33d055
K20D5M default irq handler
2013-12-26 12:11:32 +01:00
0xc0170
15e246fc9f
Merge branch 'master' into K20D50
2013-12-26 09:05:11 +01:00
0xc0170
63526032d9
K20D5M flash algo for template
2013-12-26 09:03:19 +01:00
0xc0170
78140c4aa1
LPTMR timer - OSCEN set, GCC startup vectors add
2013-12-25 20:02:56 +01:00
Bogdan Marinescu
82aa7b7f2b
Enable RTOS with GCC_CR
...
1. Provide the required __end__ symbol
2. Call software_init_hook() if present, which in turn starts the RTOS
The fix was applied for all targets with a TOOLCHAIN_GCC_CR folder,
but it only works with LPC1768 and LPC4088 because of incomplete or
missing support for GCC_CR and/or the RTOS for the other targets.
Tested by running RTOS_1, RTOS_2 and RTOS_3 with LPC1768 and LPC4088.
2013-12-24 23:13:50 +02:00
0xc0170
b73b57db26
I2C, pullup
2013-12-23 20:56:48 +01:00
0xc0170
c9a029ce6f
Merge branch 'master' into K20D50
2013-12-23 20:01:05 +01:00
0xc0170
366221524a
SPI, RTC, Serial changes
...
- SPI - implementation
- RTC - there's 32.768kHz crystal, use that as a source
- Serial - 10bit transfer
2013-12-23 19:57:10 +01:00
tkuyucu
eb5fd7d6e0
timer overflow sync issue fixed.
2013-12-20 16:37:28 +01:00
Bogdan Marinescu
728084c52f
Merge pull request #134 from Joey-Ye/master
...
Clean up GCC_ARM startup code
2013-12-20 06:53:16 -08:00
Joey Ye
feacef8f3a
Clean up GCC_ARM startup code
2013-12-20 15:08:20 +08:00
Bogdan Marinescu
425e197ba6
Fix missing case in flow control code
2013-12-19 17:59:24 +02:00
tkuyucu
4756fb3a51
timer interrupts implemented correctly. TimeOut and Ticker classes should work.
2013-12-19 15:53:11 +01:00
tkuyucu
f0994c710b
SoftDevice is now enabled by the startup code by calling EnableSoftDevice (defined in system_nRF51822).
2013-12-19 15:09:09 +01:00
Bogdan Marinescu
5f62a399db
Added preliminary printf() support to RawSerial
2013-12-19 15:05:17 +02:00
bcostm
28120ffb19
[NUCLEO_F103RB] Change license text in ALL target files
2013-12-19 11:44:15 +01:00
tkuyucu
76d25ffb25
16-bit timer with sw overflow is used instead of the 32-bit timer.
2013-12-19 10:41:16 +01:00
Bogdan Marinescu
34a43eaa41
Merge branch 'flow_control'
...
Conflicts:
workspace_tools/tests.py
2013-12-19 11:36:45 +02:00
Bogdan Marinescu
bb8ed20a47
LPC1768 flow control fixes
...
- Disable TX buffer, this isn't compatible with the software CTS implementation
- Properly set hardware RTS/CTS pins when possible
- Modified test to use hardware CTS and software RTS
2013-12-19 11:31:23 +02:00
Yihui Xiong
6501b16213
Merge remote-tracking branch 'upstream/master'
2013-12-19 12:38:04 +08:00
Yihui Xiong
a3465b5eac
fix 16bit timer pwm output
2013-12-19 12:31:31 +08:00
Joey Ye
9213137011
Discard \r change as pull request rejected
2013-12-19 09:30:18 +08:00
tkuyucu
3c2258956b
AnalogIn, Interrupts, and I2C are added.
2013-12-18 15:04:16 +01:00
0xc0170
988894e837
Merge branch 'master' into K20D50
2013-12-17 16:13:27 +01:00
bcostm
9702a131d4
Merge branch 'master' of https://github.com/mbedmicro/mbed
2013-12-17 11:10:12 +01:00
Bogdan Marinescu
c560db3233
Merge branch 'KL46_DEV' of git://github.com/sg-/mbed into sg--KL46_DEV
...
Conflicts:
README.md
2013-12-17 12:06:12 +02:00
bcostm
c84b8f9193
[NUCLEO_F103RB] Use HSI/LSI instead of HSE/LSE
...
Due to Nucleo board revision C requirements.
2013-12-17 11:04:28 +01:00
Bogdan Marinescu
572b22395f
Merge pull request #129 from bcostm/master
...
[NUCLEO_F103RB] InterruptIn, Sleep, RTC added
2013-12-17 00:41:36 -08:00
Bogdan Marinescu
2fb9de927c
Merge pull request #127 from 0xc0170/dev_KL05Z_exporters
...
Dev kl05 z exporters
2013-12-17 00:40:49 -08:00
sg-
33ae2fe364
Updates to comments and README.md to add new target links
2013-12-16 18:41:39 -06:00
sg-
4445a11673
Add pulldown support to PinMode enum and fix pullup value to match register definition
2013-12-16 13:05:13 -06:00
bcostm
adce27f269
[NUCLEO_F103RB] Add RTC
2013-12-16 14:33:58 +01:00
bcostm
f8ecc9be46
[NUCLEO_F103RB] Allow ACK polling with I2C (again)
...
Go back to the last modification made by Bogdan.
2013-12-16 10:13:31 +01:00
bcostm
967509de53
[NUCLEO_F103RB] Add sleep
2013-12-16 09:56:00 +01:00
0xc0170
5747a4502d
One section for vectors and flash protection bits. The unused space is filled with 0xff
2013-12-15 23:30:03 +01:00
0xc0170
f7cee14193
KL05Z GCC support, exporters for arm_gcc, uvision
2013-12-15 11:54:44 +01:00
bcostm
956064b4bc
[NUCLEO_F103RB] Add InterruptIn
2013-12-14 18:53:57 +01:00
Bogdan Marinescu
bb3d95e9e5
Merge branch 'master' of github.com:mbedmicro/mbed
2013-12-13 13:37:50 +02:00
Bogdan Marinescu
1ae5a1d340
Added pin definitions for LPC11U35 quick stard board
2013-12-13 13:35:19 +02:00
Bogdan Marinescu
da605b82a5
Merge pull request #126 from bcostm/master
...
[NUCLEO_F103RB] Update PWM IOs used + I2C cleanup
2013-12-13 01:29:29 -08:00
Bogdan Marinescu
a164c6f498
[NUCLEO_F103RB] Allow ACK polling with I2C
2013-12-12 20:00:02 +02:00
bcostm
18136e3f09
[NUCLEO_F103RB] Update PWM IOs used + I2C cleanup
2013-12-12 15:44:21 +01:00
Bogdan Marinescu
bd51e4eb73
Merge pull request #123 from bcostm/master
...
[NUCLEO_F103RB] Add I2C master, code cleanup, ...
2013-12-12 02:34:48 -08:00
Anders Lindvall
0c774294fb
LPC4088 target fixes
...
- changed scatter file to keep all the code in the internal flash
- added tests for SPIFI memory usage
2013-12-12 12:29:00 +02:00
bcostm
2310b4c031
[NUCLEO_F103RB] Code cleanup
2013-12-12 10:35:04 +01:00
bcostm
a129b8f8fa
[NUCLEO_F103RB] Add more generic signal names for the examples.
2013-12-11 18:38:35 +01:00
Bogdan Marinescu
c3d4d3079f
Added DEVICE_SERIAL_FC as an indicator for the flow control implementation
2013-12-11 10:26:18 +02:00
bcostm
37b8acad68
[NUCLEO_F103RB] Code cleanup
2013-12-10 16:46:15 +01:00
0xc0170
5e9e53f934
PWM - changes to start the channel
2013-12-10 15:57:43 +01:00
bcostm
5ebce384b5
[NUCLEO_F103RB] Align startup files with other targets
2013-12-10 11:14:56 +01:00
bcostm
d44996c26c
Merge branch 'master' of https://github.com/mbedmicro/mbed
2013-12-10 10:35:26 +01:00
Bogdan Marinescu
faee2bf073
[NUCLEO_F103RB] Serial interrupt fixes
...
- use TC flag instead of TXE for TX interrupt
- clear interrupt flags to prevent possible interrupt storm
2013-12-09 13:01:39 +02:00
Bogdan Marinescu
2b8e05e002
[NUCLEO_F103RB] Timer fixes
...
- the timer data structures were not properly initialized
- changed slave timer mode to external clock 1 (section 15.3.15 of the manual)
- avoid a possible race condition when concatenating the values of the
two 16-bit timers
2013-12-07 14:26:54 +02:00
tkuyucu
3faaff74ee
PwmOut working.
2013-12-06 15:30:58 +01:00
Joey Ye
b747181e0d
Add \r in retarget
2013-12-06 18:06:11 +08:00
tkuyucu
105c31bcb3
SPISlave works.
2013-12-06 10:01:28 +01:00
tkuyucu
4ba79b77b4
SPISlave works. pwm_out works but needs more work to properly implement 0 pulse and 100% pulse.
2013-12-06 09:59:40 +01:00
Bogdan Marinescu
53cd64775d
Hardware flow control implementation for LPC81X
2013-12-05 17:33:16 +02:00
Bogdan Marinescu
2ac6c4c531
Fixed RTS/CTS bit-banging on LPC1768
2013-12-04 19:46:12 +02:00
Bogdan Marinescu
fbeb52d613
Added RTS/CTS flow control
...
Currently implemented only for LPC1768. On this platform, when hardware
flow control is not directly supported, it will be emulated.
Also added "not_implemented.c" as a placeholder for various HAL functions
that might not be implemented on all platforms (in this particular case,
serial_set_flow_control). These are weak implementations that default to a
"not implemented" error message.
2013-12-04 19:42:11 +02:00
bcostm
0aa8b93e26
NUCLEO_F103RB: Add I2C master api
2013-12-04 11:17:10 +01:00
Bogdan Marinescu
3f82e7fa6f
Use correct scatter file for LPC4088
2013-12-03 11:04:37 +02:00
tkuyucu
685274563e
Port, Buffer, DigitalInOut, and Spi (master) works.
2013-12-02 16:33:08 +01:00
Bogdan Marinescu
49df530ae7
Merge pull request #118 from bcostm/master
...
Add STMicroelectronics NUCLEO_F103RB target
2013-12-02 03:15:58 -08:00
Bogdan Marinescu
6aaa134516
Merge pull request #117 from Sissors/master
...
Added (deep)sleep to KL25Z
2013-12-02 01:55:33 -08:00
bcostm
3bcf77e4f7
NUCLEO_F103RB: minor changes
2013-12-02 09:22:28 +01:00
Sissors
9f89a4d218
Added (deep)sleep to KL25Z
...
Sleep is wait mode
Deepsleep is very low power stop mode
During the interrupt that removes it from deepsleep it will run at low
speed until the PLL is automatically re-enabled after the interrupt.
2013-11-30 19:28:00 +01:00
0xc0170
d8d526f656
Merge branch 'master' into K20D50
2013-11-28 17:24:57 +01:00
Michael Moon
a249e39826
Improved baudrate calculation function.
...
Uses 100% integer math, delivers more accurate results with fewer iterations in less time.
Since it seems most of the NXP chips use identical math, I have also altered the other targets in this commit.
If there are non-NXP chips which use a similar serial block, consider porting to those as well
Comparison:
BAUD DL MUL DIV CPU_CLOCK
------- --- --- --- ----------
new: { 9600, 625, 1, 0, 96000000}, // Actual baud: 9600, error =0.00%, 1 iterations
old: { 9600, 625, 1, 0, 96000000}, // Actual baud: 9600, error =0.00%, 0 iterations
new: { 38400, 125, 4, 1, 96000000}, // Actual baud: 38400, error =0.00%, 8 iterations
old: { 38400, 81, 14, 13, 96000000}, // Actual baud: 38409, error +0.02%, 420 iterations
new: { 57600, 81, 7, 2, 96000000}, // Actual baud: 57613, error +0.02%, 120 iterations
old: { 57600, 54, 14, 13, 96000000}, // Actual baud: 57613, error +0.02%, 315 iterations
new: { 115200, 27, 14, 13, 96000000}, // Actual baud: 115226, error +0.02%, 120 iterations
old: { 115200, 27, 14, 13, 96000000}, // Actual baud: 115226, error +0.02%, 210 iterations
new: { 230400, 23, 15, 2, 96000000}, // Actual baud: 230179, error -0.10%, 120 iterations
old: { 230400, 17, 15, 8, 96000000}, // Actual baud: 230179, error -0.10%, 525 iterations
new: { 250000, 24, 1, 0, 96000000}, // Actual baud: 250000, error =0.00%, 1 iterations
old: { 250000, 24, 1, 0, 96000000}, // Actual baud: 250000, error =0.00%, 0 iterations
new: {1000000, 6, 1, 0, 96000000}, // Actual baud: 1000000, error =0.00%, 1 iterations
old: {1000000, 6, 1, 0, 96000000}, // Actual baud: 1000000, error =0.00%, 0 iterations
new: {2000000, 3, 1, 0, 96000000}, // Actual baud: 2000000, error =0.00%, 1 iterations
old: {2000000, 3, 1, 0, 96000000}, // Actual baud: 2000000, error =0.00%, 0 iterations
new: { 9600, 514, 15, 4, 100000000}, // Actual baud: 9600, error =0.00%, 110 iterations
old: { 9600, 337, 15, 14, 100000000}, // Actual baud: 9593, error -0.07%, 1365 iterations
new: { 38400, 93, 4, 3, 100000000}, // Actual baud: 38402, error +0.01%, 120 iterations
old: { 38400, 85, 12, 11, 100000000}, // Actual baud: 38363, error -0.10%, 525 iterations
new: { 57600, 62, 4, 3, 100000000}, // Actual baud: 57604, error +0.01%, 120 iterations
old: { 57600, 61, 9, 7, 100000000}, // Actual baud: 57633, error +0.06%, 840 iterations
new: { 115200, 31, 4, 3, 100000000}, // Actual baud: 115207, error +0.01%, 120 iterations
old: { 115200, 31, 4, 3, 100000000}, // Actual baud: 115207, error +0.01%, 525 iterations
new: { 230400, 19, 7, 3, 100000000}, // Actual baud: 230263, error -0.06%, 120 iterations
old: { 230400, 19, 7, 3, 100000000}, // Actual baud: 230263, error -0.06%, 735 iterations
new: { 250000, 25, 1, 0, 100000000}, // Actual baud: 250000, error =0.00%, 1 iterations
old: { 250000, 25, 1, 0, 100000000}, // Actual baud: 250000, error =0.00%, 0 iterations
new: {1000000, 5, 4, 1, 100000000}, // Actual baud: 1000000, error =0.00%, 8 iterations
old: {1000000, 5, 4, 1, 100000000}, // Actual baud: 1000000, error =0.00%, 315 iterations
new: {2000000, 2, 9, 5, 100000000}, // Actual baud: 2008929, error +0.45%, 120 iterations
old: {2000000, 2, 9, 5, 100000000}, // Actual baud: 2008929, error +0.45%, 315 iterations
new: { 9600, 625, 4, 1, 120000000}, // Actual baud: 9600, error =0.00%, 8 iterations
old: { 9600, 404, 15, 14, 120000000}, // Actual baud: 9602, error +0.02%, 1575 iterations
new: { 38400, 179, 11, 1, 120000000}, // Actual baud: 38408, error +0.02%, 120 iterations
old: { 38400, 101, 15, 14, 120000000}, // Actual baud: 38409, error +0.02%, 525 iterations
new: { 57600, 93, 5, 2, 120000000}, // Actual baud: 57604, error +0.01%, 120 iterations
old: { 57600, 68, 12, 11, 120000000}, // Actual baud: 57545, error -0.10%, 420 iterations
new: { 115200, 47, 13, 5, 120000000}, // Actual baud: 115248, error +0.04%, 120 iterations
old: { 115200, 34, 12, 11, 120000000}, // Actual baud: 115090, error -0.10%, 315 iterations
new: { 230400, 19, 7, 5, 120000000}, // Actual baud: 230263, error -0.06%, 120 iterations
old: { 230400, 17, 12, 11, 120000000}, // Actual baud: 230179, error -0.10%, 210 iterations
new: { 250000, 30, 1, 0, 120000000}, // Actual baud: 250000, error =0.00%, 1 iterations
old: { 250000, 30, 1, 0, 120000000}, // Actual baud: 250000, error =0.00%, 0 iterations
new: {1000000, 5, 2, 1, 120000000}, // Actual baud: 1000000, error =0.00%, 3 iterations
old: {1000000, 4, 8, 7, 120000000}, // Actual baud: 1000000, error =0.00%, 210 iterations
new: {2000000, 3, 4, 1, 120000000}, // Actual baud: 2000000, error =0.00%, 8 iterations
old: {2000000, 2, 8, 7, 120000000}, // Actual baud: 2000000, error =0.00%, 210 iterations
2013-11-29 02:44:14 +11:00
tkuyucu
820e0473f6
Bogdan's startup fix added.
2013-11-28 13:21:21 +01:00
0xc0170
c5a2e6ed0e
pwm, spi - pin definition, dac removed
2013-11-27 18:46:30 +01:00
bcostm
1159845529
NUCLEO_F103RB: update channels management in analogin api
2013-11-27 15:39:57 +01:00
tkuyucu
511e24ecc9
nRF51822 mbed SDK with working GPIO, RawSerial, and timer
2013-11-27 13:16:11 +01:00
0xc0170
0e99a7c9bd
Analog API - pins, analog pins (arduino) correction, irq
...
- ADC - pins, mux
- analog pins - Ax
- irq - port A - E
2013-11-26 20:08:13 +01:00
Bogdan Marinescu
256f70fffc
Merge remote-tracking branch 'origin/master'
2013-11-26 17:14:46 +02:00
Bogdan Marinescu
3c0a8b633f
Provide generic pinout defines
...
This commit adds generic peripheral names to various mbed enabled
boards, to make it easier to write portable code amongst various
mbed boards.
2013-11-26 17:12:36 +02:00
bcostm
dd292a7e71
NUCLEO_F103RB: Add pwmout api + change timers for ticker
2013-11-26 09:26:08 +01:00
bcostm
c33dbfd63d
Enable STDIO messages used by the test firmwares
2013-11-25 10:20:39 +01:00
0xc0170
3dc97b20c0
startup ARM - stack pointer, serial functional
...
- stack pointer correction
- startup for ARM - clean up
- GCC ARM linker - RAM size correction
- NVIC - RAM address
2013-11-22 21:21:01 +01:00
bcostm
c47bc1780a
Add UseMicroLIB option for exported project
2013-11-22 11:41:07 +01:00
Bogdan Marinescu
f6c9c8db5e
Fixed initial SP value
2013-11-21 19:07:52 +02:00
Emilio Monti
64952d4f7e
Merge pull request #114 from mazgch/master
...
Avoid hardfault when CAN object is destructed.
2013-11-21 08:40:43 -08:00
mazgch
a3a16b3683
Avoid hardfault when CAN object is destructed.
...
interrupts have to be disabled(can_irq_free) before we turn off(can_free) the peripheral
2013-11-21 17:31:17 +01:00
Emilio Monti
5278dd43f2
Merge pull request #113 from mazgch/master
...
fix the documentation to ethernet api to match implementation
2013-11-21 02:32:05 -08:00
mazgch
2b7d2bb343
fix the documentation to match implementation
2013-11-21 11:24:58 +01:00
Emilio Monti
6a5335a40e
Merge pull request #112 from Sissors/master
...
Added sleep to LPC81x
2013-11-21 01:58:28 -08:00
Sissors
585e05ca6a
Added sleep to LPC81x
...
http://mbed.org/users/mbed_official/code/mbed-src/pull-request/6
2013-11-21 08:19:44 +01:00
hototogi
03b79b5920
support GCC_ARM for LPC4330_M4
...
- Linker script is based on LPC1768
number of NVIC is 16 (CORE) + 53 (M4 in LPC43xx) = 69,
therefor, reserve at the top of RAM0 (address:0x10000000)
to relocate NVIC vector table
- startup file is based on startup_ARMCM4.S in CMSIS V3.20
change NVIC name for cortex-M4 of LPC43xx
- add GCC_ARM for LPC4330_M4 in python scripts
- add some descriptions for GCC_ARM
2013-11-20 17:03:59 +09:00
0xc0170
4e09b52a71
K20 uVision files, ld NVIC offset
...
- K20 KEIL files
- clock set to 1 (48MHz)
- offset in GCC ld for vectors in RAM
- us ticker - PIT timer interrupt implementation
2013-11-19 20:06:26 +01:00
bcostm
415ac34b56
Add analogin, serial and spi support for NUCLEO_F103RB
2013-11-19 09:11:31 +01:00
0xc0170
8ca8014c00
Merge branch 'master' into K20D50
2013-11-18 20:34:45 +01:00
bcostm
70dd0d891e
Add STM32F10x standard periph driver
2013-11-14 11:33:29 +01:00
bcostm
6d9b523185
Update workspace_tools files
2013-11-14 11:07:01 +01:00
bcostm
beb779b3d6
Rename target
2013-11-13 09:29:29 +01:00
Bogdan Marinescu
5b6faea448
Removed redundant label TARGET_LPC81X_COMMON
2013-11-11 13:28:18 +02:00
Joris Aerts
76ffc4935e
Fix bug in gpio_set not setting reserved pins correctly
...
Loop going over reserved pins was not going over all entries as result of incorrect sizeof
2013-11-08 13:39:00 -08:00
bcostm
b8ddfce3d0
Change folder name to TARGET_NUCLEO-F103RB
2013-11-08 11:19:09 +01:00
bcostm
96a96f2cb6
Add STM32F10X cmsis files
2013-11-07 14:16:01 +01:00
bcostm
c0d5675480
Add STM NUCLEO64 STM32F10X basic files
2013-11-07 11:32:01 +01:00
0xc0170
f4591dbbab
Merge branch 'upstream_master' into dev_kl46z
2013-11-05 22:08:07 +01:00
Andreas Rebert
09cf4ef128
Support for exporting to GCC_ARM
2013-10-31 13:28:05 +01:00
pbrier
b1d88905a9
fixed can_filter() prototype (prevents build of LPC1768)
2013-10-26 17:02:29 +02:00
Emilio Monti
317a1f66d2
Merge pull request #91 from jorisa/master
...
Add CAN api filter support and LPC11CXX CAN implementation
2013-10-25 06:58:05 -07:00
Bogdan Marinescu
9d881770c9
Merge remote-tracking branch 'github/master'
2013-10-25 15:43:01 +03:00
Adam Green
969733ae8f
serial_putc() to make better use of Tx FIFO
...
If don't know if this is an issue that anyone cares about. I am also
not sure what the best way to solve it is either. I just thought I
would issue a pull request with this commit to bring the issue to light
and show a possible solution that I have tested on my mbed-1768 device.
Previously the serial_putc() API didn't make any use of the Tx FIFO
since the serial_writable() API it utilizes only returns true when the
FIFO is completely empty. This is due to the fact that the THRE bit of
the UART's LSR (Line Status Register) only goes high when the whole
FIFO is empty.
I noticed this when doing some performance testing with the network
stack. I went from calling printf() to output 3 bytes every 10 seconds
(with packet drop stats) to instead output 4 bytes every 10 seconds.
I thought these should easily fit in the 16 byte FIFO but outputting
one extra byte caused an additional three 550 byte UDP packets to be
dropped. This should only happen if the additional character being
sent to the UART was taking away extra CPU cycles from the network
stack.
My solution is to keep track of the number of bytes that have been
placed in the Tx FIFO since it was last detected as being completely
empty (via the THRE bit). Only once this count hits 16 does the code
then block, waiting for the THRE bit to go high. Each time the THRE
bit does go high, the count is reset to 0 again and it is incremented
for each byte that is loaded into the THR.
2013-10-25 15:17:06 +03:00
Joe Turner
6ae1e9e360
Merge branch 'master' of git://github.com/mbedmicro/mbed into bugfix-STM32-vectors
2013-10-25 13:11:25 +01:00
Joe Turner
0ef4905728
Fix relocation of vector on STM32.
2013-10-25 13:09:06 +01:00
Bogdan Marinescu
544ac9e728
Disable DEVICE_STDIO_MESSAGES for LPC81X
...
Because the LPC81X HAL implementation calls error(), which in turn calls
fprintf(), quite a bit of code is added to the image, which is not a good
idea on such resource constrained targets.
2013-10-25 14:51:01 +03:00
Bogdan Marinescu
5742abe6d9
Added the new RawSerial.h in mbed.h
2013-10-23 17:28:05 +03:00
Bogdan Marinescu
2404dc0092
Added new serial class, remove interrupt chaining
...
The new RawSerial class is a simple wrapper over the serial HAL that can
be safely used from an interrupt handler.
Interrupt chaining code was removed from InterruptIn, Serial and Ticker
because it caused lots of issues with the RTOS. Interrupt chaining is
still possible using the InterruptManager class.
2013-10-23 16:08:34 +03:00
Joris Aerts
739f2a6375
Add can_api hal implementation to LPC11CXX target
...
Most of the functionality works, interrupts might need a little more work.
2013-10-22 11:02:10 -07:00
Joris Aerts
08c1483eb3
Add bitfields definition to LPC11XX target
...
Generated from UM10398
2013-10-22 11:00:17 -07:00
Joris Aerts
067e446ae2
Add CAN->filter to API and add placeholders to hal's
...
Add filter function and modify CAN->read definition to allow reading specific messages.
2013-10-22 10:57:28 -07:00
0xc0170
b0537af763
gpio irq enable/disable
...
- InterruptIn disable_irq/enable_irq
2013-10-19 22:28:29 +02:00
0xc0170
d9ed7aba77
CMSIS KL46 files (were KL25 renamed)
2013-10-17 19:32:40 +02:00
Andreas Rebert
a0a6cbe1d3
Merge branch 'master' into lpc4088
2013-10-11 14:02:59 +02:00
Andreas Rebert
a574fd73b3
Bugfixes for I2C and port impl
2013-10-11 14:01:49 +02:00
0xc0170
122f24b83f
Update: Merge branch 'master' into freedomKL46Z
...
Conflicts:
workspace_tools/targets.py
2013-10-06 18:55:32 +02:00
Joris Aerts
7ed6acb08a
Move pwmout_api.c/PeripheralNames.h to LPC11XX_11CXX common
...
Because CT32B1 (P1_1, P1_2 and P1_3) is used by us_ticker.c for wait and ticker function. Since wait/ticker is commonly used by mbed code and I decided CT32B1 of LPC11XX should only be used for this function, not for PwmOut.
P1_6 and P1_7 are used by UART (USBTX/USBRX) and I think they should not be assigned to other function.
2013-09-30 08:11:56 -07:00
Joris Aerts
4d0c864b16
Move adc_pinmap.h to LPC11XX_11CXX common
...
Merge back into analog_api.c. P1_3/ADC0_4 (SWDIO) now disabled for both targets
2013-09-30 08:07:26 -07:00
0xc0170
8df14cadc9
scatter file - 32kb RAM, startup - removed heap, stack init
...
- clock set to 1 (external crystal)
2013-09-29 22:36:50 +02:00
0xc0170
5dcd8ea10e
ARM (KEIL) files for KL46Z
2013-09-29 20:40:06 +02:00
0xc0170
b83fd7fb3b
MUX corrections, Arduino Analog signals
...
- added new MUX options to all drivers
- removal of LED which are not there
- analog arduino R3 signals were switched
2013-09-29 20:04:56 +02:00
0xc0170
2ca3195b17
NVIC offset and address in RAM correction
2013-09-29 18:53:57 +02:00
Joris Aerts
e1967755a5
Move spi_pinmap.h to LPC11XX_11CXX common
...
Merge back into spi_api.c. P0_10/SPI_0 (SWCLK) now disabled for both targets
2013-09-27 19:10:08 -07:00
Joris Aerts
e9f5c8d3ca
Move README.md to LPC11XX_11CXX common
2013-09-27 18:56:11 -07:00
Joris Aerts
3fe31ad50e
Move objects.h to LPC11XX_11CXX common
...
Use #if DEVICE_CAN for can_s definition
2013-09-27 18:53:19 -07:00
Bogdan Marinescu
f580c008b1
Merge pull request #78 from mconners/master
...
Added KL46Z support
2013-09-25 03:18:49 -07:00
Bogdan Marinescu
8f57c1e847
Merge remote-tracking branch 'github/master'
2013-09-25 10:27:17 +01:00
Bogdan Marinescu
1e224c5152
Fix RAM size for LPC11C24 in ARM/uARM linker command files
2013-09-25 10:18:43 +01:00
Bogdan Marinescu
30907d7772
Refactor LPC1114 and LPC11C24 code
...
Since most of the code for LPC1114 and LPC11C24 is similar, refactor the
code structure to avoid duplication of the common code.
2013-09-25 10:17:19 +01:00
Michael Conners
5bd25ac046
Added K20D5M support
2013-09-24 10:36:04 -04:00
Michael Conners
afcc79ad27
Added KL46Z support
2013-09-24 10:01:06 -04:00
Andreas Rebert
bb35d16521
Merged bugfixes and improvments for LPC1768 target to LPC4088 target
2013-09-23 11:39:52 +02:00
Bogdan Marinescu
f2f7b213cd
Merge pull request #75 from jorisa/master
...
Keep LPC11CXX in sync with LPC11XX
2013-09-20 01:53:40 -07:00
Emilio Monti
38ed9eb6a0
Merge pull request #72 from jorisa/master
...
Split uVision project source files in groups mbed/hal/src
2013-09-19 01:46:53 -07:00
Bogdan Marinescu
81b372d362
Merge pull request #73 from ytsuboi/master
...
Fixed LPC1114 ADC offset problem
2013-09-19 01:35:42 -07:00
Toyomasa Watarai
866858a816
Fixed LPC1114 ADC offset problem
2013-09-19 16:19:04 +09:00
Toyomasa Watarai
f4bfe5aedb
Revert "Fixed ADC offset problem"
...
This reverts commit 399acd1d6f
.
2013-09-19 16:16:52 +09:00
Toyomasa Watarai
399acd1d6f
Fixed ADC offset problem
2013-09-19 16:16:05 +09:00
Joris Aerts
a4badc7dd2
Keep LPC11CXX in sync with LPC11XX
...
Only differences in CMSIS now are:
* Top of RAM (0x10001000 vs 0x10002000)
* Clock configuration (IRC/System PLL vs System Oscillator/IRC)
2013-09-18 18:54:53 -07:00
Joris Aerts
979bba6864
Don't call mbed_interface_disconnect when DEVICE_SEMIHOST is disabled
2013-09-18 14:10:29 -07:00
Joris Aerts
c275ef3b3d
Replace #ifdef with #if DEVICE_STDIO_MESSAGES
...
DEVICE_STDIO_MESSAGES is the only #define in device.h that is being used in the library as #ifdef rather than #if. This is misleading since setting it to 0 will not disable including the <stdio.h> libraries.
2013-09-17 18:19:22 -07:00
Adam Green
5eb976a088
Fix _sbrk() implementation for Cortex-M parts.
...
A recent commit, 43acaa4166
, to get _sbrk() to build successfully for
LPC2368 broke the Cortex-M implementation. __get_MSP() isn't ever
defined as a macro, it is an inline function. This means that the
code would always be compiled to use SP instead of MSP on Cortex-M
parts. I switched the code to instead use the TARGET_ARM7 define
to choose which stack pointer to utilize.
I tested this fix by making sure that the LPC2368 version of the mbed
SDK would still build successfully with the Python scripts and that the
NET1 test still built and ran successfully on my mbed-LPC1768 device.
2013-09-17 04:29:35 -07:00
Emilio Monti
96ea3db1b3
Merge pull request #66 from dinau/lpc2368_mod
...
LPC2368 mod
2013-09-16 08:00:20 -07:00
dinau
efbc52465d
LPC2368 [GCC_ARM]: Silence some warnings.
2013-09-13 22:01:21 +09:00
dinau
43acaa4166
LPC2368 [GCC_ARM]: Fixed: Compilation and link errors in case "SD" example.
2013-09-13 22:01:19 +09:00
Emilio Monti
2481fbe2a2
Merge pull request #62 from arebert/lpc4088
...
LPC4088: PIN mode fix, export to external tools and MAC address retrieval
2013-09-13 05:59:14 -07:00
Erik Olieman
94ff741989
LPC1768 InterruptIn speedup
...
Use __CLZ to speed up GPIO interrupt processing.
2013-09-11 18:46:18 +03:00
Bogdan Marinescu
171dda705c
Merge pull request #63 from jorisa/master
...
Fix hardfault when attaching callback to CAN2 when CAN1 is not defined
2013-09-10 03:22:55 -07:00
Joris Aerts
efd3d8d8e0
Fix hardfault when attaching callback to CAN2 when CAN1 is not defined
...
Fault is triggered by trying to read LPC_CAN1->IER when the peripheral is powered off. Fixed by checking the power control register before checking the IER register.
2013-09-09 09:06:04 -07:00
Bogdan Marinescu
cfa6a1d912
Merge pull request #61 from ytsuboi/master
...
Fixed problem in PWMOUT mapping table
2013-09-09 08:22:11 -07:00
Andreas Rebert
00cfdbad2a
Merge remote-tracking branch 'upstream/master' into lpc4088
2013-09-09 14:13:08 +02:00
unknown
0e36bdd457
Bugfix: PIN Modes was not set correctly
...
Added: Export to uVision and Code Red toolchains
2013-09-09 14:10:11 +02:00
Bogdan Marinescu
1f243a900c
Merge remote-tracking branch 'github/master'
2013-09-09 12:31:42 +03:00
Bogdan Marinescu
fded46b459
[LPC1768] Fix serial_clear
...
serial_clear() erroneously disabled the UART FIFOs.
Reported by Adam Green.
2013-09-09 12:28:11 +03:00
Toyomasa Watarai
d0d2df3ce5
Fixed problem in PWMOUT mapping table
...
Fixed problem in PWMOUT output issue.
Startup code cean-up (correced exception names).
Corrected test cases.
2013-09-09 18:15:51 +09:00
Bogdan Marinescu
d51411294f
Merge pull request #57 from adamgreen/serialTxDropsRx
...
serial_putc() can cause rx bytes to be dropped
2013-09-09 01:19:29 -07:00
Joris Aerts
743e178455
Fix MASKED_ACCESS bug in gpio_init, now same as LPC11xx (Also use PIN_SHIFT instead of magic number 8 in gpio_set)
2013-09-08 18:57:40 -07:00
Adam Green
5d27f98c7b
serial_putc() can cause rx bytes to be dropped
...
While fixing this issue in the various LPC* ports, I noticed a comment
pointing to this mbed forum post which summarizes this bug quite well:
https://mbed.org/forum/bugs-suggestions/topic/4473/
This bug was introduced in the following commit:
2662e105c4
The following code was added to serial_putc() as part of this commit:
uint32_t lsr = obj->uart->LSR;
lsr = lsr;
uint32_t thr = obj->uart->THR;
thr = thr;
As the forum post indicates, this causes the serial_putc() routine to
actually eat an inbound received byte if it exists since reading THR is
really reading the RBR, the Receiver Buffer Register. This code looks
like code that was probably added so that the developer could take a
snapshot of these registers and look at them in the debugger. It
probably got committed in error.
2013-09-07 00:44:44 -07:00
Bogdan Marinescu
423f1abd63
Fix startup files for various versions of LPC11Uxx
...
LPC11U24/LPC11U24_301/LPC11U35_401 shared the same startup file for ARM
and uARM toolchains, which is wrong, because the initial SP value is
different for LPC11U24_301. This commit fixes this issue by giving each
target its own startup file.
2013-09-06 11:50:52 +03:00
Bogdan Marinescu
95f6826196
Refactor code for LPC810/LPC812
...
There were lots of overlaps in the code for LPC810 and LPC812, including
duplicated source files. This commit adds a TARGET_LPC81X_COMMON folder in
both HAL and CMSIS, this folder keeps common code for the targets.
2013-09-05 19:00:19 +03:00
Bogdan Marinescu
233979e88f
Merge pull request #54 from ytsuboi/master
...
Added LPC810 support
2013-09-05 07:00:17 -07:00
Bogdan Marinescu
ae16d3efa8
Fix NULL pointer indirection in FilePath
...
If the FileBase::lookup operation in the constructor of FilePath returns
NULL, subsequent operations (such as isFile()/isFileSystem()) will call
methods on a NULL 'fb' pointer. This commit fixes this issue by adding
explicit NULL checks and a new method in FilePath (exists()).
2013-09-05 14:09:27 +03:00
ytsuboi
46003d4c3c
Merge remote-tracking branch 'upstream/master'
2013-09-05 13:01:12 +09:00
Abe Karplus
96101aed32
Added complete PwmOut mappings for KL25Z
2013-09-04 15:52:58 +03:00
Bogdan Marinescu
45565cb055
Merge pull request #48 from adamgreen/gccRetargetSbrk
...
gcc: Provide _sbrk implementation compatible with RTX
2013-09-04 01:12:31 -07:00
ytsuboi
0718c7671a
Merge remote-tracking branch 'upstream/master'
2013-09-03 19:38:34 +09:00
dinau
8503ccb7a3
LPC2368 [GCC_ARM, GCC_CR]:
...
1. Added: GCC_CR toolchain ID for LPC2368. (targets.py)
2. Modified: Startup codes for GCC_ARM and GCC_CR toolchain.
3. Verified: "ticker" and "basic" test program work well, so far.
(Fixed typo.)
2013-08-31 16:00:40 +09:00
dinau
7bcdf0b980
LPC2368 [GCC_ARM, GCC_CR]:
...
1. Added: GCC_CR toolchain ID for LPC2368. (targets.py)
2. Modified: Startup codes for GCC_ARM and GCC_CR toolchain.
3. Verified: "ticker" and "basic" test program works well, so far.
2013-08-31 13:33:34 +09:00
Adam Green
9e6d1683b8
gcc: Provide _sbrk implementation compatible with RTX
...
I verified that the hang issue I was seeing when building and running
the mbed official networking tests with GCC_ARM was related to this
issue reported on the mbed forums:
http://mbed.org/forum/mbed/topic/3803/?page=1#comment-18934
If you are using the 4.7 2013q1 update of GCC_ARM or newer then it
will have a _sbrk() implementation which checks the new top of heap
pointer against the current thread SP, stack pointer.
See this GCC_ARM related thread for more information:
https://answers.launchpad.net/gcc-arm-embedded/+question/218972
When using RTX RTOS threads, the thread's stack pointer can easily
point to an address which is below the current top of heap so this
check will incorrectly fail the allocation.
I have added a _sbrk() implementation to the mbed SDK which checks the
heap pointer against the MSP instead of the current thread SP. I have
only enabled this for TOOLCHAIN_GCC_ARM as this is the only GCC based
toolchain that I am sure requires this.
2013-08-30 18:15:25 -07:00
Bogdan Marinescu
1798920cf4
Merge remote-tracking branch 'github/master'
2013-08-30 12:26:37 +03:00
Bogdan Marinescu
e870a90ff2
Added toolchain hooks and support for LPC4088_EA binary generation
...
A new hooks mechanism (hooks.py) allows various targets to customize
part(s) of the build process. This was implemented to allow generation of
custom binary images for the EA LPC4088 target, but it should be generic
enough to allow other such customizations in the future. For now, only the
'binary' step is hooked in toolchains/arm.py.
2013-08-30 12:19:08 +03:00
dinau
841ce1d719
Fixed: The issue of interrupt vector remapping for GCC_ARM LPC1114
2013-08-29 21:40:57 +09:00
dinau
97d92789ec
Fixed: The issue of interrupt vector remapping for GCC_ARM LPC1114
2013-08-28 23:29:16 +09:00
Bogdan Marinescu
2cdd41d9b1
Added support for LPC11U24/_301 and LPC11U35_401 in uARM
2013-08-27 15:31:47 +03:00
Bogdan Marinescu
9a270999d0
Added support for LPC11U35_401 in ARM and GCC_ARM
2013-08-27 15:19:01 +03:00
Bogdan Marinescu
1c23d68281
Added support for LPC11U24_301/401 compilation with ARM toolchain
2013-08-27 14:52:39 +03:00
ytsuboi
2e549668a8
[LPC810] fixed scatter file
2013-08-24 16:02:03 +09:00
ytsuboi
8dd6bdb701
[LPC810] add LPC810 support
2013-08-24 15:49:16 +09:00
ytsuboi
4c0b5ab404
[LPC1114] fixed to use IRC and System PLL clock
2013-08-21 20:44:31 +09:00
Toyomasa Watarai
1ff64de847
Fixed gpio_irq_api bugs
...
Corrected improper implementation of channel_ids[] usage.
Revemod redundant arrays e.g. pin_names[] and trigger_events[]
2013-08-21 16:46:03 +09:00
Toyomasa Watarai
10e30b5cfb
Fixed error handling and cleanup
2013-08-21 10:46:37 +09:00
Bogdan Marinescu
15ed7ea66a
Fix bug in Ticker code
...
The bug was introduced by the interrupt chaining code.
2013-08-16 15:55:24 +03:00
ytsuboi
478f0498e7
Merge remote-tracking branch 'upstream/master'
2013-08-16 02:38:42 +09:00
Toyomasa Watarai
1d1c8c6391
Removed SWCLK and SWDIO pins from pinmap
2013-08-16 00:17:52 +09:00
Adam Green
28a3466d11
Fixups to network code after recent merges.
...
Peter's and my changes to LPC1768.ld ended up adding the same AHBSRAM0
and AHBSRAM1 section clauses to the script twice. I removed one copy.
I also pulled Peter's define of the ETHMEM_SECTION macro up into the
previous nested #if so that the preprocessor wouldn't spit out a
redefined macro warning.
I verified that building the code clean before and after these changes
still results in the same .bin file but now without warnings and/or
duplicate code.
2013-08-15 04:40:53 -07:00
Bogdan Marinescu
370b270848
Merge pull request #30 from pbrier/master
...
Experimental fix for issue #29
2013-08-15 03:24:36 -07:00
Bogdan Marinescu
9d846d9902
Merge pull request #31 from adamgreen/gccWarnFixNetwork
...
Update LPC1768 linker script and silence GNU warnings in network stack
2013-08-15 02:55:51 -07:00
Adam Green
aa7a55b6dd
Update LPC1768.ld linker script to work with net stack.
...
The original script assigned memory ranges to USB_RAM and ETH_RAM but
it never placed any section data in those regions. I added clauses
towards the bottom of the script to place data that the programmer
has marked for the AHBSRAM0 and AHBSRAM1 sections into these regions
of RAM. Previously the data destined for these sections was being
placed in the lower 32K RAM bank and overflowing it at link time.
I also added a few Image$$ linker symbols to mimic those used by the
online compiler. I have had samples in the past which took advantage
of these to display static memory statistics for each SRAM region.
I also changed LENGTH=0x7F38 to LENGTH=(32K - 0xC8) to make it more
consistent with the sizing of the other regions in this script which
use human readable K sizing information. The 0xC8 subtraction reflects
the starting offset of 0xC8 for this region.
2013-08-14 20:17:53 -07:00
pbrier
9011a5453a
Compile network and RTOS with GCC_ARM
2013-08-14 22:45:55 +02:00
pbrier
c0fdbede02
Compile network and RTOS with GCC_ARM
2013-08-14 22:34:33 +02:00
0xc0170
3d9be83e38
Chaining in Ticker - switched arguments [fix]
2013-08-14 18:22:30 +02:00
Toyomasa Watarai
9f2a930f31
Fixed GPIO read operation
2013-08-14 22:43:03 +09:00
Toyomasa Watarai
b632d8db46
Removed redundant code in serial_api
2013-08-14 22:29:31 +09:00
Toyomasa Watarai
83e065d1bc
Fixed missing mask register setting for I2C
2013-08-14 22:28:30 +09:00
0xc0170
4cbbf8f274
Update eth_static_mac_address from mbed master
2013-08-14 07:29:56 +02:00
0xc0170
74a34c842d
default mbed interface for ethernet
...
- correction in macros, renamimg
2013-08-13 21:49:04 +02:00
Adam Green
692e666ced
Silence signed/unsigned comparison warnings in GCC.
...
i2c_frequency() compares a uint32_t ref variable to the int hz
function parameter passed in by the caller. I forced this to be an
uint32_t comparison.
i2c_slave_write() declared i and count variables to be of type uint32_t
but used them as int type throughout the code (in comparisons and
returns) so I switched them to be of signed int type.
spi_frequency() contains a change similar to that made in
i2c_frequency().
2013-08-13 01:47:20 -07:00
Adam Green
461a3dd0d2
Cast to matching enumeration type instead of uint32_t
...
This commit targets the KL25Z code, whereas previous ones targetted
similar issues in the LPC1768 and LPC11U24 mbed HAL code.
These changes were made to silence GCC warnings and fix potential bugs
where they would never be equal when the enumeration wasn't a 32-bit
type.
For example, pinmap.c used to contain this code:
if (pin == (uint32_t)NC) return;
I switched it to:
if (pin == (PinName)NC) return;
I wonder why this casting to uint32_t was done in the first place?
Maybe another supported compiler requires it?
2013-08-13 01:47:20 -07:00
Adam Green
cc56997a70
Cast to matching enumeration type instead of uint32_t
...
This commit targets the LPC11U24 code, whereas a previous one
targetted similar issues in the LPC1768 mbed HAL code.
These changes were made to silence GCC warnings and fix potential bugs
where they would never be equal when the enumeration wasn't a 32-bit
type.
For example, pinmap.c used to contain this code:
if (pin == (uint32_t)NC) return;
I switched it to:
if (pin == (PinName)NC) return;
I wonder why this casting to uint32_t was done in the first place?
Maybe another supported compiler requires it?
2013-08-13 01:47:19 -07:00
Adam Green
8fe7276b98
Silence signed/unsigned comparison warnings in GCC.
...
Why do the wait APIs take a signed integer if they are going to be
compared to unsigned quantities?
2013-08-13 01:47:19 -07:00
Adam Green
c411823656
Fix operator precedence warning in can_api.c
...
The original code was:
if(LPC_CAN1->IER | LPC_CAN2->IER != 0) {
This would actually be interpreted as:
if(LPC_CAN1->IER | (LPC_CAN2->IER != 0)) {
I simplified it to:
if(LPC_CAN1->IER | LPC_CAN2->IER) {
With the comparison removed, the GCC warning no longer fires since the
user's intent is no longer unclear. However, the end result should be
the same.
2013-08-13 01:47:19 -07:00
Adam Green
15f833bc1b
Cast to matching enumeration type instead of uint32_t
...
These were done to silence GCC warnings and fix potential bugs where
they would never be equal when the enumeration wasn't a 32-bit type.
For example, common/pinmap_common.c used to contain this code:
if (pin == (uint32_t)NC)
I switched it to:
if (pin == (PinName)NC)
I wonder why this casting to uint32_t was done in the first place?
Maybe another supported compiler requires it?
2013-08-13 01:47:19 -07:00
Bogdan Marinescu
1a47a218a4
[KL25Z] Fixed counter type for i2c_read operations.
2013-08-12 12:31:05 +03:00
Emilio Monti
0843613136
Add LPC11U24/301 TARGET
2013-08-09 17:21:03 +01:00
Andreas Rebert
75dba19438
Updated pin mapping and CAN HAL for LPC4088 target
2013-08-08 13:57:02 +02:00
Bogdan Marinescu
3b465de3aa
Changed line endings to LF, removed non-ASCII chars from sources
2013-08-08 12:58:34 +03:00
Bogdan Marinescu
3f703f1bf0
[LPC11C24] Make code compatible with the interrupt chaining code
2013-08-07 15:24:30 +03:00
Bogdan Marinescu
9ee1fc9f55
[KL25Z] Fix I2C issue related to the silicon errata.
...
Makes a difference when running the I2C EEPROM test at 400KHz, which has a 100%
success rate after this change.
2013-08-07 14:49:11 +03:00
Bogdan Marinescu
6c05438993
Interrupt chaining: added documentation, fixed a synchronization issue in CallChain.
2013-08-07 14:46:40 +03:00
Bogdan Marinescu
d399e51bfd
Interrupt chaining: now working on all targets.
...
Tested on LPC1768, LPC11U24, KL25Z, LPC2368.
2013-08-07 14:43:36 +03:00
Bogdan Marinescu
43d4445074
Interrupt chaining: preliminary version
2013-08-07 14:43:26 +03:00
Bogdan Marinescu
1e8e50996c
[KL25Z] Restore full SPI pin mappings
2013-08-07 14:42:02 +03:00
Bogdan Marinescu
58fd85fc6f
Add support for calling a function before main()
...
The name of the function is mbed_main.
Fixes PRMBED-906.
2013-08-07 14:39:13 +03:00
Emilio Monti
1142df8cfd
Merge pull request #22 from matthewelse/anotherpullrequest
...
PWM Patch Pull Request
2013-08-07 02:20:51 -07:00
Matthew Else
e1eb357c53
Added changes to PWM API from LPC1114 to LPC11C24
2013-08-07 09:45:47 +01:00
Matthew Else
b437a3ca22
Removed can_api.c from TARGET_LPC11CXX, as it's not ready for pull request yet.
2013-08-07 09:43:28 +01:00
Toyomasa Watarai
0c0b51f663
Fixed pwm_api bug
...
Corrected pwm_timer_map table for LPC1114
2013-08-07 16:24:58 +09:00
0xc0170
6127ed3bb7
KL25Z adc channels A
...
- only channels B were available
2013-08-06 21:21:03 +02:00
Matthew Else
548d18ebd7
Pull in changes to the main mbed code base.
2013-08-06 20:04:32 +01:00
Matthew Else
d29ebefbd9
Begin to add can_api.c to LPC11C24 codebase. Not complete yet, which is why it's #if 0ed out. Lots of build errors come up if #if0 isn't there, which is why it is for now.
2013-08-06 17:41:31 +01:00
Emilio Monti
e42786649f
The LPC1347 board does not have an interface chip
2013-08-06 16:36:03 +01:00
Matthew Else
45470aba31
Updated READMEs
2013-08-06 15:09:41 +01:00
Matthew Else
4401516f14
Removed unnecessary core_cm* files, as they are now shared in cmsis
2013-08-06 15:06:28 +01:00
Matthew Else
bf02700a32
Merge https://github.com/jorisa/mbed
2013-08-06 09:43:52 +01:00
Matthew Else
f7a2be4bed
Merge remote-tracking branch 'upstream/master'
2013-08-06 09:42:09 +01:00
Joris Aerts
c747e2533f
Rename some argument and enum names to match existing naming
...
Add CAN->mode(Mode mode) function (not implemented in hal)
2013-08-05 17:28:27 -07:00
emilmont
4f03cd09b8
Remove undefined peripherals
2013-08-05 22:09:32 +01:00
0xc0170
e1af24c1f2
Spaces correction
2013-08-05 19:06:22 +02:00
Matthew Else
ef28879863
Merged remote tracking branch 'upstream/master'
2013-08-05 17:22:01 +01:00
Matthew Else
2c45596673
Merge https://github.com/jorisa/mbed
2013-08-05 17:11:58 +01:00
Matthew Else
7c8c7228c8
Pushed LPC1114 I2C updates to the LPC11C24
2013-08-05 17:09:22 +01:00
0xc0170
3c0775f5c3
More pin mux options for KL25Z
...
- as reported in mbed bug section, add all available mux options
2013-08-04 21:33:06 +02:00
0xc0170
e993e94886
Update kl25z_gcc_arm branch to latest master
2013-08-04 19:21:04 +02:00
0xc0170
08beebcd83
RAM region shifted by 0xC0 for vectors
2013-08-02 22:32:41 +02:00
0xc0170
0d6bec9d8c
LD - space reserved for vectors in RAM
2013-08-02 21:08:29 +02:00
Emilio Monti
8562b3660b
Add LPC1347 export templates. Cleanup GCC toolchain check.
2013-08-02 17:56:11 +01:00
0xc0170
48ee225d1f
vectors and flash protection area are separated
2013-08-02 18:01:49 +02:00
Emilio Monti
54893092c3
Merge pull request #17 from matthewelse/forpullrequest
...
LPC1114 Port Pull Request
2013-08-02 08:56:44 -07:00
matthewelse
7827d62504
Added alternative DIP package names for pins in the LPC1114
...
Added this so it is consistent with the notebook page.
2013-08-02 10:38:05 +01:00
0xc0170
afab75fd01
only one flash memory (FLASH)
2013-08-02 07:14:36 +02:00
Joris Aerts
f685efa9b2
Merge remote-tracking branch 'upstream/master'
2013-08-01 17:24:20 -07:00
Matthew Else
789f81b1ea
Removed extra core_* files that are no longer needed. Makes Emilio more happy.
2013-08-01 22:54:52 +01:00
Matthew Else
d899612525
Merge branch 'forpullrequest'
2013-08-01 16:25:28 +01:00
Matthew Else
0f7ece02a8
Fixed I2C API
2013-08-01 16:23:13 +01:00
Matthew Else
df5c36a9ae
Uncommented i2c_wait_SI(obj), as it should not have been commented out.
2013-08-01 16:04:18 +01:00
Matthew Else
dc68b76d0f
Added timeout for i2c_stop in LPC1114 target.
2013-08-01 15:46:05 +01:00
Joris Aerts
a16dc72272
Add @param documentation for new event parameter
...
Add clear irq to attach() template function
Call irq_handler for every interrupt set
2013-07-31 10:45:28 -07:00
Joris Aerts
63b2b271d1
Refactor CAN interrupt handling to LPC176X HAL implementation
...
Add handlers for other CAN interrupt events
Changed CAN private entities to protected
2013-07-31 07:26:32 -07:00
0xc0170
33c096c9d0
Initial version of a ld and a startup for KL25Z ARM GCC
2013-07-31 10:19:18 +02:00
Joris Aerts
8ef8aac36e
Merge remote-tracking branch 'upstream/master'
2013-07-30 19:16:34 -07:00
Joris Aerts
51bfe267f4
Add can_t->index to struct and set it during can_init
2013-07-30 15:17:40 -07:00
Matthew Else
07cddbf038
Merge remote-tracking branch 'upstream/master'
2013-07-30 12:01:49 +01:00
Bogdan Marinescu
df5a993197
__cxa_pure_virtual changes
...
- rename stdio.cpp to retarget.cpp, since it doesn't contain only stdio-related
code
- move __cxa_pure_virtual from exit.c to retarget.cpp where it belongs.
2013-07-29 18:54:22 +03:00
Bogdan Marinescu
1cd95c2467
[KL25Z] Fix clock generation for I2C and SPI
...
Don't set a clock higher than the one requested for the I2C and SPI interfaces,
even if this setting is the closest to the requested one. This was causing
some issues with the EEPROM test and possibly other issues with the SPI SD test.
2013-07-29 18:20:04 +03:00
Bogdan Marinescu
48d41016cd
Added armcc support for STM32F407
2013-07-29 18:15:04 +03:00
Bogdan Marinescu
5655d2fc2a
Fix for the previous "change vector table relocation check" commit.
2013-07-29 18:13:38 +03:00
Bogdan Marinescu
beed7117ad
Add __cxa_pure_virtual to avoid pulling in functions from the C++ library
...
Fixes PRMBED-859
2013-07-29 18:13:37 +03:00
Bogdan Marinescu
14409cd7fd
Change the check for vector table relocation
...
Allows the user to specify his own VTOR location.
Fixes PRMBED-1065.
2013-07-29 18:13:37 +03:00
matthewelse
429d2e61eb
Enabled CAN for LPC11CXX in device.h
2013-07-29 10:59:18 +01:00
Matthew Else
200b263dcd
Added basic stuff necessary to compile for LPC11C24 target.
2013-07-27 18:12:35 +01:00
ytsuboi
a9f0d9a3f7
[LPC1114]: uARM fixed
...
Tested with only "[ 32] MBED_11: Ticker"
2013-07-27 02:06:12 +09:00
Matthew Else
8c2ede6f4f
Merge remote-tracking branch 'upstream/master'
2013-07-26 15:50:59 +01:00
Emilio Monti
5f0bd9d283
Update ARM toolchain symbols
2013-07-26 15:49:00 +01:00
Matthew Else
153153f261
Added serial_break_clear/serial_break_set
...
Fixes #24
2013-07-26 11:44:09 +01:00
Matthew Else
3172fd97ca
Fix both edge bug in gpio_irq_api.c
...
Fixes #22
2013-07-26 09:41:20 +01:00
Matthew Else
a356553c7d
Fixed incorrect use of static in port_api.c
...
This was causing errors when compiling in GCC_ARM
2013-07-25 16:01:45 +01:00
Matthew Else
c3ebd47071
Tidying up gpio_irq_api.c
2013-07-25 10:43:49 +01:00
Matthew Else
a7ba27618d
Fixed bug in gpio_irq_api
...
Test interruptin now works. Fixes #16
2013-07-25 10:26:46 +01:00
Matthew Else
df067bd4e9
Complete support for GPIO interrupts.
2013-07-24 16:02:01 +01:00
Matthew Else
3d08be9700
Attempt to fix the interrupts problem.
2013-07-24 11:00:07 +01:00
Toyomasa Watarai
a125a25a97
Implemented PortIn, PortOut and PortInOut API #8
...
Followingt test cases have been passed:
* PortOut (#24 )
* PortOut PortIn (#9 )
* PortInOut (#8 )
2013-07-24 18:37:12 +09:00
matthewelse
d67d4f7fc1
Create README.md
2013-07-23 15:54:13 +01:00
Matthew Else
55f91f1da8
Fixed errors in gpio_irq_api.c
2013-07-23 15:44:24 +01:00
Matthew Else
c56d1a5236
Fully implemented GPIO_IRQ
...
* Removed unused variables/comments.
* As of yet, untested...
2013-07-23 15:35:38 +01:00
Matthew Else
819ca5547c
Removed extraneous comment from the function
2013-07-23 14:21:40 +01:00
Matthew Else
8011992021
Fully implemented gpio_irq_set
2013-07-23 14:19:33 +01:00
Matthew Else
fea818fccb
Updates to interrupt handling
2013-07-22 13:56:56 +01:00
Matthew Else
1da8e8a2c7
Started to implement gpio_irq_set
2013-07-22 13:30:00 +01:00
Matthew Else
4cf6f09411
Enabled the interrupts api to compile
2013-07-22 12:46:46 +01:00
Toyomasa Watarai
2a989551aa
Fixed gpio_api
...
Corrected base address of GPIO port register
2013-07-22 18:53:45 +09:00
Matthew Else
1097af7091
Added DIP package pins to PinNames.h
2013-07-22 09:30:47 +01:00
Toyomasa Watarai
1781d58249
Merge branch 'master' of https://github.com/matthewelse/mbed
2013-07-22 15:13:13 +09:00
Toyomasa Watarai
b172cd866c
More fix for uARM build to avoid link error
2013-07-22 15:12:42 +09:00
ytsuboi
ca31bda530
Removed printf debug lines
2013-07-22 14:55:19 +09:00
Toyomasa Watarai
b4de4503a8
Fixed uARM build
...
Added EXPORT directive for stack/heap.
2013-07-22 10:29:20 +09:00
Toyomasa Watarai
794ab9cbd3
Fixed #9 and test ticker test code
...
Clean-up GPIO stuff, but it shoud be same behavior as before.
2013-07-21 23:04:46 +09:00
Toyomasa Watarai
796bbbeb0d
Fixed ARM/uARM build and compile error in DigitalOut.h
2013-07-20 19:46:24 +09:00
Matthew Else
84a76cd8d8
Added a load of debug lines
...
Basically this outputs a load of stuff to the serial port. I'm just
using this to get an idea of where the error lies within the code...
2013-07-19 16:56:49 +01:00
Matthew Else
9097bf7f55
A bit more debugging
...
Also removed a random shortcut link that didn't need to be there
2013-07-19 15:32:29 +01:00
Matthew Else
66ca1c9db2
Refactored bits of gpio_api.c
...
In between the last two commits, I added debugging lines using serial to
try and locate the line of code that was causing the issues with GPIO.
However, didn't get anywhere with this because the gpio_write function
is defined in a header file, rather than in an implementation file, so
the printf function can't go there. As a result, it's just refactoring.
2013-07-19 15:23:25 +01:00
Matthew Else
a9bb4aa5cb
Lots of changes, fixing build bugs and renaming
...
Files renamed to fit with the new style folder structure
2013-07-19 13:59:50 +01:00
Matthew Else
18c291b7ce
Added ytsuboi's modifications for using the 1114
2013-07-19 11:24:51 +01:00
Bogdan Marinescu
6d652bddfa
mbed_interface_disconnect/powerdown are now synchronous calls
...
Fixes PRMBED-804
2013-07-17 15:29:41 +03:00
Bogdan Marinescu
dd70336886
[LPC11U24] Take advantage of the full 8K of RAM
...
The linker command scripts/startup files used only 4K of RAM on this target.
2013-07-17 15:29:40 +03:00
Bogdan Marinescu
0c33d40fbb
Added support for UART break generation.
2013-07-17 15:29:39 +03:00
samuel.mokrani@arm.com
f2ea747280
[LPC1347] Change LED pin names
2013-07-17 15:27:10 +03:00
Bogdan Marinescu
7d5e9dac70
[LPC1347] Added support for the ARM toolchain.
2013-07-17 15:25:18 +03:00
Bogdan Marinescu
358e84edf3
[LPC1347] Added GPIO interrupts
2013-07-17 15:17:20 +03:00
samuel.mokrani@arm.com
5b0fe44b0d
[LPC1347]: first implementation of analogIn (not tested)
2013-07-17 15:17:19 +03:00
samuel.mokrani@arm.com
6b7f4b998e
[LPC1347]: first implementation of PWMOut (not tested)
2013-07-17 15:17:09 +03:00
Bogdan Marinescu
721082257c
Preliminary support for LPC13XX
...
Works only with GCC_ARM for now.
2013-07-17 14:57:02 +03:00
Emilio Monti
5020b9ad3b
Stop using the patched microlib
2013-07-08 17:31:04 +01:00
jesusalvarez
804176b806
Update targets and pins for LPC43xx
2013-07-07 23:27:11 -04:00
0xc0170
43ace93009
removed KL05Z hw tests + mv KL05Z to TARGET_Freescale
2013-07-04 17:57:52 +02:00
0xc0170
551f06b66b
Merge branch 'master' into freedomKL05
...
Conflicts:
workspace_tools/toolchains/arm.py
2013-07-04 17:40:46 +02:00
0xc0170
2b57ae9c23
KL25 + KL05 - no pull down, pullup for INPUT pins by default
...
- pull down removal
- ARMCC - debug information option
2013-07-03 19:39:19 +02:00
Emilio Monti
597c62e06a
Add the vendor name as a proper target label
2013-07-03 17:14:43 +01:00
Helmut Schmucker
e38bce5ccd
fix for mbed lib issue 1 (i2c problem)
...
see also https://mbed.org/users/mbed_official/code/mbed/issues/1
2013-07-03 16:12:03 +01:00
0xc0170
c1c1102a89
i2c api update
2013-07-02 20:27:20 +02:00
0xc0170
9ff042699b
Update freedomKL05 from upstream master
2013-07-02 19:44:15 +02:00
0xc0170
90bb8521aa
ADC, code indentation
...
- ADC resolution - 12bit, all pins definition
- code indentation
2013-07-02 19:34:11 +02:00
Emilio Monti
f4f34a025d
Merge pull request #9 from spectaclelabs/fix-gpio-mode
...
Fix setting STM32 GPIO input/output mode.
2013-07-02 02:44:29 -07:00
Emilio Monti
585b369ab8
Explicitly add gpio write/read prototypes to the HAL header
2013-07-02 10:37:57 +01:00
Joe Turner
fac01e3186
Fix setting GPIO input/output mode.
2013-07-02 10:37:24 +01:00
0xc0170
ed200183d0
RTC OSC32, systemUpdate v0.1
...
- RTC clock init from crystal, tested
- system update function
- startup - handler PORTB correction
2013-07-01 21:32:22 +02:00
Emilio Monti
95e66aa4c6
Move the target dependent code from the shared code to the HAL implementation
2013-07-01 18:05:31 +01:00
Bogdan Marinescu
28961db4a5
Added timeout to i2c_stop operations
...
Fixes this issue:
http://mbed.org/users/mbed_official/code/mbed/issues/3
2013-07-01 16:28:35 +01:00
Bogdan Marinescu
bfeb47f523
I2C API refactoring
...
Now the I2C send/receive functions in the mbed HAL return the number of
bytes actually transferred or an error code (a negative value). The
public API remains unchanged.
2013-07-01 16:28:32 +01:00
0xc0170
20789374a0
i2C - pulse definition, serial - define correction
2013-06-29 09:10:26 +02:00
0xc0170
7d3864f27b
Update KL05 to mbed new structure
2013-06-29 09:08:28 +02:00
0xc0170
cd5d235e2b
Merge branch 'master' into freedomKL05
...
Conflicts:
workspace_tools/targets.py
workspace_tools/tests.py
2013-06-29 07:53:32 +02:00
0xc0170
4c4d15f323
Serial api - clock, SPImaster test
2013-06-28 19:59:15 +02:00
Emilio Monti
265c5b405d
Move common CMSIS headers
...
Remove obsolete CMSIS "*.c" files
2013-06-28 16:12:45 +01:00
0xc0170
5d169ce654
Clocks correction, ticker, tests
...
- systemInit - clock update (crystal 32768Hz)
- us_ticker - MCG clock input
- Kl05 testing - pin definitions for KL05 (all run in KEIL with debugger)
2013-06-27 23:20:47 +02:00
Joe Turner
3e40b905f0
Merge branch 'master' of git://github.com/mbedmicro/mbed into STM32F4
...
Conflicts:
workspace_tools/targets.py
2013-06-26 13:34:34 +01:00
0xc0170
bf4746897f
KL05 clock removal, I2C API
...
- spi - bus clock clock correction
- i2c driver
2013-06-25 21:53:06 +02:00
jesusalvarez
ecd051c7a1
LPC43xx port from Micromint
2013-06-25 02:20:08 -04:00
0xc0170
3884f1ba3c
SPI API
2013-06-24 22:40:04 +02:00
0xc0170
19ead14dcb
KL05 Clocks, PWM, RTC, Serial
...
- clock setup update
- serial correction with core clock (define)
- pwm defines
- RTC clock
2013-06-24 19:41:54 +02:00
Emilio Monti
984ba4b113
Refactor the build system:
...
* add sets of TARGET and TOOLCHAIN "labels"
2013-06-24 14:32:08 +01:00
0xc0170
0bad32c110
Serial API
...
- serial UART0 added
- correction in gpio irq (port b)
2013-06-23 22:55:23 +02:00
0xc0170
8a41a5ba9a
KL05 analog in+out, gpio irq
...
- AnalogIn
- AnalogOut
- GPIO irq
- target KL05 added
2013-06-23 18:22:46 +02:00
0xc0170
72659a220b
HAL removing code for API which is not ported yet
2013-06-22 20:54:48 +02:00
0xc0170
a14d88f156
KL05 - target ARM - gpio, us_ticker
...
- cmsis - only one type of MCG at the moment
- HAL - gpio pins
- us_ticker
2013-06-21 20:39:27 +02:00
Joe Turner
92a5e412bd
Merge branch 'master' into STM32F4
...
Conflicts:
workspace_tools/build_api.py
workspace_tools/data/support.py
workspace_tools/libraries.py
workspace_tools/paths.py
workspace_tools/toolchains.py
2013-06-19 13:10:44 +01:00
Emilio Monti
90b614baf8
Unify mbed library sources
...
Remove stdio retargeting reference form cmsis: keep it as a standalone
object
Avoid object files clash for sources with the same name
2013-06-14 17:32:15 +01:00
Emilio Monti
31ee5e5f29
Refactoring of the mbed SDK:
...
- Provide a well defined HAL and API
- Keep separated the HAL implementations for the different targets
2013-06-10 15:44:08 +01:00
Joe Turner
fe625b1f65
Remove empty files, and not ported driver code.
2013-06-04 11:50:07 +01:00
Joe Turner
af5bc356ca
Changes to make port api work.
2013-06-04 11:30:51 +01:00
Joe Turner
79bb66bab5
Small fixes to make analog in work.
2013-06-03 16:42:28 +01:00
Joe Turner
32e7bb8b8c
GPIO fixes to make digital input work.
2013-06-03 14:55:51 +01:00
Joe Turner
a3fd58bf2b
Initialize the I2S PLL in the system startup.
2013-05-31 08:49:12 +01:00
Joe Turner
9e3cd7f379
Make GPIOs use high-speed mode
2013-05-31 08:48:40 +01:00
Emilio Monti
a0c51e0eff
mirror the mbed.org libraries
2013-05-30 18:17:50 +01:00
Emilio Monti
f3acb6c8fd
cleanup
2013-05-30 10:56:18 +01:00
Joe Turner
a71c955c35
Various small fixes to get I2C working.
2013-05-28 16:37:01 +01:00
Joe Turner
e06063aa64
Lots of small fixes to make SPI work.
2013-05-16 11:02:16 +01:00
Joe Turner
9329d73d87
Leave enough space at the start of the RAM block for the dynamic
...
vectors.
2013-05-16 11:01:38 +01:00
Andreas Rebert
2662e105c4
Add support for NXP LPC4088
2013-05-16 08:53:02 +02:00
Joe Turner
bec4ecab29
Add fixes for us_ticker so it updates the prescale register after the
...
counter is enabled, and uses the capture/compare register rather than
the auto-reset register to trigger interrupts.
2013-05-15 11:54:23 +01:00
Joe Turner
4e68eaef57
Make pinmap and port API use the correct memory region for the GPIOs.
2013-05-14 11:00:18 +01:00
Joe Turner
3a0c872df4
Small fixes to the GPIO api, meaning it works!
2013-05-14 10:59:14 +01:00
Joe Turner
8ffca414a5
Generate update event when initializing the ticker so the new prescaler
...
value is used straight away.
2013-05-14 10:58:37 +01:00
Joe Turner
e6ff45d87c
Remove moved options file.
2013-05-13 14:35:32 +01:00
Joe Turner
8efa81bb32
Lot of small fixes to cmsis code so it works correctly.
2013-05-13 14:34:38 +01:00
Emilio Monti
992f34117a
Use two separate toolchains for CodeWarrior: one using EWL and one using newlib
2013-05-10 16:36:40 +01:00
samux
4292adebc1
[KL25Z]: spi slave and i2c slave support
2013-05-08 16:05:57 +01:00
Emilio Monti
a6cad7b15e
Prepare support for ARMCC 5.03 (mainline microlib)
2013-04-24 15:29:23 +01:00
Emilio Monti
a44371aa5c
Fix typo in mbed-rpc parse_pins
2013-04-24 15:26:47 +01:00
Joe Turner
179b7f677e
Add us_ticker api.
2013-04-24 14:29:53 +01:00
Joe Turner
0b01040f47
Lots of small changes which get us compiling.
2013-04-24 11:48:27 +01:00
Joe Turner
7fba5bae39
Add fix for non-compiling analog in C API when median filtering is disabled.
2013-04-24 09:52:45 +01:00
Joe Turner
b4c4ae8f09
Add options.json file for STM32.
2013-04-24 09:46:59 +01:00
Joe Turner
f1a18358b8
Add device specific pin definitions, etc.
2013-04-24 09:46:22 +01:00
Joe Turner
a28d1704be
Add define to let stm32f4xx.h know which uC version we are working with.
2013-04-24 09:45:30 +01:00
Joe Turner
f51b151a9c
Add pinmap.
2013-04-24 09:45:09 +01:00
Joe Turner
7acc783058
Add SPI api
2013-04-24 09:44:55 +01:00
Joe Turner
56ad7f7d58
Add I2C master mode API
2013-04-24 09:44:44 +01:00
Joe Turner
93b0048cb5
Add GPIO api
2013-04-24 09:41:15 +01:00
Joe Turner
883d9855d3
Add analog in api
2013-04-24 09:40:58 +01:00
Joe Turner
96f69ae818
Add untested port api
2013-04-24 09:40:33 +01:00
Joe Turner
4718fc6e2b
Add alternative function to pinmap for STM32.
2013-04-24 09:39:28 +01:00
Emilio Monti
1cfac4cec4
Add parse_pins function removed from the mbed library
2013-04-22 17:53:15 +01:00
Joe Turner
d18875bee3
Add nvic dynamic vector handling.
2013-04-19 10:11:13 +01:00
Joe Turner
ed9e0c1f0f
Start adding STM32F4 cmsis and placeholders for the C API
2013-04-18 17:13:08 +01:00
Emilio Monti
a607392724
[LPC812] Add us_ticker interrupts, board pin names and tests
2013-04-17 16:32:49 +01:00
Emilio Monti
3f684a518f
Add initial KL25Z startup code and linker script for Code Warrior
2013-04-11 17:22:34 +01:00
Emilio Monti
498d5efcc4
Add LPC812 peripherals
2013-04-11 17:19:34 +01:00
Emilio Monti
3fa0f0a3c0
[KL25Z] Use channel 0 as a prescaler for channel 1
2013-03-21 13:33:59 +00:00
Emilio Monti
db129a9c27
[KL25Z] Improve division by constant integer in us_ticker implementation.
2013-03-18 17:20:05 +00:00
emilmont
b8b42d3abd
Fix GCC build including define of ARMCC intrinsic __disable_irq
...
Change-Id: I13ca92e54d8f752cca18f5c75ac026526419edbe
2013-03-18 10:31:26 +00:00
Emilio Monti
ca6e1ed7ab
[LPC812] Add serial_api implementation. Make sure to always pull in the stdio retargeting module. Remove redundant stdio serial initialization.
2013-03-15 17:11:28 +00:00
Emilio Monti
80518c489c
Add LPC812 target. Update tests. Remove obsolete documentation. Move shared code among targets to target independent layer.
2013-03-14 11:52:38 +00:00
Emilio Monti
5f09c37d0f
[KL25Z] Fix us_ticker_api implementation and improve documentation
2013-03-05 18:16:46 +00:00
Emilio Monti
a5e0438a97
Add Freescale KL25Z
2013-02-26 14:57:42 +00:00
Emilio Monti
9ffa978741
[CodeSourcery Toolchain] Fix standard library retargeting removing duplicate _isatty.
2013-02-25 10:37:22 +00:00
Emilio Monti
cfb0ae66ad
[GCC toolchains] declare "__semihost" as "static inline"
2013-02-23 15:58:22 +00:00
Emilio Monti
5c20760685
Initial commit of the mbed libraries and tools
2013-02-18 15:32:11 +00:00