Skip to content

Release candidate for mbed-os-5.5.6 #4974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 141 commits into from
Aug 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
2597541
Support NuMaker-PFM-M487 board
ccli8 Dec 13, 2016
1d647ef
Add CAN, AES and Eth
cyliangtw Dec 16, 2016
52a64e6
Fix compile error with Travis CI
ccli8 Dec 15, 2016
02f74a9
Fix link error in uvisor-enabled application
ccli8 Dec 15, 2016
0384bf2
Fix us_ticker drift error > 5%
ccli8 Dec 16, 2016
ced599c
Support uvisor debug message through stdio uart
ccli8 Dec 20, 2016
624e284
Remove power-down support from us_ticker
ccli8 Dec 22, 2016
91cf16c
Change sbrk() allocation to be 32-byte aligned
ccli8 Dec 27, 2016
d849f7f
Support CAN feature
cyliangtw Jan 5, 2017
c258724
Support ethernet after enlarge PHY RXD driving
cyliangtw Jan 17, 2017
3b22108
Add configuration option MBED_CONF_M480_USB_DEVICE_HSUSBD
ccli8 Feb 7, 2017
e442ae2
Prepare support for one-to-many mappings in the same pin map
ccli8 Feb 15, 2017
0786cce
Add missing support for ANALOGIN
ccli8 Feb 22, 2017
57afac6
Fix PDMA error on timeout
ccli8 Mar 7, 2017
83c6bda
Fix pwmout power-down condition
ccli8 Mar 8, 2017
809e492
Add dma_modbase() to get PDMA base address
ccli8 Mar 8, 2017
a914be7
Refine SPI PDMA code
ccli8 Mar 8, 2017
6c9dfc0
Refine serial PDMA code
ccli8 Mar 8, 2017
55c96de
support unique locally administered MAC address
cyliangtw Mar 9, 2017
a2392a6
Support flash
ccli8 Mar 21, 2017
a095d25
Remove 'FIXME' comment in flash_api.c
ccli8 Mar 24, 2017
06b4092
Fix flash algorithm
ccli8 Apr 5, 2017
14782dc
Fix DMA channel over-allocate
ccli8 Apr 20, 2017
9ed2a70
Fix pwmout power-down condition
ccli8 Apr 20, 2017
17c0d55
Fix serial error with sync/async calls interlaced
ccli8 Apr 26, 2017
bd10654
Rename sleep/deepsleep to hal_sleep/hal_deepsleep
ccli8 May 5, 2017
13752eb
Fix region end address error with IAR toolchain
ccli8 May 5, 2017
9b74839
Change comment for serial_getc/serial_putc
ccli8 May 9, 2017
7c29c21
Fix RTC time doesn't continue across reset cycle
ccli8 May 10, 2017
9615a95
Correct comment for RTC time error in 1 sec after boot
ccli8 May 11, 2017
33deb03
Alpha support for real chip
ccli8 May 23, 2017
e3896f5
Fix compile error with GCC_ARM toolchain
ccli8 May 24, 2017
7b9422b
Change OS_CLOCK to 192 MHz
ccli8 May 24, 2017
89d1182
Fix some compile warnings
ccli8 May 24, 2017
45de390
Conform to mbed TLS H/W acceleration support released with mbed OS 5.3
ccli8 May 24, 2017
7bcf573
Fix board header for real chip
ccli8 May 24, 2017
5de4c79
Update startup files
ccli8 May 25, 2017
cb180a8
Add LED4 to pass ATS
ccli8 May 25, 2017
492268d
Add SPI MOSI0/MISO0 into pin map
ccli8 May 31, 2017
66982bd
Support one-to-many mapping in the same pin map
ccli8 May 31, 2017
3a500ac
Divert SRAM bank2 (32 KB) to CCM from SPIM cache
ccli8 Jun 1, 2017
cadc2c2
Support bootloader
ccli8 Jun 1, 2017
6495f17
Align with BSP
ccli8 Jun 9, 2017
5610a8f
Add comment in gpio_irq_init()
ccli8 Jun 12, 2017
19506f8
Revise EMAC to fulfill real-chip
cyliangtw Jun 15, 2017
3fae7a0
Revise CAN & AES to fulfill real-chip
cyliangtw Jun 15, 2017
b836824
Guard from initial stack allocated on SPIM CCM memory not initialized…
ccli8 Jun 12, 2017
6df31cb
Support initial stack allocated on SPIM CCM memory
ccli8 Jun 13, 2017
236aa5e
Fix emitting uvisor core debug message through USB VCOM
ccli8 Jun 14, 2017
8220909
Add Arduino UNO pins D14 and D15
ccli8 Jun 19, 2017
dff0df9
Add internal configuration control_01
ccli8 Jun 16, 2017
91f57b1
Fix ARM mbed CI pwm test failed
ccli8 Jun 19, 2017
0faf334
Fix abnormal pulse on re-configuring pwmout
ccli8 Jun 21, 2017
66806fc
Give universal rtx configuration for all Nuvoton targets
ccli8 Jun 22, 2017
7934307
Remove device_name temporarily due to CMSIS pack for it not ready yet
ccli8 Jun 26, 2017
3dc8f07
Fix lp_ticker typo
ccli8 Jun 27, 2017
046422e
Remove mbed_sdk_init_forced()
ccli8 Jul 5, 2017
60b5a50
Remove dead code
ccli8 Jul 5, 2017
4a7226e
Set LED4 to LED1
ccli8 Jul 5, 2017
b8ed557
Add sanity check for serial format
ccli8 Jul 5, 2017
abd8dee
Add comment for Receive Time-out IF in SPI HAL
ccli8 Jul 5, 2017
592f46b
Refine coding style
ccli8 Jul 5, 2017
e883790
Remove debug code in I2C HAL
ccli8 Jul 12, 2017
3728d05
Add ticker API us_ticker_fire_interrupt and lp_ticker_fire_interrupt
ccli8 Jul 20, 2017
c5a4f78
Fix include file error in case-sensitive environment
ccli8 Jul 24, 2017
580011e
Fix GCC linker script with uVisor
ccli8 Jul 24, 2017
1322304
Update spi_master_block_write() API
ccli8 Aug 1, 2017
dfef377
Remove NVIC_SetVector/NVIC_GetVector to match updated boot flow
ccli8 Aug 1, 2017
e7c3faf
Fix compile warnings with ARM toolchain
ccli8 Aug 3, 2017
ba0f033
Fix compile warnings with GCC_ARM toolchain
ccli8 Aug 3, 2017
a72c716
Fix compile warnings with IAR toolchain
ccli8 Aug 3, 2017
c125539
Move target configuration from mbed_lib.json to targets.json
ccli8 Jul 25, 2017
38ee85f
Add back device_name in target description
ccli8 Aug 3, 2017
cbe2849
Remove support for uVisor core debug message via STDIO
ccli8 Aug 3, 2017
6e045e0
Update CMSIS packs
ccli8 Aug 8, 2017
430a94b
STM32 CAN: Fix issue with speed function calculation
bcostm Jul 24, 2017
453639f
Make HAL & US tickers idle safe
betzw Jul 25, 2017
ad01e42
Use DSPI SDK driver API's in spi block read
Jul 25, 2017
94b40c3
Fix region end address error with IAR toolchain
ccli8 May 9, 2017
019c989
Fix RTC time doesn't continue across reset cycle
ccli8 May 10, 2017
cc05269
Move SystemInit() to register unlock range for perhaps future protect…
ccli8 May 25, 2017
2b36413
Conform to mbed TLS H/W acceleration support
ccli8 May 19, 2017
caa0006
Add comment in gpio_irq_init()
ccli8 Jun 12, 2017
7f6d3d4
Fix lp_ticker typo
ccli8 Jun 27, 2017
0ec208c
Remove mbed_sdk_init_forced()
ccli8 Jul 6, 2017
7483c69
Set LED4 to LED1
ccli8 Jul 6, 2017
b904c9d
Add sanity check for serial format
ccli8 Jul 6, 2017
cc9bcbc
Add comment for Receive Time-out IF in SPI HAL
ccli8 Jul 6, 2017
9cc3294
Move target configuration from mbed_lib.json to targets.json
ccli8 Jul 25, 2017
36c1fbb
Sync SPI mode with NUC472 BSP V3.02.001
cyliangtw Jul 26, 2017
f5efb93
Add call to DAC_Enable as this is no longer done as part of DAC_Init
mmahadevan108 Aug 1, 2017
79ca5bd
Allow using of malloc() for reserving the Nanostack's heap.
Aug 3, 2017
10e14d0
Add list of defines to vscode exporter
janjongboom Aug 3, 2017
36ee5e7
Use placement new to optimize wifi scan
Archcady Aug 7, 2017
ada50d4
Change to use copy assignment operator for RTWInterface::scan
Archcady Aug 10, 2017
f9a5120
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
9d10396
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
ee6e2e7
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
02ee9d9
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
49d422b
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
caaf27e
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
5355b65
Fix mask bits for SPI clock rate
toyowata Aug 8, 2017
8cf1842
Add cortex-a cache file
0xc0170 Aug 8, 2017
0513200
STM32F0 : internal ADC channels
jeromecoutant Jul 21, 2017
0c43059
STM32F1 : internal ADC channels
jeromecoutant Aug 9, 2017
4ee6ae7
STM32F3 : internal ADC channels
jeromecoutant Aug 9, 2017
595ca3c
STM32F4 : internal ADC channels
jeromecoutant Aug 9, 2017
43967d7
STM32F7 : internal ADC channels
jeromecoutant Aug 9, 2017
dbee9a2
STM32L0 : internal ADC channels
jeromecoutant Aug 9, 2017
78740bc
STM32L1 : internal ADC channels
jeromecoutant Aug 9, 2017
9cb688a
memap enhancements with depth level configurable
May 25, 2017
5e292c9
Fix to generate memory_usage key in report
Aug 6, 2017
7de5920
Turn on doxygen for DEVICE_* features
c1728p9 Aug 11, 2017
c598227
Move RTX error handlers into RTX handler file
c1728p9 Jul 20, 2017
0d7c129
Using CMSIS/RTX Exclusive access macro
Aug 11, 2017
a4782b5
fix export static_files to zip
JojoS62 Aug 16, 2017
5093793
bd: Added ProfilingBlockDevice for measuring higher-level applications
geky Jul 25, 2017
b8f1c4a
target BLUEPILL_F106C8 compile fix
pilotak Aug 13, 2017
8c41faa
Update gcc-arm-embedded PPA in Travis
amq Aug 16, 2017
f7039c2
Change gcc-arm-none-eabi package name in Travis
amq Aug 16, 2017
8ead101
STM32L053x8: Create folder and move objects.h
bcostm Aug 7, 2017
4d3fbe6
STM32L053x8: Move other folders and files
bcostm Aug 7, 2017
ce6ffe4
STM32L053x8: cleanup ARM compiler files
bcostm Aug 7, 2017
bc3331a
STM32L053x8: Add STM32L053x8 label in targets.json
bcostm Aug 7, 2017
4eca17e
STM32L053x8: Align system_clock.c files
bcostm Aug 17, 2017
4f5ce05
Remove excessive use of printf/scanf in mbed_fdopen/_open
fahhem Jul 30, 2017
038db2a
Update comments for code review
fahhem Jul 31, 2017
a92440b
Use MBED_STATIC_ASSERT instead of static_assert
fahhem Jul 31, 2017
3feef6f
Remove null byte at the end of fdopen's faux filename
fahhem Aug 11, 2017
19bb6cd
Added Support for Toshiba TMPM066
Aug 1, 2017
e445e08
SERIAL_FC disabled, critical section API Updation
Aug 4, 2017
6b6d072
ADC Reset Conflict Fixed
Aug 7, 2017
cee857e
Interrupt and Overflow check for us_ticker
Aug 9, 2017
d222dac
Clear interrupt and delta check removed
Aug 9, 2017
4f17ab1
Main stack dependant on GCC toolchain removed
Aug 10, 2017
f547ffa
Issue with mbed compile for GCC_ARM tool resolved
Aug 17, 2017
17d9fcb
xdot: fix target clock config in targets.json Resolves #4876
Aug 16, 2017
f4c783f
STM32: fix F410RB vectors size
LMESTM Aug 18, 2017
e8b4ce3
Updating mbed-coap to version 4.0.9
Aug 21, 2017
272a729
Fix pool buffer size, update free() description, add assertion in Mem…
mprse Aug 21, 2017
11c687b
Updated MBED versionning block for patch release
adbridge Aug 25, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ script:
- python tools/project.py -S
- python tools/build_travis.py
before_install:
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
- sudo add-apt-repository -y ppa:libreoffice/libreoffice-4-2
- sudo apt-get update -qq
- sudo apt-get install -qq gcc-arm-none-eabi doxygen --force-yes
- sudo apt-get install -qq gcc-arm-embedded doxygen --force-yes
# Print versions we use
- arm-none-eabi-gcc --version
- python --version
Expand Down
94 changes: 94 additions & 0 deletions cmsis/TOOLCHAIN_GCC/TARGET_CORTEX_A/cache.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* Copyright (c) 2009 - 2012 ARM LIMITED

