Commit Graph

11304 Commits (1b7a15501c8cd5d08ccd01b408c6dedb46e5ab1c)

Author SHA1 Message Date
bcostm ad60017817 DISCO_L475VG_IOT01A: Move ADC internal channels in dedicated table. 2017-06-20 17:13:45 +01:00
bcostm 274eebd92d DISCO_L475VG_IOT01A: Add all pins even those not available on connectors. 2017-06-20 17:13:45 +01:00
bcostm aa594a56e3 DISCO_L475VG_IOT: Re-organize folder - Move TARGET_DISCO_L475VG_IOT01A/ in TARGET_STM32L475xG/ - Add STM32L475xG extra label in targets.json 2017-06-20 17:13:45 +01:00
bcostm 865a5928cc DISCO_L475VG_IOT: Add USB Device files 2017-06-20 17:13:44 +01:00
bcostm 8b297a4a01 Put device_name in upper-case in targets.json 2017-06-20 17:13:44 +01:00
bcostm c4bf5c215e Remove fat, usb_host, USB_10, USB_11 in build_travis.py --> alignment with other targets after rebase 2017-06-20 17:13:44 +01:00
bcostm 161e909879 Assign LED4 definition same as LED3 2017-06-20 17:13:43 +01:00
bcostm 491346fe45 Set ADC pins to MODE_ANALOG_ADC_CONTROL 2017-06-20 17:13:43 +01:00
bcostm acb65c0bd6 Add back PB_6/PB_7 pins definition used by STDIO_UART_TX/RX 2017-06-20 17:13:43 +01:00
bcostm 206ab0311c Update PeripheralPins: add _ALTx pins and remove pins not available on connectors 2017-06-20 17:13:43 +01:00
bcostm 15f20cb7ab Add "01A" suffix in target name 2017-06-20 17:13:42 +01:00
bcostm 53bf7b4ad9 DISCO_L475VG_IOT: Add ARDUINO in "supported_form_factor" 2017-06-20 17:13:42 +01:00
bcostm bba148ba2f Add target in unsupported main.cpp test files 2017-06-20 17:13:42 +01:00
bcostm 038a870ae5 Update PinNames.h and remove PortNames.h after rebase with master 2017-06-20 17:13:42 +01:00
bcostm 0de4feffb0 Add DISCO_L475VG_IOT in build, export and tests python files 2017-06-20 17:13:41 +01:00
bcostm 4508c76665 Add DISCO_L475VG_IOT in targets.json 2017-06-20 17:13:41 +01:00
bcostm 3e63c20bba Add DISCO_L475VG_IOT in mbed_rtx.h 2017-06-20 17:13:41 +01:00
bcostm c1eda08508 Add DISCO_L475VG_IOT specific files 2017-06-20 17:13:40 +01:00
Hasnain Virk 253ceee0f2 Check Ethernet before including lwipopts_conf.h
lwipopts_conf.h is used by target dependent Ethernet drivers for
configuring various parameters.
By default, Ethernet is enabled and in this case lwipopts_conf.h
will be included.
In case of PPP  being enabled, it is desirable to not pull in any Ethernet
related code.
2017-06-20 17:13:40 +01:00
Yuguo Zou 334c0aafc6 A better approach to flip "netif_inited" 2017-06-20 17:13:40 +01:00
Yuguo Zou a9b1b1c9d4 replace tab with space 2017-06-20 17:13:40 +01:00
Yuguo Zou 8d21488b42 resolve lwip init twice issue
resolve wifi example test fail before lwip is init
2017-06-20 17:13:39 +01:00
Christopher Haster 250319a619 rtos: Unbreak semaphore, trade assert for saturation with original limit
Before rtx 5, the max count on semaphores was UINT16_MAX, aftewards it
was decreased to 1024 with an assert on overflow.

This is especially problematic for semaphores used for signaling, since
there is no replacement currently available in C++.
2017-06-20 17:13:39 +01:00
Jimmy Brisson 38370530b8 Fix a bug in print_large_string 2017-06-20 17:13:39 +01:00
Jimmy Brisson a68fa4ae98 Accept app config option for export 2017-06-20 17:13:38 +01:00
Azim Khan 101cf5e6a3 Remove multiple definition of GREENTEA_SETUP added due to rebase 2017-06-20 17:13:38 +01:00
Azim Khan 0ffbf756d5 Merge greentea-client/test_env_c.h into greentea-client/test_env.h 2017-06-20 17:13:38 +01:00
Azim Khan 9c11240b48 Revert greentea_getc() to return 'int' 2017-06-20 17:13:38 +01:00
Azim Khan c682fb5b74 Use existing functions for Greentea client C API 2017-06-20 17:13:37 +01:00
Azim Khan b0329aea59 Add getc in C API 2017-06-20 17:13:37 +01:00
Mohammad Azim Khan 739d5ecdff C API for greentea client 2017-06-20 17:13:37 +01:00
Vincent Coubard d4d21435f8 NRF52840: Adjust idle thread stack size.
A stack size of 256 bytes is not enough on the NRF52840, this patch
changes it to a size of 512 bytes.
2017-06-20 17:13:37 +01:00
Vincent Coubard c0374e2471 RTOS: Allow per target definition of OS_IDLE_THREAD_STACK_SIZE.
The stack required for the idle thread is highly dependent on the
target because it will call the sleep function which is target
specific.

