Commit Graph

818 Commits (ed3c2040e239e368ca6c34334f43f19034a219ff)

Author SHA1 Message Date
Lieven Hollevoet 44b0aa9b73 Ensure the NVIC table gets copied to RAM even when it is not located at 0x00.
This is useful in case you're using a secondary bootloader to load application code that is using the mbed libraries on a bare metal controller.
2014-05-05 14:39:01 +02:00
Neil Thiessen 3e42b889ac Fix reset glitch in pwmout_write()
Resetting the timer every time the duty cycle is changed causes unwanted glitches to be produced on the output. These glitches manifest as a tone at the update frequency when PWM is used for class D style audio.
2014-05-01 09:19:14 -06:00
Bogdan Marinescu 60b6b2c007 Merge pull request #287 from tkuyucu/master
Update with I2C fix
2014-05-01 12:56:21 +01:00
Sissors 127eba40bd I2C changes for the K64F
Fixed also here single byte read (probably)
2014-04-30 14:50:02 +02:00
tkuyucu 35602c21be Merge remote-tracking branch 'upstream/master' 2014-04-30 14:03:28 +02:00
tkuyucu 74ecc75bd8 I2C NAK fix 2014-04-30 14:00:59 +02:00
Sissors 2ec18a06d8 Fixed Freescale byte reads (minus k64)
See:
https://mbed.org/questions/3181/Inconsistent-results-when-attempting-wri/
for the issue. Now every byte read is treated equal and ACKs/NACKs are
correctly generated
2014-04-30 10:46:23 +02:00
bcostm 27918745cd Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-04-30 09:57:58 +02:00
bcostm 4582e2112e [NUCLEO_F103RB] Remove PD_0/PD_1 pins
These pins are not present in the 64 pins package.
2014-04-30 09:57:16 +02:00
Bogdan Marinescu 522752bd58 Merge branch 'master' of git://github.com/dbestm/mbed into dbestm-master 2014-04-29 16:58:46 +01:00
Bogdan Marinescu b5f6c135e4 Merge pull request #279 from xiongyihui/master
fix prescaler settings
2014-04-29 16:46:12 +01:00
dbestm 569da9ae6e [NUCLEO_F030R8] modif in device.h to enable I2C slave and SPI slave 2014-04-29 15:45:28 +02:00
Bogdan Marinescu 5bf985ebc6 Merge pull request #281 from bcostm/master
[NUCLEO_L152RE/F103RB] Add LSE configuration for RTC
2014-04-29 11:05:21 +01:00
bcostm 792677ef91 [NUCLEO_F103RB] Remove trailing spaces, typo corrections 2014-04-29 11:30:45 +02:00
bcostm 9ac0131acd [NUCLEO_F103RB] Add LSE configuration for RTC 2014-04-29 11:02:11 +02:00
bcostm 7af317dda2 [NUCLEO_L152RE] Add LSE configuration for RTC and...
... remove trailing spaces, typo corrections
2014-04-29 10:12:59 +02:00
Toyomasa Watarai 3de6ec9451 [LPC11U68] Initial release
Initial release of NXP LPC11U68 target.
2014-04-29 10:32:24 +09:00
Yihui Xiong f11cb671e5 fix prescaler settings 2014-04-29 07:30:50 +08:00
dbestm 839f1c0bad [NUCLEO_F030R8] add I2C slave, enhance clock settings 2014-04-28 17:58:44 +02:00
bcostm 795ebb928c [NUCLEO_F401RE] Add missing files for LSE configuration, typo 2014-04-28 17:58:42 +02:00
bcostm e85c4f1ebe [NUCLEO_F401RE] Add LSE configuration for RTC, remove trailing spaces, typo corrections 2014-04-28 17:58:40 +02:00
Bogdan Marinescu af534d61c0 Bumped revision number 2014-04-28 15:56:57 +01:00
bcostm 8bafbd10f3 [NUCLEO_F401RE] Add missing files for LSE configuration, typo 2014-04-28 16:46:27 +02:00
bcostm aba7d50e7d [NUCLEO_F401RE] Add LSE configuration for RTC, remove trailing spaces, typo corrections 2014-04-28 16:04:14 +02:00
dbestm 5b12db16ad Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-04-25 15:12:19 +02:00
dbestm a945e45c6f [NUCLEO_F030R8] add more SPI pins 2014-04-25 15:01:49 +02:00
dbestm ebe73f04c3 [NUCLEO_F030R8] add more I2C pins 2014-04-24 17:20:35 +02:00
bcostm 3abdd41404 [NUCLEO_F302R8] Add LSE configuration for RTC 2014-04-24 15:41:23 +02:00
Bogdan Marinescu cdd657a5b0 K64F TCP/IP code compilation temporary workaround 2014-04-24 15:41:17 +02:00
Bogdan Marinescu 9a5f81d75c Added K64F TCP/IP support
Currently NET_7 (HttpClient test) and NET_8 (NTP test) fail for
unknown reasons.
2014-04-24 15:41:14 +02:00
bcostm bbfdef0fac [NUCLEO_F103RB] Correction in us_ticker 2014-04-23 15:11:22 +02:00
cfb95 bc64051587 Update PeripheralNames.h
Add USART3
2014-04-23 15:11:20 +02:00
cfb95 513e6c042e Update serial_api.c
add UART_3 at pins PB_10 and PB_11
2014-04-23 15:11:18 +02:00
dbestm e61e369ebc Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-04-23 14:18:06 +02:00
dbestm c1354497e2 [NUCLEO_F030R8] add more channels for ADC 2014-04-23 13:58:59 +02:00
Bogdan Marinescu 6cf73e2e26 Merge pull request #272 from bcostm/master
[NUCLEO_F030R8/F302R8] Move back SetSysClock() call in SystemInit()
2014-04-23 10:52:20 +01:00
bcostm b5d497940e [NUCLEO_F103RB] Many improvements
- Add more USART, SPI, I2C, PWM and AnalogIn pins
- Use TIM4 instead of TIM1 for the ticker
2014-04-23 11:12:16 +02:00
bcostm 9daf44308a [NUCLEO_F030R8] Move back SetSysClock() call in SystemInit() 2014-04-23 10:03:59 +02:00
bcostm 6abba68998 [NUCLEO_F302R8] Move back SetSysClock() call in SystemInit()
The serial_init() function is called before the mbed_sdk_init() (I don't
know why?) and this causes an incorrect baudrate calculation.
2014-04-23 09:53:35 +02:00
bcostm 3aa9e58c88 [NUCLEO_F030R8] Replace include of stm32f0xx.h with cmsis.h 2014-04-22 17:27:36 +02:00
Bogdan Marinescu a519f94f35 Merge pull request #271 from bcostm/master
[NUCLEO_F030R8] Many improvements added
2014-04-22 15:59:56 +01:00
bcostm 4ac17903e2 [NUCLEO_F030R8] Many improvements added
- Automatic clock configuration at startup between HSE and HSI
- System clock = 48 MHz for both
- Configure LSE for RTC (if not available LSI is used instead)
- Add 1MHz clock for I2C
- Update SPI prescaler values
- Typo corrections
2014-04-22 16:15:31 +02:00
Bogdan Marinescu 14ad8773c4 Merge pull request #270 from cfb95/patch-5
Update serial_api.c
2014-04-22 14:46:50 +01:00
Bogdan Marinescu ab84750786 Merge pull request #262 from dbestm/master
[NUCLEO_F030R8] add more pwm and UART pins, correction in I2C
2014-04-22 14:44:30 +01:00
Bogdan Marinescu 7b8a9ba096 Merge branch 'patch-3' of git://github.com/cfb95/mbed into cfb95-patch-3 2014-04-22 13:41:07 +01:00
Bogdan Marinescu ffe6a9b3e0 Revert "Merge pull request #265 from cfb95/patch-1"
This reverts commit 6b9fca177a, reversing
changes made to c9167e8c43.
2014-04-22 13:37:31 +01:00
Bogdan Marinescu 6b9fca177a Merge pull request #265 from cfb95/patch-1
Update gpio_irq_api.c
2014-04-22 13:22:50 +01:00
Bogdan Marinescu c9167e8c43 Merge branch 'master' of git://github.com/bcostm/mbed into bcostm-master 2014-04-22 12:53:02 +01:00
Bogdan Marinescu cebd0ea8b6 Merge pull request #266 from cfb95/patch-2
Update device.h
2014-04-22 09:59:04 +01:00
Bogdan Marinescu 8215203cde Merge pull request #264 from Sissors/master
K20 general and timer adjustments
2014-04-22 09:52:30 +01:00
cfb95 b82f46862e Update PeripheralNames.h
Add USART3
2014-04-20 08:32:36 -07:00
cfb95 6bc2cf7f6d Update serial_api.c
add UART_3 at pins PB_10 and PB_11
2014-04-20 06:27:17 -07:00
cfb95 bf597151cf Update gpio_irq_api.c
enable 16 irq channels, expanding EXTI9_5_IRQn and EXTI15_10_IRQn
2014-04-19 09:54:38 -07:00
Sissors 62dcd84aa3 Added (deep)sleep
Pretty much copy pasta of KLxx sleep code with only tiny change
2014-04-19 18:11:16 +02:00
cfb95 eaef91bee6 Update device.h
Enable DEVICE_ERROR_PATTERN to detect errors with fast blinking on green and blue leds.
2014-04-18 17:59:40 -07:00
cfb95 cdcd8f46f7 Update gpio_irq_api.c
More irq's and user button bugfix copied from NUCLEO_F103RB commit ab7cc12 by bcostm
2014-04-18 17:47:53 -07:00
bcostm 90e883a43d [NUCLEO_F302R8] Move SetSysClock() in mbed_sdk_init() + minor modifications 2014-04-18 16:18:45 +02:00
Sissors ccdfed52eb Moved ticker timer to a PIT channel + adjusted namings
The timer which creates interrupts is now also done using one of the PIT
channels. Since also here no chaining is possible we still need to do
some bits in software, but 32-bit without prescaling is still better
than 16-bit with.

