Commit Graph

2009 Commits (4af8bc2faed722fc4960b38779e79691a938970d)

Author SHA1 Message Date
GustavWi bd6836396b Moved IAR serial differences to retarget.cpp 2014-12-09 14:30:34 +01:00
Sissors a6c9b1c40b [HAL][K20D50M] Serial baudrate improvements / clk_freqs.h fix
Three changes, first it fixes:
https://github.com/mbedmicro/mbed/issues/761 (which was reported
slightly wrong because K20 has again different clocking from KLXX for
uarts).

Second it adds mcgpllfll to clk_freqs, which again is different for K20
compared to KLXX .

Finally it adds the fractional baudrate divider for more accurate serial
baudrates.
2014-12-08 21:15:24 +01:00
Michael Brudevold 2f5cbcb1c6 Add support for mDot with STM32F411RE processor 2014-12-08 10:58:25 -06:00
GustavWi 9909e7ca56 Fixed IAR serial fgets fgetc 2014-12-08 13:12:37 +01:00
Masao Hamanaka 0b512e5e6f Change I2C driver transfer sequence
Change I2C driver transfer sequence to go according to H/W manual.
Changed contents are as below.
- Access procedure of ACTBT bit of MR3 register
- Issuance procedure of stop condition
2014-12-08 16:47:28 +09:00
Martin Kojtal fb0eb349dd Merge pull request #766 from ohagendorf/reorg_hal_stm324
Targets: DISCO_F4xx - add PeripheralPins.c/.h
2014-12-08 07:25:11 +00:00
Martin Kojtal a17c1dd8f7 Merge pull request #767 from ohagendorf/nucleo_disco_coide
STM32xxx: CoIDE/gcc_arm exporter and startup_stm32xx update
2014-12-08 07:24:22 +00:00
Masao Hamanaka 48448527bd Fix a bug that usticker wait interval is not constant.
When read the timer value, it have a potential to read abnormal value.
Because we used 16bit + 16bit cascade timer and read timer count separately.
Changed usticker timer from 16bit + 16bit cascade timer to 32bit timer to fix the bug.
2014-12-08 15:47:49 +09:00
ohagendorf 86647d8387 [DISCO_F4xx] add PeripheralPins.c/.h 2014-12-07 22:25:38 +01:00
ohagendorf 967046e1d6 [STM32xxx] gcc_arm startup files
Updates startup files to actual versions of STM32 Cube drivers without
any changes of STs drivers:
- DISCO_F303VC
- DISCO_F334
- NUCLEO_F030
- NUCLEO_F072
- NUCLEO_F302
- NUCLEO_F334
2014-12-07 20:52:49 +01:00
ohagendorf 883b2bc0ce [STM32xxx] CoIDE exporter and gcc_arm
- CoIDE options: wrap main and linker option DiscradUnusedSection=1 was
missing in some targets
- CoIDE options: corrected flash loader config for Nucleo_F030 and
Nucleo_F072
- CoIDE options: corrected memory layout (not used per default but now
it is the same as in linker script)
- gcc linker script: changed the memory size from hex number e.g. 0x2000
to decimal 8K
2014-12-07 20:07:56 +01:00
Masao Hamanaka e2a8d32343 Add definition of User button(SW0 and SW1)
Add definition of User button for users.
2014-12-05 17:37:53 +09:00
Masao Hamanaka 4473a517a8 Fix some bugs that IRQ Edge Interrupt will not operation normal.
The bugs of IRQ Edge Interrupt as below.
- Not call a function that was registered in rise, always call a function that was registered in the fall.
- If there are multiple interrupt sources, there is a possibility that end the wrong interrupt processing.
2014-12-05 17:36:52 +09:00
Masao Hamanaka a36c4462f2 Fix a bug that initialize setting of SPI clock value is not correct.
Modify the value as below.
 uint16_t mask = 0x000c0; ->
 uint16_t mask = 0x000c;