While 256 bytes of stack is enough for most targets, others like the
NRF52840 might require more.

With this change, target maintainers can specify the idle thread stack
size in their mbed_rtx.h file.
2017-06-20 17:13:36 +01:00
Russ Butler 436d35c212 Increase background stack size to fix overflow
Bump the background stack size to 512 bytes to fix stack overflows on
the NRF52 and so it is the same size as it was before the switch to
RTX5.
2017-06-20 17:13:36 +01:00
Laurent MEUNIER 4529757b2d NUCLEO_L476RG: FLASH size of 1MB, not 2MB
MBED_APP_SIZE was erroneously defined to 2MB for this target,
while it's only 1MB.
2017-06-20 17:13:36 +01:00
Laurent MEUNIER 2d4d542e4d NUCLEO_L476RG: GCC_ARM ld file fix
Following
Merge pull request #4063 from LMESTM/17q2_L4_bootloader
the NUCLEO_L476RG binairies could not boot anymore.

The change done in #4063 was derived from work on NUCLEO_L429ZI target
which supports uvisor. The VECTORS defintiion is introduced as part of
uvisor support and requires further changes in ld file which were missing.
As uvisor is not considered yet, we remove VECTORS for now and will
introduce only when needed.
2017-06-20 17:13:36 +01:00
Christopher Haster 28d2b202c8 Added reporting of reserved heap
Note: Reporting of reserved stack is already performed by the thread
layer
2017-06-20 17:13:35 +01:00
Christopher Haster 8206b4282e fatfs: Fixed initialization of block device in mount/unmount functions
At some point the "mount" parameter for "f_mount" was name "force". This
led to a bit of confusion that ended with the default mount function
never calling block device init.

This is fine, since the block device can be manually initialized, but
a better user experience is where the filesystem initializes the block
device for the user.

This is backwards compatible due to the repeatability of the block
device init functions.
2017-06-20 17:13:35 +01:00
Laurent MEUNIER da7e882c13 STM32: Put some serial code in common between families 2017-06-20 17:13:35 +01:00
Laurent MEUNIER cc7772e2e1 STM32: serial: clear Overrun flag if it is set when checking if readable
Note that this could have side effects on the application as it would
not be aware that data has been missed. This may be later solved by
adding an error management parameter to the Serial API in mbed.

The advantage is that the serial link can work again.
2017-06-20 17:13:34 +01:00
Andreas Larsson a24a5d7fb6 Moved ODIN target files into STM32F439xI folder to avoid duplicate code 2017-06-20 17:13:34 +01:00
Jimmy Brisson 272fe78b90 Check for IAR libraries as well 2017-06-20 17:13:34 +01:00
Jimmy Brisson 253c7e99ed Improve error output of bad lib CI test 2017-06-20 17:13:33 +01:00
Jimmy Brisson 3b0ee9aa8d Simplify doxygen and libfile checks 2017-06-20 17:13:33 +01:00
Jimmy Brisson 17168835a7 Document odd bits of the travis config 2017-06-20 17:13:33 +01:00
Jimmy Brisson e4e855bc13 Add check for correct library naming to CI 2017-06-20 17:13:32 +01:00
mattot01 64d3fd464b Enable IAR and GCC_ARM compiler for CM3DS MPS2
1. Add startup code and linker script for IAR and
   GCC_ARM compilers.
2. Enable IAR and GCC_ARM compilers in targets.json.

Change-Id: I742a89ae73a4e5ede980a8af0821c3f0e5a461ef
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
2017-06-20 17:13:32 +01:00
Tamas Ban 29520eaaa4 Implement RTC(Real Time Clock) API on CM3DS target
- Modify CMSDK_CM3DS.h: add register interface
- Modify targets.json: add RTC as available device to CM3DS
- Create rtc_api.c: implement mandatory API functions

Change-Id: I14bc1074a9ac0d5e4cbada46d3c90ca82c1e28b0
Signed-off-by: Tamas Ban <Tamas.Ban@arm.com>
2017-06-20 17:13:32 +01:00
gabker01 98a04727eb Ethernet driver for MPS2
Refactor SMSC9220 Ethernet controller driver

Change-Id: I75c3c42d5675441de1292100a54c50d990070c6f
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-20 17:13:32 +01:00
gabker01 9b890198dd Implement low-level Ethernet interface for lwIP
Based on lwip_ethernetif.c skeleton file,
use init, receive and transfer
functionality of SMSC9220 Ethernet driver
for the lightweight IP stack.

Receive mechanism is interrupt driven.

HW buffer sizes:
Tx = 4608 bytes (MTU)
Rx = 10560 bytes

lwIP fine tuning:
mbed-os/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/opt.h

Change-Id: I0ea95650c65fb32cafb5c2d3dde11420c61dba66
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-20 17:13:31 +01:00