Also some code was moved around and naming conventions changes, since no
lptmr is used anymore, and calling both pit-timer would get confusing
2014-04-17 22:36:03 +02:00
Sissors ee658aa3e1 Some tab fixes 2014-04-17 18:08:15 +02:00
Sissors 6ff874c0cb Modified timer code
Timer/Wait timer
2014-04-17 18:04:36 +02:00
dbestm 1fa42767fc [NUCLEO_F030R8] add pin for UART 2014-04-17 15:46:33 +02:00
dbestm c8ca6c339b Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-04-16 16:33:54 +02:00
dbestm 45369fa25e [NUCLEO_F030R8] add more pwm, correction in I2C 2014-04-16 16:00:04 +02:00
Sissors 19d131973c Initial K20 fixes
Added the required gpio-irq enable/disable + fixed bus_frequency
2014-04-16 08:12:31 +02:00
Bogdan Marinescu 65be1ee4a1 Merge pull request #247 from Sissors/master
Mode added to BusIn + allow creation of NC pins
2014-04-14 11:23:24 +01:00
Bogdan Marinescu 3afbb87c32 Merge pull request #261 from dinau/pwm_pa3_issue
[DISCO_F407VG] Fixed PWM PA_3 (and PC_9) output issue.
2014-04-14 10:26:20 +01:00
bcostm 4a1946ae8d [NUCLEO_F302R8] Implement analogout_free function
This code was missing + make some typo corrections.
2014-04-14 10:07:32 +01:00
dinau 8f135c6c81 [DISCO_F407VG] Fixed PWM PA_3 (and PC_9) output issue.
Refer to:
http://mbed.org/users/mbed_official/code/mbed-src/issues/4
2014-04-13 11:41:27 +09:00
Bogdan Marinescu efbbb2f307 Merge branch 'master' of git://github.com/sg-/mbed into sg--master
Conflicts:
	libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/gpio_irq_api.c
	libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/gpio_irq_api.c
	libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/gpio_irq_api.c
