Commit Graph

214 Commits (7dc53176ae50ad4b933aa59f2c221f3bedbf2361)

Author SHA1 Message Date
Tony Wu 16e52f2868 rtl8195am - remove redundant code
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-08-27 10:41:34 +08:00
Tony Wu b170a90acf rtl8195am - fix array assumed to have one element warning
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-08-27 10:41:32 +08:00
Tony Wu d52dd1941e rtl8195am - fix argument format warning
[Warning] tcm_heap.c@70,18: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=]
[Warning] tcm_heap.c@70,28: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=]

Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-08-27 10:41:29 +08:00
Tony Wu ec7a3dd0f3 rtl8195am - fix missing braces around empty body warning
osdep_service.c@214,61: suggest braces around empty body in an 'else' statement [-Wempty-body]

Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-08-27 10:41:26 +08:00
Tony Wu 885b4ccbef rtl8195am - cleanup gcc linker script
Signed-off-by: Tony Wu <tonywu@realtek.com>
2019-08-27 10:40:51 +08:00
Kevin Bracey a522dcfa0a Replace deprecated wait calls 2019-07-15 10:13:50 +03:00
Maciej Bocianski fcde82ba4f HAL I2C: adds missing DEVICE_I2C guards 2019-06-19 23:08:55 +02:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Kevin Bracey 0fb64eee4e RTL8195A: Cope correctly with NC GPIO 2019-05-02 12:16:34 +03:00
Russ Butler c7a19461b4 Add pinmaps to Ameba
Add testing pinmaps to the Ameba along with fixing build errors.
2019-02-08 09:10:47 -06:00
Russ Butler 8669417e7b Add HAL API for spi pinmap
Add the functions to get spi pinmaps to all targets.
2019-02-08 09:10:37 -06:00
Russ Butler 34c176654d Add HAL API for serial pinmap
Add the functions serial_tx_pinmap, serial_rx_pinmap, serial_cts_pinmap
and serial_rts_pinmap to all targets.
2019-02-08 09:10:28 -06:00
Russ Butler be492fe07a Add HAL API for pwmout pinmap
Add the function pwm_pinmap to all targets.
2019-02-08 09:10:19 -06:00
Russ Butler 22a89773fa Add HAL API for i2c pinmap
Add the functions i2c_master_sda_pinmap, i2c_master_scl_pinmap,
i2c_slave_sda_pinmap and i2c_slave_scl_pinmap to all targets.
2019-02-08 09:10:12 -06:00
Russ Butler 3bd3aca6db Add HAL API for analog out pinmap
Add the function analogout_pinmap to all targets.
2019-02-08 09:10:05 -06:00
Russ Butler 4818f88d73 Add HAL API for analog in pinmap
Add the function analogin_pinmap to all targets.
2019-02-08 09:09:51 -06:00
Martin Kojtal 81f9cdae0b realtek: revert license change
While updating the file in the commit b06553fa25, the license was changed. This comimt restores the license back to the original one - Apache 2.0
2019-01-24 12:20:20 +00:00
Przemyslaw Stekiel 3525f6b393 [Realtek] Support boot stack size configuration option 2019-01-08 15:32:04 +01:00
Martin Kojtal 63eca294a1
Merge pull request #9163 from InfernoEmbedded/fix-8913-partner
Don't use define checks on DEVICE_FOO macros (partner code)
2019-01-07 16:37:24 +00:00
Cruz Monrreal 54f759176b
Merge pull request #9210 from AnttiKauppila/mbed_h_fix
mbed.h includes removed
2019-01-04 10:27:30 -06:00
Antti Kauppila b53bedba09 Fixed Realtek test build 2019-01-03 20:05:08 +02:00
Lu 5fa127313f realtek-rtl8195am-Hide_Debugging_Messages
This PR addresses the issue of #8903.
A new boolean variable 'debug' is added to turn off the display of debugging message (by default). It can be turned on when needed.