All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of ARM nor the names of its contributors may be used
to endorse or promote products derived from this software without
specific prior written permission.
*
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------
* Functions
*---------------------------------------------------------------------------*/
.text
.global __v7_all_cache
/*
* __STATIC_ASM void __v7_all_cache(uint32_t op) {
*/
__v7_all_cache:
.arm

PUSH {R4-R11}

MRC p15, 1, R6, c0, c0, 1 /* Read CLIDR */
ANDS R3, R6, #0x07000000 /* Extract coherency level */
MOV R3, R3, LSR #23 /* Total cache levels << 1 */
BEQ Finished /* If 0, no need to clean */

MOV R10, #0 /* R10 holds current cache level << 1 */
Loop1: ADD R2, R10, R10, LSR #1 /* R2 holds cache "Set" position */
MOV R1, R6, LSR R2 /* Bottom 3 bits are the Cache-type for this level */
AND R1, R1, #7 /* Isolate those lower 3 bits */
CMP R1, #2
BLT Skip /* No cache or only instruction cache at this level */

MCR p15, 2, R10, c0, c0, 0 /* Write the Cache Size selection register */
ISB /* ISB to sync the change to the CacheSizeID reg */
MRC p15, 1, R1, c0, c0, 0 /* Reads current Cache Size ID register */
AND R2, R1, #7 /* Extract the line length field */
ADD R2, R2, #4 /* Add 4 for the line length offset (log2 16 bytes) */
LDR R4, =0x3FF
ANDS R4, R4, R1, LSR #3 /* R4 is the max number on the way size (right aligned) */
CLZ R5, R4 /* R5 is the bit position of the way size increment */
LDR R7, =0x7FFF
ANDS R7, R7, R1, LSR #13 /* R7 is the max number of the index size (right aligned) */