2014-12-05 17:35:49 +09:00
Masao Hamanaka dca273e167 Fix a bug that I2C driver can not transfer of 1Byte/2Byte.
I2C driver was not considered about 1Byte/2Byte transfer.
Add 1Byte/2Byte transfer processing in I2C driver.
2014-12-05 17:31:22 +09:00
Masao Hamanaka fe61d8c4f7 Fix a fear of bug that a static value will be indefiniteness.
There was a function that has the potential to be called with indefiniteness argument.
Modify to not call the function with indefiniteness argument.
2014-12-04 16:03:50 +09:00
Masao Hamanaka 7ea2016953 Fix a bug that I2C freq become fixed 100kHz
When I2C read/write, I2C freq ignores the setting of user and it become fixed 100kHz.
Implement change the freq according to the setting of user.
2014-12-04 15:40:38 +09:00
bcostm 2b4edd572b [NUCLEO_F091RC] Remove call to systick 2014-12-03 15:13:05 +01:00
bcostm 7761378c39 [NUCLEO_F072RB] Remove call to systick 2014-12-03 15:11:58 +01:00
Martin Kojtal 4d1fc24b2e Merge pull request #757 from GustavWi/iar_mbed
RTOS: IAR support for M0, M0+ and M4
2014-12-03 13:07:25 +00:00
GustavWi 6210f92420 IAR RTOS support M0, M0+ and M4 2014-12-03 12:54:06 +01:00
Martin Kojtal da233f6e5e Merge pull request #748 from modtronix-com/master
Targets: Fix GCC ARM linker script for STM32L1  (STM32L152XE)
2014-12-03 09:33:13 +00:00
Martin Kojtal 74678ea0fc Merge pull request #755 from masaohamanaka/master
Targets: RZ_A1H - Remove External Bus Controller settings
2014-12-03 08:01:27 +00:00
Toyomasa Watarai 600af8d001 [LPC11XX_11CXX] Fix SPI slave issue
- Fix a bug reported here:
https://developer.mbed.org/questions/4872/SPISlave-Class-dosnt-work-on-LPC1114/
- Add IOCON settings to enable proper pin functions
- Remove non-busy check in slave_receive() function, since the SSP/SPI
is always in busy state when received a valid data according to the
device user manual
- Add bit mask in spi_slave_read() function
- Add TARGET_LPC1114 pin config in SPI_SLAVE test
- Tested with LPC11U24 SPI master and LPC1114 SPI slave
2014-12-03 14:49:23 +09:00
Masao Hamanaka c26d902a4d Remove External Bus Controller settings
GR-PEACH does not have any device that connected external address area of RZ_A1H.
The External Bus Controller settings are needless at GR-PEACH.
Terminals settings will be input mode(It is default setting).
2014-12-03 14:19:07 +09:00
Martin Kojtal a88eaace6b Merge pull request #753 from dinau/update_disco_f051r8
Targets: DISCO_F051R8 - Updated driver files with HAL driver.
2014-12-02 15:36:15 +00:00
Martin Kojtal f6743c5b50 Merge pull request #751 from bcostm/master
Targets: NUCLEO_F303RE - Add new target
2014-12-02 15:35:46 +00:00
Martin Kojtal 7442855e9c Merge pull request #747 from masaohamanaka/master
Targets: RZ_A1H - Fixed I2C bug
2014-12-02 15:05:48 +00:00
dinau 990fc973b5 [DISCO_F051R8]Updated driver files with HAL driver. 2014-12-02 23:41:28 +09:00
bcostm c1caff2714 [NUCLEO_F303RE] Add target part 2 - hal 2014-12-02 07:50:07 +01:00
bcostm c1397c596f [NUCLEO_F303RE] Add target part 1 - cmsis 2014-12-02 07:49:08 +01:00
Masao Hamanaka 27a9f11f8e Implement peripheral clock determination process to I2C driver
When making I2C communication freq, we used a fix value 33.3MHz as peripheral clock as below.
   pclk = 33333333 / (2 << count);