Description
1.	Add new boolean parameter ‘debug’ in function ‘RTWInterface’ in file "RTWInterface.h".
2.	Add conditional statement to enable/disable variable ‘GlobalDebugEnable’ in file "RTWInterface.h" to control whether debugging message should be displayed.
2018-12-27 13:35:32 +08:00
Alastair D'Silva aa80b7c70a Don't use define checks on DEVICE_FOO macros (partner code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-20 20:02:29 +11:00
Lu 1422379c24 Realtek-rtl8195am-Network Socket Updates
This PR addresses the issue of #8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-12-18 17:18:32 +08:00
zhangzhenwu c97d343470 wifi-headerfile-updates
1, add "extern "C" {}  " to "wifi_ind.h" for being called by CPP files.
2018-11-15 17:02:03 +08:00
David Saada 542744d03c Support erase value in Flash HAL drivers, FlashIAP and block devices 2018-11-07 14:23:07 +02:00
Cruz Monrreal 8a5b9ff893
Merge pull request #8400 from AdamZhang0124/realtek-rtl8195am-usticker-patch
This PR retrieves the TimerSync function to fix the lockup issue
2018-10-18 11:00:56 -05:00
Janne Kiiskila de77695b08 Use wait_ms instead of wait(n)
Small space savings, the casting from int to float will bloat
the code a bit. Using wait(1.0f) for example would avoid it,
but seems a bit silly to use floats for anything unless
really needed (in embedded products).
2018-10-16 10:00:54 +03:00
Lu 2fa91f3b2b This PR retrieves the TimerSync function to fix the lockup issue
1.	Update library
2.	Add ‘hal_timer.h’, ‘rtl8195a_timer.h’
3.	Revert ‘HalTimerOpExt.HalTimerSync(SYS_TIM_ID)’ function in ‘us_ticker.c’
2018-10-12 20:39:06 +08:00
Deepika 1a6048f9c6 Realtek: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
zzw 9d5ebf778c Merge branch 'realtek-rtl8195am-Add-MCU_target-update' of https://github.com/M-ichae-l/mbed-os into realtek-rtl8195am-Add-MCU_target-update
1, edit "targets.json" to let "REALTEK_RTL8195AM" target inherit from "MCU_RTL8195A"
2, change file structures for folder "Target_Realtek"
3, add "PeripheralPins.h" and "PeripheralPins.c"
2018-09-27 17:45:10 +08:00
zzw ff20fc3341 "gpio_api.c" update
1, "gpio_api.c" update. fix issues for compiling the mbed-cloud-client-example
2018-09-06 14:40:06 +08:00
zzw b06553fa25 rtl8195am lib updates
1, rtl8195am lib updates. Preparation for the low power features.
2018-09-06 14:28:34 +08:00
Yossi Levy ed8e170d15 Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure. 2018-08-29 12:01:11 +03:00
Martin Kojtal 16d23702bf
Merge pull request #7873 from 0xc0170/fix_realtek_ipv6
realtek: fix #7829 - remove dhcps files
2018-08-28 14:37:46 +02:00
Cruz Monrreal 7531b31c01
Merge pull request #7751 from mikaleppanen/realtek_emac_interf
Realtek RTL8195A wifi interface to inherit EMAC interface
2018-08-24 19:30:39 -05:00
Martin Kojtal ab029b5f65 realtek: fix #7829 - remove dhcps files 2018-08-23 16:48:00 +01:00
Cruz Monrreal 8e25d2d905
Merge pull request #7669 from SigmaDeltaTechnologiesInc/master
SDT64, 8195, 32620, 32625, 51822, 52832B added to targets
2018-08-17 11:10:12 -05:00
Jiwon Yune f50e7e9620 SDT8195B removed 2018-08-16 11:05:19 +09:00
Mika Leppänen 4385361d38 Changed Realtek RTL8195A wifi interface to inherit EMAC interface
This allows connection status callback build into EMAC interface class
to work with Realtek RTL8195A wifi.
2018-08-10 10:07:16 +03:00
David Saada 84412d6493 Rename text region in ARM linker file for Renesas & Realtek boards 2018-08-08 14:56:58 +03:00
Jiwon Yune 04fc7aa36f Generic pin names added 2018-08-06 14:50:19 +01:00
Cruz Monrreal ae40a09036
Merge pull request #7508 from mprse/ticker_free
Ticker free() - requirements, pseudo code, tests, implementation
2018-08-02 23:05:14 -05:00
Przemyslaw Stekiel ace821017f Add implementation of ticker_free() function to CI boards.
This PR provides implementation of ticker_free() function for the following boards:
ARCH_PRO
EV_COG_AD3029LZ
EV_COG_AD4050LZ
K22F
K64F
K82F
KW24D
KW41Z
LPC546XX
NRF51_DK
NRF52_DK
NUCLEO_F207ZG
NUCLEO_F401RE
NUCLEO_F429ZI
NUCLEO_F746ZG
REALTEK_RTL8195AM
2018-08-02 09:48:10 +02:00
Jiwon Yune 4a06f59de0 SDT8195B added 2018-08-01 18:15:46 +09:00
Przemyslaw Stekiel c0ee843d63 Add lp/us ticker_free() functions stub.
This patch adds only empty stubs of `us_ticker_free()` and `lp_ticker_free()` for all boards where these functions are not implemented.
2018-07-25 08:58:38 +02:00
zzw b6a67c103b realtek rtl8195am remove DEVICE_EMAC
1, remove DEVICE_EMAC for wifi feature
2018-07-19 18:07:18 +08:00
Seppo Takalo e2d3769211 Provide default WiFI interface for REALTEK_RTL8195AM 2018-06-19 16:40:54 +03:00
zzw 4fc8eb1591 fix realtek_rtl8195am IPv6 build fails update
fix for #6909
    -remove the "dhcps.h" and "dhcps.c" files
    -edit "wifi_conf.c" "wifi_conf.h" and "rtw_emac.cpp" to fix compile error
rebase for #6974
2018-05-30 18:53:08 +08:00
Michael Zhang 162a8c0a00 add-rtl8195am-feature-emac (#6904)
rtl8195am feature emac implementation.
2018-05-23 12:25:18 +03:00