Loop2: MOV R9, R4 /* R9 working copy of the max way size (right aligned) */

Loop3: ORR R11, R10, R9, LSL R5 /* Factor in the Way number and cache number into R11 */
ORR R11, R11, R7, LSL R2 /* Factor in the Set number */
CMP R0, #0
BNE Dccsw
MCR p15, 0, R11, c7, c6, 2 /* DCISW. Invalidate by Set/Way */
B cont
Dccsw: CMP R0, #1
BNE Dccisw
MCR p15, 0, R11, c7, c10, 2 /* DCCSW. Clean by Set/Way */
B cont
Dccisw: MCR p15, 0, R11, c7, c14, 2 /* DCCISW, Clean and Invalidate by Set/Way */
cont: SUBS R9, R9, #1 /* Decrement the Way number */
BGE Loop3
SUBS R7, R7, #1 /* Decrement the Set number */
BGE Loop2
Skip: ADD R10, R10, #2 /* increment the cache number */
CMP R3, R10
BGT Loop1

Finished:
DSB
POP {R4-R11}
BX lr


.END
/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/
97 changes: 97 additions & 0 deletions cmsis/TOOLCHAIN_IAR/TARGET_CORTEX_A/cache.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/* Copyright (c) 2009 - 2012 ARM LIMITED

All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of ARM nor the names of its contributors may be used
to endorse or promote products derived from this software without
specific prior written permission.
*
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------
* Functions
*---------------------------------------------------------------------------*/
SECTION `.text`:CODE:NOROOT(2)
arm
PUBLIC __v7_all_cache
/*
* __STATIC_ASM void __v7_all_cache(uint32_t op) {
*/

