Jimmy Brisson
6a325673de
Fix Traceback in CMSIS export.
...
The traceback was caused when a file without a parent directory (which
is implicitly ".") is added to the resources object. The code assumed
that all files within the resources object would have a parent
directory.
This commit changes the check to account for files that are in the root
directory of a project and have no preceding `./`
2017-04-12 11:00:09 -05:00
Jimmy Brisson
157023342f
Add license to configuration header
2017-04-12 10:50:43 -05:00
Jimmy Brisson
212a3dfd12
Move config to own dir
...
I also broke the config header template into it's own file. Further, I
fixed a bug in the config header generation where if no macros, builds
would crash.
2017-04-12 10:50:38 -05:00
Jimmy Brisson
1e21985ff7
Fail IAR exports without linker scirpts with NotSupportedException
2017-04-12 10:39:24 -05:00
Sam Grove
710af8f09b
Add deprecation note to CAN attach
...
attach members not using Callback class are not compatible with
const and volatile types. This was missed when callback was initially
added
2017-04-12 10:30:33 -05:00
Jimmy Brisson
65adf446c5
Merge pull request #3993 from mbartling/supported-lists
...
Added list options for --supported command
2017-04-12 09:33:27 -05:00
Sam Grove
26b9a1f6a3
Enable doxygen to use the pre-processor
...
Best way to enable MBED_DEPRICATED APIs to be properly rendered
requires using the doxygen preprocessor. This means all device_has
labels need to also be defined or the default DOXYGEN_ONLY label
applied to the API headers which this commit does. ASYNCH currently
exluded.
2017-04-12 09:01:29 -05:00
Sam Grove
cba75f467d
Fix typo in doxygen group
2017-04-12 08:56:36 -05:00
Alessandro Angelino
8bc81e0efd
uVisor: Fix copy of quick-start doc in exporter script
2017-04-12 14:28:43 +01:00
Andrzej Puzdrowski
67276e3785
[NRF52840]: fix coding style us_ticker.c
2017-04-12 14:34:14 +02:00
Kari Severinkangas
f5d6e7d33c
Update README.md
...
Minor changes
2017-04-12 15:21:02 +03:00
jeromecoutant
03972ebb0c
STM32L4 Internal ADC channels rework
...
Internal ADC pins are now out of PinMap_ADC array
2017-04-12 13:14:58 +02:00
Andrzej Puzdrowski
55fbd7a299
[NRF52840]: Removed unwanted nRF5 SDK's app_timer libarary.
...
The Library is unused by the port. It breaks "non-rtos" compilation.
2017-04-12 11:43:11 +02:00
Andrzej Puzdrowski
560bd7403d
[NRF52840]: fix:
...
- rtc overflow-while-set-timestamp issue
- timer has a race condition
2017-04-12 11:10:48 +02:00
Jimmy Brisson
e307b907d6
Fix typo in LPCExpresso exporter template
2017-04-11 15:18:19 -05:00
0x6d61726b
ae0ef24004
device feature "FLASH" added
...
device feature "FLASH" added
2017-04-11 21:54:12 +02:00
0x6d61726b
029736612b
typo corrected
...
typo corrected
2017-04-11 21:28:11 +02:00
Jimmy Brisson
7c40343e74
Fix include paths for Windows builds
2017-04-11 14:26:14 -05:00
0x6d61726b
8c6dd8949b
Update flash_api.c
...
mbed_critical.h replaced with "platform/mbed_critical.h" (to match template)
typo corrected
2017-04-11 21:24:40 +02:00
0x6d61726b
b0451324c4
deprecated include updated
...
critical.h is deprecated, replaced with "platform/mbed_critical.h"
typo corrected
2017-04-11 21:23:19 +02:00
Jimmy Brisson
6fa1de2161
Generate GNU ARM Eclipse's .mbedignore with Jinja2
2017-04-11 14:11:44 -05:00
0x6d61726b
d6686f14e0
NXP LPC176X: "FLASH_CMSIS_ALGO" activated
...
Due to implementation of "flash_api.c" for NXP LPC176X the corresponding extra_labels were activated
2017-04-11 21:06:33 +02:00
0x6d61726b
29c7b34dfa
LPC176X flash_api.h implementation
...
For LPC176X (LPC1768/LPC1769) the flash driver has been implemented according to the CMSIS-PACK Keil.LPC1700_DFP.2.3.0 driver with the following changes in FlashPrg.c:
1. EraseChip() function removed (not used by flash_api)
2. Clock reconfiguration removed and clock value taken from function parameter to avoid unexpected behavior.
Full patch of FlashPrg.c:
--- Keil.LPC1700_DFP.2.3.0\Flash\LPC_IAP\FlashPrg_orig.c 2016-12-08 13:10:10.000000000 +0200
+++ Keil.LPC1700_DFP.2.3.0\Flash\LPC_IAP\FlashPrg.c 2017-04-11 20:02:37.000000000 +0200
@@ -191,90 +191,15 @@
* fnc: Function Code (1 - Erase, 2 - Program, 3 - Verify)
* Return Value: 0 - OK, 1 - Failed
*/
int Init (unsigned long adr, unsigned long clk, unsigned long fnc) {
-#if defined LPC1XXX || defined LPC11U6X
- CCLK = 12000; // 12MHz Internal RC Oscillator
+ CCLK = clk / 1000; // CCLK value is in kHz, clk in Hz
- MAINCLKSEL = 0; // Select Internal RC Oscillator
- MAINCLKUEN = 1; // Update Main Clock Source
- MAINCLKUEN = 0; // Toggle Update Register
- MAINCLKUEN = 1;
-// while (!(MAINCLKUEN & 1)); // Wait until updated
- MAINCLKDIV = 1; // Set Main Clock divider to 1
-
- MEMMAP = 0x02; // User Flash Mode
-#endif
-
-#ifdef LPC17XX
- IAP.stat = 0; // Note: Some Bootloader versions don't set the status if this command is executed
- IAP.cmd = 54; // Read Part ID
- IAP_Call (&IAP.cmd, &IAP.stat); // Call IAP Command
- if (IAP.stat) return (1); // Command Failed
-
- switch ((IAP.res[0] >> 24) & 0xFF) {
- case 0x25:
- // Part ID LPC1759 = 0x25113737
- // Part ID LPC1758 = 0x25013F37
- // Part ID LPC1756 = 0x25011723
- // Part ID LPC1754 = 0x25011722
- // Part ID LPC1752 = 0x25001121
- // Part ID LPC1751 = 0x25001118 / 0x25001110
- case 0x26:
- // Part ID LPC1769 = 0x26113F37
- // Part ID LPC1768 = 0x26013F37
- // Part ID LPC1767 = 0x26012837
- // Part ID LPC1766 = 0x26013F33
- // Part ID LPC1765 = 0x26013733
- // Part ID LPC1764 = 0x26011922
- CCLK = 4000; // 4MHz Internal RC Oscillator
- break;
- case 0x27:
- // Part ID LPC1778 = 0x27193F47
- // Part ID LPC1777 = 0x27193747
- // Part ID LPC1776 = 0x27191F43
- // Part ID LPC1774 = 0x27011132
- // Part ID LPC1772 = 0x27011121
- case 0x20: // found out during test
- case 0x28:
- // Part ID LPC1788 = 0x281D3F47
- // Part ID LPC1787 = 0x281D3747
- // Part ID LPC1786 = 0x281D1F43
- // Part ID LPC1785 = 0x281D1743
- case 0x48: // Part ID LPC4088 = 0x481D3F47
- case 0x47: // Part ID LPC4078 = 0x47193F47
- // Part ID LPC4076 = 0x47191F43
- // Part ID LPC4074 = 0x47011132
- CCLK = 12000; // 12MHz Internal RC Oscillator
- break;
- default:
- CCLK = 4000; // 4MHz Internal RC Oscillator
- }
-
- CLKSRCSEL = 0x00; // sysclk = IRC
-
- PLL0CON = 0x00; // Disable PLL (use Oscillator)
- PLL0FEED = 0xAA; // Feed Sequence Part #1
- PLL0FEED = 0x55; // Feed Sequence Part #2
-
- switch ((IAP.res[0] >> 24) & 0xFF) {
- case 0x27: // LPC177x
- case 0x20: // LPC178x
- case 0x28: // LPC178x
- case 0x48: // LPC407x
- case 0x47: // LPC408x
- CCLKSEL = 0x01; // use Sysclk devided by 1 for CPU
- break;
- default:
- CCLKSEL = 0x00; // CPU clk divider is 1
- }
-
MEMMAP = 0x01; // User Flash Mode
-#endif
return (0);
}
/*
@@ -283,37 +208,12 @@
* Return Value: 0 - OK, 1 - Failed
*/
int UnInit (unsigned long fnc) {
return (0);
}
-
-
-/*
- * Erase complete Flash Memory
- * Return Value: 0 - OK, 1 - Failed
- */
-
-int EraseChip (void) {
-
- IAP.cmd = 50; // Prepare Sector for Erase
- IAP.par[0] = 0; // Start Sector
- IAP.par[1] = END_SECTOR; // End Sector
- IAP_Call (&IAP.cmd, &IAP.stat); // Call IAP Command
- if (IAP.stat) return (1); // Command Failed
-
- IAP.cmd = 52; // Erase Sector
- IAP.par[0] = 0; // Start Sector
- IAP.par[1] = END_SECTOR; // End Sector
- IAP.par[2] = CCLK; // CCLK in kHz
- IAP_Call (&IAP.cmd, &IAP.stat); // Call IAP Command
- if (IAP.stat) return (1); // Command Failed
-
- return (0); // Finished without Errors
-}
-
/*
* Erase Sector in Flash Memory
* Parameter: adr: Sector Address
* Return Value: 0 - OK, 1 - Failed
*/
2017-04-11 21:03:45 +02:00
0x6d61726b
5be47f1e2b
Update c_blob_mbed.tmpl
...
- critical.h is deprecated, replaced with "platform/mbed_critical.h"
- typo corrected
2017-04-11 20:30:34 +02:00
Kari Severinkangas
7d2b03bde8
Update README.md
...
Config table updated
2017-04-11 16:37:52 +03:00
Kari Severinkangas
e10f2ae287
irrelevant zeros removed from timestamp
2017-04-11 16:19:01 +03:00
Kari Severinkangas
e52d3db50e
Security policy defined in .json
2017-04-11 15:45:12 +03:00
Martin Kojtal
7d65b0f644
Merge pull request #4148 from ARMmbed/revert-4118-PR_REWORK_INTERNAL_ADC_F4
...
Revert "STM32F4 Internal ADC channels rework"
2017-04-11 13:39:04 +01:00
jeromecoutant
d1fa95184f
STM32F7 Internal ADC channels rework
...
Internal ADC pin are now out of PinMap_ADC array
2017-04-11 12:56:13 +02:00
Martin Kojtal
971abf8b75
Merge pull request #4123 from neilt6/patch-3
...
Updated CAN to new Callback API
2017-04-11 10:18:27 +01:00
jeromecoutant
43ab8812d7
STM32F2 Internal ADC channels rework
...
Internal ADC pin are now out of PinMap_ADC array
2017-04-11 11:16:46 +02:00
jeromecoutant
7da6960cfe
NUCLEO_F207ZG: I2C_3 is not available
2017-04-11 10:41:57 +02:00
jeromecoutant
613cc3d6d9
STM32F4 Internal ADC channels rework
...
Internal ADC pin are now out of PinMap_ADC array.
2017-04-11 10:12:25 +02:00
Sam Grove
b2cd20c5c5
Merge pull request #4122 from neilt6/patch-1
...
Fixed compiler warning in mbed_retarget.cpp
2017-04-10 16:38:08 -05:00
Sam Grove
e3edbabbcc
Merge pull request #4107 from theotherjimmy/config-name-app
...
Allow configuration of artifact name in app config
2017-04-10 16:37:34 -05:00
Jimmy Brisson
55884de07e
Merge pull request #4115 from cvtsi2sd/master
...
Support for Qt Creator Generic project export and associated Makefile
2017-04-10 16:17:14 -05:00
Sam Grove
2352ee49a4
Revert "STM32F4 Internal ADC channels rework"
2017-04-10 12:08:15 -05:00
Sam Grove
0b1117793f
Merge pull request #4069 from theotherjimmy/preproc-linker-gnuarmeclipse
...
Update gnuarmeclipse to preprocess linker scripts
2017-04-10 11:10:58 -05:00
Sam Grove
0559aa431c
Merge pull request #4126 from jeromecoutant/PR_F4_PIN_LEVEL0
...
STM32F4 : remove SERIAL_TX and SERIAL_RX from available pins
2017-04-10 11:09:51 -05:00
Sam Grove
bfb86a7f51
Merge pull request #4125 from jeromecoutant/PR_F4_USB_CONFIG_FILE
...
STM32 USB configuration file move
2017-04-10 11:07:59 -05:00
Sam Grove
516f32fc86
Merge pull request #4118 from jeromecoutant/PR_REWORK_INTERNAL_ADC_F4
...
STM32F4 Internal ADC channels rework
2017-04-10 11:06:12 -05:00
Sam Grove
cef31a7fa6
Merge pull request #4106 from theotherjimmy/fix-typo-toolchain
...
Fix a scoping typo in toolchains
2017-04-10 10:51:07 -05:00
Sam Grove
833a201042
Merge pull request #4102 from wdwalker/lpc-pindefs
...
Add SCL and SDA defs for I2C[0-2]; redefine I2C_[SCL,SDA] to I2C2
2017-04-10 10:49:50 -05:00
Sam Grove
73bee05568
Merge pull request #4100 from theotherjimmy/edit-readme
...
Edit the README and add Travis CI badges
2017-04-10 10:44:35 -05:00
Sam Grove
09de12161a
Merge pull request #4013 from theotherjimmy/fix-subtract-basepath
...
Fix a small bug in subtract_basepath
2017-04-10 10:22:57 -05:00
Sam Grove
1b4a3c3204
Merge pull request #4008 from OpenNuvoton/nuvoton
...
[NUC472/M453] Support Bootloader and FlashIAP
2017-04-10 10:21:21 -05:00
Sam Grove
c776eaa767
Merge pull request #3987 from karsev/thread_link_config_update
...
thread link configuration bypass flag in mesh-api
2017-04-10 10:16:05 -05:00
Bartek Szatkowski
c5f0ad506e
Disable sleep when uVisor is in use
2017-04-10 11:40:04 +01:00
Bartek Szatkowski
4cd6068b73
MAX32630: Fix sleep definitions
2017-04-10 11:40:04 +01:00
Bartek Szatkowski
57dc2a540c
Disable sleep and deepsleep when MBED_DEBUG macro is defined
2017-04-10 11:40:04 +01:00