Commit Graph

585 Commits (mbed-os-5.3)

Author SHA1 Message Date
TomoYamanaka e46ff4d907 Bug fix of initial value of interrupt edge in "gpio_irq_init" again
I modified the bug in PR #3289. But It seems not enough the changes.
For the reason, It occured the following issue.
https://github.com/ARMmbed/mbed-os/issues/3694
So I reviewed and re-modified about the setting of initial value of interrupt edge in "gpio_irq_init".
2017-02-24 13:25:02 +00:00
pradeep-gr e5e32ac348 NCS36510: I2C idle delay of 1us
It is added between I2C commands as I2C_COMMAND_FIFO is too fast to push commands out.
2017-02-24 13:24:58 +00:00
0xc0170 6e4d261df8 NXP KL43Z/KL27Z: fix spi format bits check
Fixes #2989. It was always true for valid values (if its not 8 neither 16 bits, fail).
2017-02-24 13:24:54 +00:00
Christopher Haster e0ae5e57d8 NCS36510: Fixed drift in ticker interrupt
The NCS36510 is limited to 16bit timers. Construction of larger
intervals is performed in software by counting the number of 16bit
intervals that pass.

Either this counting takes a bit of time, or there is a math error
somewhere (maybe a long critical section?), because there is a
roughly ~1us delay between when the interrupt occurs and the ticker
progresses onto the next 16bit interval. This is normally a completely
reasonable error, except that the error accumulates. After a while,
the equeue tests find themselves with tens of milliseconds of error.
To make matters worse, this error is random because of other interrupts
occuring in the system, making the exact issue quite a bit difficult
to track down.

This fix drops the software counter in favor of just recalculating
the next delay interval from the target time and value of the running
timer. The running timer used to calculate the current tick is left to
overflow in hardware and doesn't have this drift.
2017-02-24 13:24:42 +00:00
Laurent MEUNIER 9b89b0632a STM32: spi_frequency table index fix
In case of prescaler_rank was 0, a -1 index was being used,
which resulted in initialization of the Init.BaudRatePrescaler with
random values.

Now let's better check index and avoid -1 operation, so that prescaler_rank
can be only from 0 to "last_index".
2017-02-24 13:24:29 +00:00
jeromecoutant 182c9bfaff STM32F7 : remove multiple HSE_VALUE define value 2017-02-24 13:24:25 +00:00
jeromecoutant 251545215e STM32L4 HAL update for RTC Wake Up Timer 2017-02-24 13:24:21 +00:00
ccli8 d60057e9ef Change sbrk() allocation to be 32-byte aligned 2017-02-24 13:24:14 +00:00
ccli8 684e5f059d Remove power-down support from us_ticker 2017-02-24 13:24:10 +00:00
pradeep-gr 5f726b957d NCS36510: spi_format function bug fix 2017-02-13 13:27:10 +00:00
Russ Butler fcb2f21483 Fix or remove invalid device names
The field device_name is intended to match that of a target in a
device family pack. Remove this field for devices which do not have
a pack. Fix the name for devices that have the name incorrect. Update
IAR definitions for device which no longer have a device_name but
still need to have support for the IAR exporter.
2017-02-13 13:26:57 +00:00
adustm a7a3ae2c55 Modify forder structure so that targets with the same device can share files 2017-02-13 13:26:47 +00:00
JojoS 2cbc35d58d Fix for #2884, LPC824: export to LPCXpresso, target running with wrong clock speed
SystemInit() was called condititionally, but necessary defines were not
set in mbed. Calling SystemInit() unconditional now.
Removed also conditiional calls to legacy CodeRed lib.
2017-02-13 13:26:42 +00:00
Jaeden Amero 0bd09b0189 uVisor: Standardize available legacy heap and stack
With the RTOS, the STACK_SIZE specified here is unrelated to the stack
size available for the main thread (that runs pre_main). Save memory by
reducing the stack size to a more reasonable amount.