But it is not dynamic when system clock is changed.
So, implement peripheral clock determination process.
Peripheral clock will be decided by RZ-A1H system clock mode.
2014-12-01 20:09:11 +09:00
modtronix-com 3a560efa49 Change comment to GCC scripts
Change comment to GCC scripts. All GCC linker scrips for STM32L1 have
space for BootRAM defined.
2014-12-01 11:55:43 +11:00
modtronix-com 35efc5aaa1 Updated linker script to reserve space for BootRAM
Updated linker script to reserve space for BootRAM at 0x138
2014-12-01 11:47:24 +11:00
modtronix1 be30dcbb0b Fixed GCC ARM linker script for STM32L1 (STM32L152XE.ld)
Fixed Flash and RAM definitions in GCC ARM linker script for STM32L1
(STM32L152XE.ld)
2014-11-29 08:31:53 +11:00
Masao Hamanaka 7290768dc6 Fix a unreadable comments.
There were some Japanese comments in I2C source code.
Fixed those comments to be readable.
2014-11-28 16:18:40 +09:00
0xc0170 2fbe5fa4b0 Merge branch 'ksdk' of github.com:Sissors/mbed into Sissors-ksdk
Conflicts:
	libraries/USBDevice/USBDevice/USBEndpoints.h
	libraries/USBDevice/USBDevice/USBHAL_KL25Z.cpp
2014-11-28 08:03:42 +01:00
Masao Hamanaka 1c4831a243 Fixed I2C bug
Modified the register settings of communication frequency .
2014-11-28 10:28:45 +09:00
Sissors 10156c5006 [USBDevice] Fix for https://github.com/mbedmicro/mbed/issues/690
In the old K64F register .h file (same for K22F),
SIM_SOPT2_PLLFLLSEL_MASK was incorrectly set as a 1-bit field, like it
was in the KLXX devices, while it now is a 2-bit field. This has been
fixed in the current register maps, however the USB clock was set by
taking the entire mask, while only the first bit needs to be set.

This is now fixed by using the SHIFT definition, and should work also on
other Freescale targets (verified on K64, K22 and KL25)
2014-11-27 23:08:23 +01:00
Bogdan Marinescu e1d38422ed Merge branch 'newbuild_lib_rev92' 2014-11-27 13:56:11 +00:00
Martin Kojtal 8a3087825b Merge pull request #744 from masaohamanaka/master
Targets: RZ_A1H - Fix RTOS build error (Cortex A)
2014-11-27 03:35:29 -08:00
Martin Kojtal 84b6398edd Merge pull request #742 from GustavWi/iar_mbed
Targets: IAR Fixed NVIC table in ram for stm targets
2014-11-27 03:33:50 -08:00
Masao Hamanaka cf9fc3c4ac Add SD function
Add SD function and tests for RZ_A1H.
2014-11-27 17:12:57 +09:00
Masao Hamanaka 495ba6d817 Fixed CMSIS-RTOS RTX build error.
Some files of CMSIS-RTOS RTX for CA9 has an effect on build error.
Confirmed those are unwanted files. Deleted.
2014-11-27 17:12:08 +09:00
Martin Kojtal 1401e677dd Merge pull request #743 from ohagendorf/linker_scripts
Targets: STM32F0, F3, F4, L053, L152 -  GCC ARM linker script reorganisation
2014-11-26 23:42:34 -08:00
GustavWi 0f65920536 IAR Fixed NVIC table in ram for nucleo targets 2014-11-27 08:24:08 +01:00
Olaf Hagendorf e0d3730a55 [STM_Targets] linker file naming principle 2014-11-26 16:13:37 +01:00
GustavWi 939471cdbd IAR Fixed NVIC table in ram for stm targets 2014-11-26 16:09:03 +01:00
Olaf Hagendorf 2e3c02f121 [STM32L1xx] linker script reorganisation 2014-11-26 15:07:38 +01:00
Olaf Hagendorf 80ddc6661d [DISCO_F4xx][NUCLEO_F4xx] linker and startup script reorganisation 2014-11-26 14:29:52 +01:00
Olaf Hagendorf dda84e6c32 [STM32F03X][STM3207X] linker script reorganizatin 2014-11-26 13:48:58 +01:00
GustavWi 60a7d3755f IAR Fixed NVIC RAM Vector space for NXP targets 2014-11-26 13:30:49 +01:00
Olaf Hagendorf 087a8eab34 [STM32L053xx] linker script reorganisation 2014-11-26 13:15:09 +01:00
Olaf Hagendorf 0737130e57 [STM32F3xx] linker script reorganisation 2014-11-26 12:31:02 +01:00
Martin Kojtal c3208fe6f4 Merge pull request #736 from GustavWi/iar_mbed
RTOS:  IAR Export for CORTEX M3
2014-11-26 08:57:24 +01:00
Martin Kojtal d9a231862a Merge pull request #733 from masaohamanaka/master
Targets: RZ_A1H - Modified Terminal setting for New GR-PEACH.
2014-11-26 08:53:06 +01:00
Masao Hamanaka 0d99a7d7ad Delete old version terminal setting code.
We confirmed that user never use the old version GR-PEACH.
So, we deleted old version terminal setting code.
2014-11-26 13:44:01 +09:00
Bogdan Marinescu d8f6c47dde Bumped build number 2014-11-25 13:48:38 +00:00
Martin Kojtal 4e89d3c771 Merge pull request #739 from xiongyihui/master
Targets: ARCH_MAX & DISCO_F407VG - Add SystemCoreClockUpdate and HAL_Init to mbed_sdk_init
2014-11-25 12:30:32 +01:00
Yihui Xiong 9bf1247ff9 [ARCH_MAX & DISCO_F407VG] add SystemCoreClockUpdate and HAL_Init to
mbed_sdk_init