__v7_all_cache:


PUSH {R4-R11}

MRC p15, 1, R6, c0, c0, 1 /* Read CLIDR */
ANDS R3, R6, #0x07000000 /* Extract coherency level */
MOV R3, R3, LSR #23 /* Total cache levels << 1 */
BEQ Finished /* If 0, no need to clean */

MOV R10, #0 /* R10 holds current cache level << 1 */
Loop1: ADD R2, R10, R10, LSR #1 /* R2 holds cache "Set" position */
MOV R1, R6, LSR R2 /* Bottom 3 bits are the Cache-type for this level */
AND R1, R1, #7 /* Isolate those lower 3 bits */
CMP R1, #2
BLT Skip /* No cache or only instruction cache at this level */

MCR p15, 2, R10, c0, c0, 0 /* Write the Cache Size selection register */
ISB /* ISB to sync the change to the CacheSizeID reg */
MRC p15, 1, R1, c0, c0, 0 /* Reads current Cache Size ID register */
AND R2, R1, #7 /* Extract the line length field */
ADD R2, R2, #4 /* Add 4 for the line length offset (log2 16 bytes) */
LDR R4, =0x3FF
ANDS R4, R4, R1, LSR #3 /* R4 is the max number on the way size (right aligned) */
CLZ R5, R4 /* R5 is the bit position of the way size increment */
LDR R7, =0x7FFF
ANDS R7, R7, R1, LSR #13 /* R7 is the max number of the index size (right aligned) */