2014-04-11 17:19:53 +01:00
dinau 9617a966df Merge branch 'mbedmicro.org/master' 2014-04-12 00:40:38 +09:00
sg- b64e32299f add fflush to exit
enable DEVICE_STDIO_MESSAGES on k64f
remove all line endings from error messages throughout mbed sdk (all targets)
2014-04-09 16:24:13 -05:00
dinau 4e32f9440d Added: second analog out. 2014-04-09 20:36:34 +09:00
sg- e20949093c added '\n' to error("") calls for all freescale targets and common source 2014-04-09 01:14:41 -05:00
sg- 52d2d49900 Correct TYPO for SPI pinmap_merge on RF Expansion port 2014-04-09 00:25:26 -05:00
bcostm aba5d84046 [NUCLEO_F030R8] Add more interrupt_in pins 2014-04-08 16:46:38 +02:00
bcostm ab7cc12156 [NUCLEO_F103RB] Add more interrupt_in pins 2014-04-08 16:05:40 +02:00
bcostm aa90406ced Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-04-08 16:02:27 +02:00
bcostm 4a18b90ab7 [NUCLEO_L152RE] Add more interrupt_in pins 2014-04-08 15:53:36 +02:00
dinau d9c2175a05 [STM32F3-Discovery][DISCO_F303VC] initial port. 2014-04-08 22:30:24 +09:00
Bogdan Marinescu d616c415fc Merge pull request #255 from bentwire/master
[STM32F3XX] Initial port
2014-04-08 09:11:08 +01:00
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