HAL_Init is needed by Arch MAX to setup RTC with internal clock
2014-11-25 16:48:14 +08:00
Martin Kojtal d5afb47760 Merge pull request #711 from ohagendorf/_exit-or-exit
mbed: Name of exit function in exit.c for GCC ARM (_exit)
2014-11-25 08:21:11 +01:00
bcostm ea50eb3512 [NUCLEO_L053R8] Correct issue with Travis build 2014-11-24 16:20:26 +01:00
GustavWi d03da0cd30 removed comments and fixed USB_RAM section 2014-11-24 14:28:08 +01:00
GustavWi c2de05e882 Fixed LPC1768 NVIC placement space in RAM 2014-11-24 14:16:32 +01:00
bcostm 53f92133dc [NUCLEO_L0/L1] Add PeripheralPins files 2014-11-24 12:36:39 +01:00
bcostm afd167f734 [NUCLEO_F4] Add note on optional pins 2014-11-24 12:35:46 +01:00
bcostm 04dc0c7a24 [NUCLEO_F3] Add PeripheralPins files 2014-11-24 12:34:35 +01:00
bcostm f62073e179 [NUCLEO_F103RB] Add PeripheralPins files 2014-11-24 12:33:15 +01:00
bcostm 60e0d1431e [NUCLEO_F0] Add PeripheralPins files 2014-11-24 12:32:02 +01:00
GustavWi 092828ce33 Added IAR Export RTOS CORTEX M3 2014-11-24 10:58:08 +01:00
Martin Kojtal 814740f86e Merge pull request #720 from bcostm/master
Targets: NUCLEOs - Improvement of gpio_irq hal
2014-11-24 08:15:36 +01:00
ohagendorf 4d04aba235 [NUCLEO_F072RB] exporter for gcc and coide 2014-11-22 14:56:30 +01:00
ohagendorf caf42f946c [NUCLEO_F030R8] exporter for gcc and coide 2014-11-22 12:18:31 +01:00
Masao Hamanaka 59f686bbc1 Modified Terminal setting for New GR-PEACH.
Modified Terminal setting of Ethernet and LED PIN for New GR-PEACH.
2014-11-21 13:47:46 +09:00
sg- 13b97774b8 [mbed][rtos][k22f] Add initial FRDM-K22F support 2014-11-20 22:21:25 -06:00
Yihui Xiong c6f0c3b14b Revert "[NUCLEO_F103RB] update SystemCoreClock after changing clock settings" 2014-11-20 19:19:47 +08:00
Michael Brudevold 3e1aac36e1 Correct pin names for serial rx/tx 2014-11-19 14:52:49 -06:00
Martin Kojtal f364b76d2f Merge pull request #703 from masaohamanaka/master
Targets: RZ_A1H - Fixed a bug of serial interrupt
2014-11-19 00:59:43 -08:00
0xc0170 be10b27013 Merge branch 'ksdk' of github.com:Sissors/mbed into Sissors-ksdk
Conflicts:
	libraries/USBDevice/USBDevice/USBEndpoints.h
	libraries/USBDevice/USBDevice/USBHAL_KL25Z.cpp