On uVisor, HEAP_SIZE is both a minimum available and maximum available
heap size. The heap can't grow beyond the end of the heap into the
neighboring stack. On all uVisor-supported platforms, guarantee at least
0x6000 bytes of heap space. This increases the portability of uVisor
applications as the memory available for legacy heap allocations is
guaranteed. This helps to avoid out of memory errors on platforms that
were previously guaranteeing less memory.
2017-02-13 13:26:38 +00:00
Laurent MEUNIER 32137fa275 STM32: I2C: reset state machine
this I2C IP is meant for automatic STOP, based on programmed number
of bytes to be sent or receivede, not a user triggered STOP.
So the state machiine needs to be reset in case we use this I2C mbed
unitary API (start / byte_write / byte_read / stop).
2017-02-13 13:26:28 +00:00
adustm d085d33dbe STM32F302x8 folder struct 2017-02-13 13:26:25 +00:00
adustm 5cf85171fe STM32F334x8 folder struct 2017-02-13 13:26:20 +00:00
adustm 4159c70507 STM32F303xC folder struct 2017-02-13 13:26:16 +00:00
adustm d98aef9e49 STM32F303x8 folder struct 2017-02-13 13:26:13 +00:00
adustm 351f7d65f4 STM32F303xE folder structure modification 2017-02-13 13:26:09 +00:00
adustm 1b972d53a4 STM32L432xC folder structure rework 2017-02-13 13:26:04 +00:00
adustm 022ba3d507 STM32L476xG STM32L486xG folder structure modification 2017-02-13 13:26:00 +00:00
adustm ecec5f0750 STM32F410xB folder structure update 2017-02-13 13:25:56 +00:00
adustm 3e117c125e STM32F401xE folder structure update 2017-02-13 13:25:52 +00:00
adustm f06c46bca4 STM32F469xI folder structure update 2017-02-13 13:25:48 +00:00
adustm bdf504f7c1 STM32F412xG folder structure update 2017-02-13 13:25:45 +00:00
adustm 5ef202c977 STM32F407xG folder structure update 2017-02-13 13:25:41 +00:00
adustm dc8a83ab1e STM32F401xC folder structure update 2017-02-13 13:25:38 +00:00
adustm c2ca2fdb95 STM32F429 / F439 folder rework 2017-02-13 13:25:34 +00:00
adustm ec8fccc40f STM32F411xE folder structure update 2017-02-13 13:25:30 +00:00
adustm 788fcd7663 STM32F446xE folder structure update 2017-02-13 13:25:26 +00:00
mbedNoobNinja a81d9329bc missing IRQ pin fix 2017-02-13 12:02:30 +00:00
mbedNoobNinja 2006082dbc Export IDE support added 2017-02-13 12:02:24 +00:00
Laurent MEUNIER d2cb07126e STM32: L0 LL layer
Introduce the L0 LL Layer from STM32 cube.
2017-02-13 12:02:19 +00:00
Laurent MEUNIER c8fd470522 Fix alignements 2017-02-13 12:02:13 +00:00
Laurent MEUNIER 7538f8dcde STM32: I2C: remove warning
Remove unused variables to avoid warnings.
2017-02-13 12:02:07 +00:00
Laurent MEUNIER 9042682542 STM32: remove F3 spi_api.c warning
Solve below warning:

"...\targets\TARGET_STM\TARGET_STM32F3\spi_api.c", line 73:
Warning:  #111-D: statement is unreachable
2017-02-13 12:02:02 +00:00
bcostm 485a9d7509 Add USB macros in targets.json for F412ZG 2017-02-13 12:01:42 +00:00
Olaf Hagendorf b8fccedbc8 NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now
Through some minor extensions it is now possible to use all available alternate functions of a specific gpio pin. These alternatives exist up to now only as commented lines in PeripheralPins.c.
An API change is not necessary for this new functionality, only several pin definitions.

The new definitions now looks like:

    {PA_0,            ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)},  // ADC1_IN0
    {PA_0_ALT0,  ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)},  // ADC2_IN0 // choice: PA_0 with ADC_1
    {PA_0_ALT1,  ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)},  // ADC3_IN0 // choice: PA_0 with ADC_1

PA_0, PA_0_ALT0 or PA_0_ALT1 has to be used as pin names for the usage of the three possible ADC blocks (ADC1, ADC2, ADC3) connected to the pin (PA_0).
2017-02-13 12:01:33 +00:00
Michel Jaouen 34dcdde58b USBHOST STM : add more board NUCLEO : F411RE, L476VG, F746ZG DISCO : L476VG 2017-02-13 12:01:26 +00:00
Michel Jaouen 56cdad356a USBHOST STM support : NUCLEO : F429ZI, F446ZE, F207ZG, F767ZI, F401RE, DISCO : F429ZI 2017-02-13 12:01:06 +00:00
Michel Jaouen 4d7ed06e9a STM32 HAL HCD : USBHOST changes for f4,f2,l4,f7 - reset toggle_out , toggle_in at init - in/out toggle in on ctrl endpoint - remove call back when transmission restarted 2017-02-13 12:01:01 +00:00
0xc0170 d44c0d6eca Maxim 3630: define LED4 same as LED1 2017-01-30 11:21:05 +00:00
Jesse Marroquin b53356148a Adding new platform 2017-01-30 11:21:01 +00:00
bcostm c684533de4 Fix bug in i2c_byte_read function 2017-01-30 11:20:56 +00:00
Laurent MEUNIER 3df8f2d816 F3 CUBE update V1.7.0 CMSIS v2.3.0 => v2.3.1 HAL v1.3.0 => v1.4.0 LL v1.4.0 2017-01-30 11:20:52 +00:00
Laurent MEUNIER 772fc663d9 STM32: Move types definitions to a common file
Only one point of attention:
STM_MODE_ANALOG_ADC_CONTROL is a specific mode that is only supported on L4.
So STM_MODE_ANALOG_ADC_CONTROL was moved to index 13 (last entry)
of gpio_mode table so that all the other modes are common and only the last
one is specific.
2017-01-30 11:20:03 +00:00
Jaeden Amero faf9b06fa5 EFM32GG: Fix GCC_ARM linker script
A copy paste error snuck into the uVisor related updates to the EFM32GG
linker script. Fix the error by replacing "m_data" with "RAM".

Fixes: 89641bc7e0 "uVisor: Update K64F and EFM32GG linker scripts"
2017-01-30 11:19:57 +00:00
Laurent MEUNIER fed1187b3a STM32: make PortNames.h a common file
the same file can be used for all targets
2017-01-30 11:19:52 +00:00
TsungtaWu c173a14f0b Revise to improve readability
Delete the blank line.
Use Marcos rather than magic numbers
Put brace at end of the while line
2017-01-30 11:19:05 +00:00