Loop2: MOV R9, R4 /* R9 working copy of the max way size (right aligned) */

Loop3: ORR R11, R10, R9, LSL R5 /* Factor in the Way number and cache number into R11 */
ORR R11, R11, R7, LSL R2 /* Factor in the Set number */
CMP R0, #0
BNE Dccsw
MCR p15, 0, R11, c7, c6, 2 /* DCISW. Invalidate by Set/Way */
B cont
Dccsw: CMP R0, #1
BNE Dccisw
MCR p15, 0, R11, c7, c10, 2 /* DCCSW. Clean by Set/Way */
B cont
Dccisw: MCR p15, 0, R11, c7, c14, 2 /* DCCISW, Clean and Invalidate by Set/Way */
cont: SUBS R9, R9, #1 /* Decrement the Way number */
BGE Loop3
SUBS R7, R7, #1 /* Decrement the Set number */
BGE Loop2
Skip: ADD R10, R10, #2 /* increment the cache number */
CMP R3, R10
BGT Loop1

Finished:
DSB
POP {R4-R11}
BX lr


END
/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/

27 changes: 26 additions & 1 deletion doxyfile_options
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,32 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

PREDEFINED = DOXYGEN_ONLY \
PREDEFINED = DOXYGEN_ONLY \
DEVICE_ANALOGIN \
DEVICE_ANALOGOUT \
DEVICE_CAN \
DEVICE_ETHERNET \
DEVICE_EMAC \
DEVICE_FLASH \
DEVICE_I2C \
DEVICE_I2CSLAVE \
DEVICE_I2C_ASYNCH \
DEVICE_INTERRUPTIN \
DEVICE_LOWPOWERTIMER \
DEVICE_PORTIN \
DEVICE_PORTINOUT \
DEVICE_PORTOUT \
DEVICE_PWMOUT \
DEVICE_RTC \
DEVICE_TRNG \
DEVICE_SERIAL \
DEVICE_SERIAL_ASYNCH \
DEVICE_SERIAL_FC \
DEVICE_SLEEP \
DEVICE_SPI \
DEVICE_SPI_ASYNCH \
DEVICE_SPISLAVE \
DEVICE_STORAGE \
"MBED_DEPRECATED_SINCE(d, m)=" \
"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)="