2014-11-19 08:45:48 +00:00
0xc0170 dcfa675e50 Merge branch 'NUCLEO_L152RE_exporter' of github.com:ohagendorf/mbed into ohagendorf-NUCLEO_L152RE_exporter
Conflicts:
	workspace_tools/build_travis.py
	workspace_tools/export/coide.py
2014-11-19 08:43:14 +00:00
Martin Kojtal 7ff3e68a96 Merge pull request #714 from ohagendorf/NUCLEO_F302R8_exporter_2
Tools: NUCLEO_F302R8  - exporters for gcc_arm and coide
2014-11-19 00:28:37 -08:00
Martin Kojtal 5ad32eaa60 Merge pull request #715 from kshoji/nRF51822_serial_31250
Targets: nRF51822 - Add support for Serial 31250 baud (for legacy MIDI)
2014-11-19 00:26:52 -08:00
Martin Kojtal eadd2013c2 Merge pull request #719 from PrzemekWirkus/host-test-improvements-part-2
Tools: Host test plugin improvements, part 2: Copy plugins
2014-11-19 00:24:28 -08:00
Martin Kojtal 12b3c601ea Merge pull request #721 from GustavWi/iar_mbed
Tools: IAR export for some NXP Platforms
2014-11-19 00:23:12 -08:00
Yihui Xiong 72e2d393a6 [NUCLEO_F103RB] update SystemCoreClock after changing clock settings 2014-11-19 13:51:12 +08:00
kshoji d05c1d4950 nrf51_bitfields.h reverted. 2014-11-19 14:47:01 +09:00
GustavWi 849c8742f0 IAR export LPC4088 2014-11-18 16:19:26 +01:00
GustavWi 299749f143 IAR export LPC810 + 812 2014-11-18 16:09:38 +01:00
GustavWi 82523de2c6 IAR export LPC1549 2014-11-18 16:01:34 +01:00
GustavWi d13714fb07 IAR export for LPC11XX and 11CXX 2014-11-18 15:49:23 +01:00
GustavWi b3656be310 Added IAR export for LPC11UXX 2014-11-18 14:54:40 +01:00
bcostm 20177c912b [NUCLEOs] Improvement of gpio_irq hal
Now it is possible to have multiple interrupt pins on EXTI vectors.
Example:
EXTI0 -> PA_0 or PB_0 or PC_0, ... only 1 pin
EXTI5_9 -> PA_5 and PA_6 and PB_7 and PC_8 and PC_9: up to 5 pins
EXTI10_15: PA_10 and PB_11 and PB_12, ... : up to 6 pins
2014-11-18 12:28:30 +01:00
Martin Kojtal 34eccbf435 Merge pull request #716 from bcostm/master
Targets: NUCLEO_F4xx - Add PeripheralPins.c/h file
2014-11-18 02:15:57 -08:00
GustavWi 5311efaae6 Added IAR export for LPC11U68. 2014-11-18 11:15:49 +01:00
Masao Hamanaka a210914f42 Fixed some function's bugs
Fixed some bugs and modified mmu setting.
Fixed functions as below
- analog in
- i2c
- interruptin
2014-11-18 13:54:39 +09:00
Sissors 4a7fde6fa0 [USBDevice] Fix K20D50M name
Since it was initially K20D5M the name is still wrong in USBDevice. This
should fix it.
2014-11-17 18:08:37 +01:00
Przemek Wirkus 0e51149ecf tcpclient test: cheanged the way we ask server for file content (we will now ask for full path, not relative one) so we avoid 'File moved' HTTP 301 return code. 2014-11-17 10:38:18 +00:00
bcostm ff85a88b7b [NUCLEO_F4] Add PeripheralPins.c/h file
Move all pinouts into these 2 files.
2014-11-17 10:01:44 +01:00
kshoji 3dcb6a5b25 nRF51822 - Add support for Serial 31250 baud (for Legacy MIDI) 2014-11-17 12:56:40 +09:00
ohagendorf 42c20128a6 [NUCLEO_F302R8] exporters for gcc_arm and coide
Adds exporter for gcc_arm and coide for the NUCLEO_F302R8.
2014-11-16 18:24:57 +01:00