bcostm
4dbe95dded
STM32: rename analogin_api.c in analogin_device.c
2017-11-17 13:50:59 +01:00
bcostm
072ec2e765
STM32L4 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
52d942e2d2
STM32L1 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
4b82479175
STM32L0 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
75f80abddc
STM32F7 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
d5ff05a03b
STM32F4 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
7005bc21d7
STM32F3 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
f12391ad25
STM32F2 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
36110e10cf
STM32F1 ADC: remove adc_inited flag
2017-11-17 13:50:58 +01:00
bcostm
2e2744ccbe
STM32F0 ADC: remove adc_inited flag
2017-11-17 13:50:58 +01:00
bcostm
57722eb2b5
STM32 USBDevice: Update targets.json for DISCO_F429ZI
2017-11-17 13:11:57 +01:00
Martin Kojtal
b025ea16d6
Merge pull request #5137 from dave-wu/master
...
Add support for ADI EV-COG-AD3029LZ platform.
2017-11-17 10:21:56 +00:00
Marko Fabo
313458b120
STM32F407VG: Fix RTC
2017-11-17 08:52:00 +01:00
Martin Kojtal
3bedff36e3
Merge pull request #4825 from SiliconLabs/feature/mbedtls-hw-accel
...
Silicon Labs: Add cryptographic acceleration support
2017-11-16 16:24:52 +00:00
Martin Kojtal
d8d8c28e11
Merge pull request #5452 from 0xc0170/fix_i2c_onsemi
...
ONSEMI: Fix I2C issues
2017-11-16 16:18:28 +00:00
Martin Kojtal
01bc4340e8
Merge pull request #5482 from bcostm/fix_disco_l072cz_extclock
...
DISCO_L072CZ_LRWAN1: HSE clock configuration improvement
2017-11-16 16:15:12 +00:00
Martin Kojtal
1fa09fa43d
Merge pull request #5487 from nvlsianpu/bugfix_5462_initial_pin_value
...
Fix bug for issue: initial pin value not retained
2017-11-16 16:13:13 +00:00
Martin Kojtal
114e019675
Merge pull request #5486 from bcostm/fix_CAN3
...
STM32: Add support of CAN3
2017-11-16 16:12:27 +00:00
Martin Kojtal
dc6dd5961e
Merge pull request #5505 from LMESTM/fix_smartcard_HAL
...
STM32: HAL smartcard, fix memory corruption in Receive
2017-11-16 16:11:04 +00:00
jeromecoutant
763531921f
DISCO_L072CZ_LRWAN1 can use LSE from LORA module (more precise than LSI)
2017-11-16 15:27:04 +01:00
jeromecoutant
5f86ae5757
STM32L072CZ error in ARM sct file name
2017-11-16 15:12:51 +01:00
Dave Wu
45aa2130bc
Added SystemCoreClock as an extern.
2017-11-16 13:29:43 +00:00
cyliangtw
288094568c
[M487/NUC472/NANO130] fix TRUE/FALSE redefinition
2017-11-16 11:21:20 +00:00
Dave Wu
401674284a
Cleaned up some formatting issues.
2017-11-15 22:59:26 +11:00
Martin Kojtal
41eb565d9c
Merge pull request #5342 from ARMmbed/feature_cortex_a
...
Update CMSIS/RTX with Cortex-A support
2017-11-15 11:24:36 +00:00
Laurent MEUNIER
be42c6de55
STM32: HAL smartcard, fix memory corruption in Receive
...
Re-casting with tmp the uint8_t* pData pointer to uint16_t* brings a
memory corruption and typically can corrupt the size parameter. This
is fixed with this commit.
STM32 Internal ticket reference : 39116
2017-11-15 10:50:21 +01:00
bcostm
2d8d8ae9e1
STM32: fix error with CAN_3 not defined
2017-11-15 10:36:03 +01:00
bcostm
2e2b408580
STM32: fix compilation error with STM32F1
2017-11-15 09:07:52 +01:00
bcostm
f0aed41991
DISCO_L072CZ: remove dead code
2017-11-15 08:59:50 +01:00
Dave Wu
82a58ac94d
Added support for ADI EV-COG-AD3029LZ platform.
...
Fixed issues raised from ARM PR review and removed the unsupported platform.
- Fixed an issue where the TRNG is read even though it may not be ready;
- Added configuration to ensure the buffering mode is disabled so only 8-bit bytes are generated;
- Moved the TRNG device handle into the trng_t structure.
Removed undefined spi slave related functions.
- Added error checking for trng_get_bytes function;
- Added curly brackets to single line conditions for some files;
- Changed rx and tx buffers in serial module as local variables;
- Removed some unused code and some minor formatting corrections;
- Minor i2c & spi updates for github pull request;
- Added function definition for spi_master_block_write.
Added default delay and sample times for the ADC during initialization.
- Added code to clear stack variable in trng_get_bytes upon exiting the
function;
- Remove lp ticker functionality as the timer hardware does not satisfy
lp timer requirements.
Added a check for the STUCK bit before reading the RNG data register to ensure there are no hardware faults.
- Removed .mbedignore to work around some exporter issues;
- Added #includes to some of the driver data C files for them to build on their own.
2017-11-15 16:35:31 +11:00
bcostm
be2a6ae273
STM32: Use CAN3_BASE + typos
2017-11-14 09:48:02 +01:00
bcostm
0ef4e2881c
STM32: Add support of CAN3 on STM32F413/F767
2017-11-14 09:48:02 +01:00
Jimmy Brisson
f0912554d5
Merge pull request #5473 from marcuschangarm/rtl8195am_ota
...
Reorganize defines for firmware updates on Realtek RTL8195AM
2017-11-13 10:59:28 -06:00
Jimmy Brisson
4185c1a6cf
Merge pull request #5471 from marcuschangarm/rtl8195_flash_page
...
Increase flash program granularity on Realtek RTL8195AM
2017-11-13 10:58:50 -06:00
Jimmy Brisson
757a4e3b75
Merge pull request #5464 from Archcady/Fix_lockup
...
Fix lockup issue for REALTEK_RTL8195AM
2017-11-13 10:54:37 -06:00
Jimmy Brisson
ee76bd8ae3
Merge pull request #5231 from jrobeson/add-rblab-blenano2
...
Add support for RedBear's BLE Nano 2
2017-11-13 10:53:04 -06:00
Jimmy Brisson
13d43d75ef
Merge pull request #5144 from dave-wu/ev-cog-ad4050lz
...
Add support for ADI EV-COG-AD4050LZ platform.
2017-11-13 10:50:51 -06:00
Andrzej Puzdrowski
edb86500b5
Fix bug for issue 5462, initial pin value not retained
...
For api usage like DigitalOut led(LED1, 1) the hal function gpio_write()
sets the output before f. gpio_mode() is called. gpio_mode() clears the
output as it take never writen parameters (gpio_cfg_t.init_hight).
This patch use internal hardware register of GPIO output instedad of above paramiter latch
for retaining proper writen state.
2017-11-13 16:44:56 +01:00
bcostm
104295b64e
DISCO_L072CZ: add comment in clock_source config
2017-11-13 11:36:22 +01:00
bcostm
c0f6b25eba
DISCO_L072CZ: align SetSysClock_PLL_HSE() with SetSysClock_PLL_HSI()
2017-11-13 11:34:56 +01:00
cyliangtw
d8a9e35a0c
[M487/NUC472] Refine trng_get_bytes for consistency and readability
2017-11-13 12:11:08 +08:00
Steven Cooreman
1dc3941a5f
Apply feedback by @Patater
2017-11-11 19:38:54 +01:00
Tony Wu
a451498141
rtl8195am - remove redundant header file inclusion
...
Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-10 09:53:42 +00:00
Bartek Szatkowski
c5a5438256
Update params in calls to LD/STREXW to be uint32_t
2017-11-10 09:53:42 +00:00
Bartosz Szatkowski
717087c772
Renesas: Add empty mbed_rtx.h
2017-11-10 09:53:41 +00:00
Bartek Szatkowski
c10dd0a725
RZ_A1H: Fix cmsis header name
2017-11-10 09:53:41 +00:00
Martin Kojtal
47bae16a5c
Merge pull request #5305 from andcor02/master
...
New Target: Mbed Connect Cloud board
2017-11-10 08:43:29 +00:00
cyliangtw
2ee058be53
[M487/NUC472] Refine for correctness control
2017-11-10 16:22:35 +08:00
Marcus Chang
a0729952a3
Reorganize defines for firmware updates on Realtek RTL8195AM
...
Moved defines, typedefs and function prototypes from ota_api.c to
ota_api.h so that these can be included in applications.
2017-11-09 10:27:59 -08:00
Marcus Chang
5fe03afea6
Increase flash program granularity on Realtek RTL8195AM
...
The Page size has been set to 1 byte instead of the previous 256.
Although 256 is the physical page size, the driver supports
writing 1 byte at a time.
2017-11-09 09:51:06 -08:00
Martin Kojtal
0d1dc83eb1
Merge pull request #5432 from JammuKekkonen/master
...
HEXIWEAR: define HEXIWEAR target to support bootloader.
2017-11-09 16:56:29 +00:00
Martin Kojtal
494c25d71c
Merge pull request #5344 from gorazdko/add-new-target-L-TEK-FF-LPC546XX
...
add new target L-Tek FF-LPC546XX
2017-11-09 16:42:24 +00:00
Martin Kojtal
2b391447c6
Merge pull request #5390 from 0xc0170/fix_fire_int_ncs
...
ncs36510: fire interrupt correct timer fix
2017-11-09 16:36:57 +00:00
Martin Kojtal
f17355fc71
Merge pull request #5422 from soramame21/master
...
Add bootloader support for DISCO_L475VG_IOT01A
2017-11-09 16:35:31 +00:00
Martin Kojtal
18393f3faf
Merge pull request #5424 from jeromecoutant/PR_L496
...
NUCLEO_L496ZG_P support
2017-11-09 16:32:56 +00:00
Martin Kojtal
a65d37e485
Merge pull request #5453 from marcuschangarm/rtl8195am_flash
...
Increase flash size on Realtek RTL8195AM
2017-11-09 16:23:46 +00:00
Martin Kojtal
66054f4b62
Merge pull request #5455 from LMESTM/flash_2MB_GetSector_fix
...
STM32 Flash 2MB GetSector fix
2017-11-09 16:23:02 +00:00
Yuguo Zou
6af9a5a002
Remove lines to improve readability
2017-11-09 18:23:17 +08:00
Yuguo Zou
05cf4680bd
Update HAL library to fix lockup issue
2017-11-09 17:59:14 +08:00
jeromecoutant
17c86d1cd6
STM32F412 IAR linker file issue
2017-11-09 09:45:07 +01:00
cyliangtw
e252b10148
[M487/NUC472] zeroize random data on the stack memory
2017-11-09 16:01:14 +08:00
Dave Wu
d5122c5ea5
- Removed .mbedignore due to an issue with the eclipse exporter not picking up the ignored files;
...
- Added #includes in BSP data C files so they can be built on their own without mbedignore;
2017-11-09 14:17:15 +11:00
cyliangtw
76c2c19853
[M487/NUC472] Unified code-path for remaining bytes of TRNG_Get
2017-11-08 19:56:12 +08:00
Laurent MEUNIER
48a49b4a00
STM32: remove trailing white spaces
2017-11-08 10:28:46 +01:00
Laurent MEUNIER
d9bda2800d
STM32F4: Flash: fix 2MB GetSector computation
...
The computation of the sector number in GetSector for 2MB flash sizes
consists in adding an extra constant for 2MB dual bank (12 as in
ADDR_FLASH_SECTOR_12), then going through the same address check as if it
was an address of the first sector.
That means that we need to modify tmp and address as if it was a first bank
address, which we're doing here by sub_stracting 0x100000 delta.
2017-11-08 10:24:36 +01:00
cyliangtw
4118afa259
[M487/NUC472] TRN_Get support 32 bytes unalignment
2017-11-08 14:23:05 +08:00
Marcus Chang
f44a15454b
Increase flash size on Realtek RTL8195AM
...
The Realtek RTL8195AM has 2 MiB of external flash. This change
enables the FlashIAP driver to gain access to the full flash.
2017-11-07 09:25:24 -08:00
danclement
36d335baf4
Checking in the fixes related to I2C issues.
...
Three main issues:
1) The 0x13 special case section in write data in ncs36510_i2c.c didn't have a write++ command.
2) In the same write function, the WDAT8 command was put before the 0x13 section and this is not correct
3) Needed to add wait_us(0) before and after the register writes for apparent clock domain crossing delay times until registers are stable in HW
There were also a handful of other tweaks related to general code maintenance and moving some status register checks to the proper locations.
2017-11-07 16:00:05 +00:00
Yuguo Zou
bf3d68ee88
Update HAL code to resolve ticker lockup issue
2017-11-07 17:02:42 +08:00
Tony Wu
07646db24c
rtl8195am - fix us_ticker interrupt handling
...
TIMER2_7_IRQ is shared among several timer sources, including
us_ticker. Raising TIMER2_7_IRQ pending bit will trigger the timer
interrupt, but the timer interrupt handler will not know which timer
source this interrupt is for. This patch sets timer load value to one
tick and force us_ticker to fire almost "immediately".
TIMER2_7_IRQ is handled through a common interrupt handler, and
is automatically cleared. Therefore, there is no need to clear IRQ.
The underlying timer HAL treats load value as micro-seconds and does
conversion internally. Therefore, simply pass micro-seconds to timer
HAL without converting to tick first.
Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-07 11:44:43 +08:00
Jammu Kekkonen
46b6490d87
HEXIWEAR: define HEXIWEAR target to support bootloader.
2017-11-03 18:25:02 +02:00
jeromecoutant
88c3bcfd1c
NUCLEO_L496ZG_P support
2017-11-03 11:06:45 +01:00
jeromecoutant
dde615b8a8
NUCLEO_L496ZG minor update
2017-11-03 10:54:49 +01:00
johnny
a2c78e104a
Add support for RedBear's BLE Nano 2
...
Cribbed from 4bf42f2e20
I'm not sure if if there are any copyright issues here with what is
effectively a set of config files. A few folks have been bugging me (and
the redbear folks) for these changes, so I wanted them somewhere
centralized.
2017-11-02 17:43:12 -04:00
Boting Ren
e5fd7f2100
Add mbed-cloud-client support on DISCO_L475VG_IOT01A with
...
wifi_esp8266_v4.json.
2017-11-03 05:15:38 +09:00
Jimmy Brisson
9163ddfe61
Merge pull request #5399 from jeromecoutant/PR_MSP
...
STM32F4/STM32L4: remove MSP template file
2017-11-02 10:42:04 -05:00
Jimmy Brisson
c40b642455
Merge pull request #4650 from catiedev/master
...
NUCLEO_L496ZG: Add new Platform
2017-11-02 10:36:23 -05:00
Dave Wu
9e0e9c8bee
Added a check for the STUCK bit before reading the RNG data register to ensure there are no hardware faults.
2017-11-02 15:50:55 +11:00
Andrea Corrado
53c476acf2
introduced mbed Connect Cloud board based on ODIN-W2 Module rety commit, added ublox changes
...
Corrected error
Corrected error in targets json
Reworked JSON
Added lwip-eth to Connect ODIN removes ARM CC error
Fixed formating issues
Correct formating error in .json
Indentation errors
2017-10-31 11:24:28 +00:00
Jimmy Brisson
02f1d0185a
Merge pull request #5320 from kegilbert/fix-build-warnings-lpc4088
...
Fix ethernet API build warnings for LPC4088
2017-10-30 10:08:15 -05:00
jeromecoutant
c51f0f3d5f
STM32F4/STM32L4: remove MSP template file
...
HAL_MspInit/HAL_MspDeInit/HAL_PPP_MspInit/HAL_PPP_MspDeInit weak functions can now be overwritten as it is expected
2017-10-30 10:38:43 +01:00
Wu
2eff4c7569
- Added code to clear temporary variable on the stack before exiting the
...
trng_get_bytes;
- Removed lp ticker as it does not satisfy the requirements of the lp
timer.
2017-10-30 02:16:55 +01:00
Martin Kojtal
99f4961325
ncs36510: fire interrupt correct timer fix
...
Use Timer1, it is used for us ticker isr handling. Plus reset target counter,
that should be 0, go to upper ticker isr handler immediately.
2017-10-27 17:46:24 +01:00
Kevin Gilbert
901157b305
Replace PACKED attribute on lpc4088 ethernet structs with MBED_PACKED. Placement of packed attribute was causing warnings due to following typedef
2017-10-26 11:34:48 -05:00
Anna Bridge
97e2d4a8c5
Merge pull request #5025 from grygorek/master
...
LPC1769 port
2017-10-26 11:35:35 +01:00
Anna Bridge
38ba693c57
Merge pull request #5327 from bcostm/remove_warnings
...
STM32: Remove compilation warnings
2017-10-26 11:05:20 +01:00
Anna Bridge
ea43b437a6
Merge pull request #5352 from Archcady/fix-event-lockup
...
Fix us_ticker collision and race for RTL8195AM
2017-10-26 11:01:06 +01:00
Jimmy Brisson
1566395323
Merge pull request #5347 from 0xc0170/nxp_fix_lptimer
...
MCUXpresso: Fix LPTimer issue when using multiple timeout objects
2017-10-23 10:34:50 -05:00
Jimmy Brisson
2a8023180f
Merge pull request #5340 from 0xc0170/nxp_fix_us_timer_replacement
...
MCUXpresso: Fix issue of ticker interrupt incorrectly firing
2017-10-23 10:34:07 -05:00
Jimmy Brisson
d2b762092c
Merge pull request #5260 from tung7970/fix-iar
...
RTL8195AM - Fix IAR ielftool zero-padding issue
2017-10-23 10:32:29 -05:00
Jimmy Brisson
3354327a9f
Merge pull request #5188 from bcostm/fix_dac_f207zg
...
NUCLEO_F207ZG: Analogout improvement
2017-10-23 10:31:17 -05:00
Jimmy Brisson
656aa8279b
Merge pull request #5179 from LMESTM/trng_deprecated_call
...
STM32: TRNG: remove call to deprecated HAL_RNG_GetRandomNumber
2017-10-23 10:29:04 -05:00
misodengaku
1c28898ed1
add target TARGET_SAKURAIO_EVB_01.
2017-10-23 12:55:58 +09:00
Laurent MEUNIER
38488623c8
Activate FLASH hal support on 2 STM32 boards
...
The generic Flash support for L4 and L0 families is already there,
but was not activated by default on 2 recentely added boards:
DISCO_L475VG_IOT01A and DISCO_L072CZ_LRWAN1
This is done now.
2017-10-20 15:11:01 +02:00
Tony Wu
1ee88fb0f6
rtl8195am - fix us_ticker collision and race
...
Switch to timer 2 for us_ticker for timer 6 might be used
for power saving.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-20 17:10:02 +08:00
Martin Kojtal
0c679a8f7d
Merge pull request #4989 from maclobdell/k66f_flash_iap_bootloader_noflashdrvr
...
add flash iap and bootloader support to K66F
2017-10-19 16:45:52 +01:00
Martin Kojtal
2af7213c51
Merge pull request #5104 from architech-boards/master
...
add support for SILICA_SENSOR_NODE platform
2017-10-19 16:44:17 +01:00
Mahadevan Mahesh
bc5c94517c
MCUXpresso: Fix LPTimer issue when using multiple timeout objects
...
Fix for Issue #5150
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-19 11:38:22 +01:00
gorazd
b010223145
add new target L-Tek FF-LPC546XX
2017-10-18 23:56:12 +02:00
Mahadevan Mahesh
168bdc8803
MCUXpresso: Fix issue of ticker interrupt incorrectly firing
...
Fix for Issue #5279
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-18 15:29:57 +01:00