Expand Down
2 changes: 1 addition & 1 deletion doxygen_options.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"SEARCH_INCLUDES": "YES",
"INCLUDE_PATH": "",
"INCLUDE_FILE_PATTERNS": "",
"PREDEFINED": "DOXYGEN_ONLY \"MBED_DEPRECATED_SINCE(f, g)=\" \"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)=\"",
"PREDEFINED": "DOXYGEN_ONLY DEVICE_ANALOGIN DEVICE_ANALOGOUT DEVICE_CAN DEVICE_ETHERNET DEVICE_EMAC DEVICE_FLASH DEVICE_I2C DEVICE_I2CSLAVE DEVICE_I2C_ASYNCH DEVICE_INTERRUPTIN DEVICE_LOWPOWERTIMER DEVICE_PORTIN DEVICE_PORTINOUT DEVICE_PORTOUT DEVICE_PWMOUT DEVICE_RTC DEVICE_TRNG DEVICE_SERIAL DEVICE_SERIAL_ASYNCH DEVICE_SERIAL_FC DEVICE_SLEEP DEVICE_SPI DEVICE_SPI_ASYNCH DEVICE_SPISLAVE DEVICE_STORAGE \"MBED_DEPRECATED_SINCE(f, g)=\" \"MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)=\"",
"EXPAND_AS_DEFINED": "",
"SKIP_FUNCTION_MACROS": "NO",
"EXCLUDE_PATTERNS": "*/tools/* */TESTS/* */targets/* */FEATURE_*/* */features/mbedtls/* */features/storage/* */features/unsupported/* */features/filesystem/* */BUILD/* */rtos/rtx*/* */cmsis/* */features/FEATURES_*"
Expand Down
8 changes: 8 additions & 0 deletions features/FEATURE_COMMON_PAL/mbed-coap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## [v4.0.9](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.0.9)

-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.0.8...v4.0.9)

**Closed issues:**
- IOTCLT-1899 Maximum COAP message resending buffer size limited to 255 bytes
- IOTCLT-1888 Problem with blockwise transfers that are even increments of block_size

## [v4.0.8](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.0.8)

-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.0.4...v4.0.8)
Expand Down
2 changes: 1 addition & 1 deletion features/FEATURE_COMMON_PAL/mbed-coap/module.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mbed-coap",
"version": "4.0.8",
"version": "4.0.9",
"description": "COAP library",
"keywords": [
"coap",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ struct coap_s {
uint32_t system_time; /* System time seconds */
uint16_t sn_coap_block_data_size;
uint8_t sn_coap_resending_queue_msgs;
uint8_t sn_coap_resending_queue_bytes;
uint32_t sn_coap_resending_queue_bytes;
uint8_t sn_coap_resending_count;
uint8_t sn_coap_resending_intervall;
uint8_t sn_coap_duplication_buffer_size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ static sn_coap_hdr_s *sn_coap_handle_blockwise_message(struct coap_s *handle, sn
original_payload_len = stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len;
original_payload_ptr = stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_ptr;

if ((block_size * (block_number + 1)) > stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len) {
if ((block_size * (block_number + 1)) >= stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len) {
src_coap_blockwise_ack_msg_ptr->payload_len = stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len - (block_size * block_number);
src_coap_blockwise_ack_msg_ptr->payload_ptr = stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_ptr + (block_size * block_number);
}
Expand Down Expand Up @@ -2080,7 +2080,7 @@ static sn_coap_hdr_s *sn_coap_handle_blockwise_message(struct coap_s *handle, sn
stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len = original_payload_len;
stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_ptr = original_payload_ptr;

if ((block_size * (block_number + 1)) > stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len) {
if ((block_size * (block_number + 1)) >= stored_blockwise_msg_temp_ptr->coap_msg_ptr->payload_len) {
sn_coap_protocol_linked_list_blockwise_msg_remove(handle, stored_blockwise_msg_temp_ptr);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2012-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef LWIPOPTS_CONF_H
#define LWIPOPTS_CONF_H

#define LWIP_TRANSPORT_ETHERNET 1
#define ETH_PAD_SIZE 2

#define MEM_SIZE (16*1024)//(8*1024)//(16*1024)

#endif
Loading