Commit Graph

281 Commits (86e194d075531d451890165528044c72e986c67b)

Author SHA1 Message Date
ccli8 8b86d44867 [M487] Fix premature lp_ticker interrupt
Old lp_ticker handles past event, but it has a bug with premature go-off.
The bug can re-produce on mbed-os-tests-mbed_drivers-lp_timeout/mbed-os-tests-mbed_hal-lp_us_tickers (mbed-os commit: 9c1fd48529).
Because upper layer (mbed-os/hal/mbed_ticker_api.c) has handled past event, this code can be removed from lp_ticker.

The similar fix also applies to us_ticker.
2017-11-22 08:55:58 +00:00
cyliangtw 288094568c [M487/NUC472/NANO130] fix TRUE/FALSE redefinition 2017-11-16 11:21:20 +00:00
cyliangtw d8a9e35a0c [M487/NUC472] Refine trng_get_bytes for consistency and readability 2017-11-13 12:11:08 +08:00
cyliangtw 2ee058be53 [M487/NUC472] Refine for correctness control 2017-11-10 16:22:35 +08:00
cyliangtw e252b10148 [M487/NUC472] zeroize random data on the stack memory 2017-11-09 16:01:14 +08:00
cyliangtw 76c2c19853 [M487/NUC472] Unified code-path for remaining bytes of TRNG_Get 2017-11-08 19:56:12 +08:00
cyliangtw 4118afa259 [M487/NUC472] TRN_Get support 32 bytes unalignment 2017-11-08 14:23:05 +08:00
ccli8 bf426b0771 [NUC472/M453/M487/NANO130] Remove dead power-down code with mbed OS 3
These power-down code are stale and would be superseded by sleep manager.
2017-09-22 09:42:51 +08:00
ccli8 4040211f9e [NANO130] Refine sleep code
1. Remove stale code with mbed OS 3.
2. Remove check for busy peripherals unorganizedly. This would be supported by e.g. official sleep manager.
2017-09-22 09:33:53 +08:00
ccli8 785413aa1e [NANO130] Fix RTC hour error with AM/PM 2017-09-21 16:42:00 +08:00
ccli8 33070988de [NANO130] Fix lp_ticker wake-up is incorrectly disabled 2017-09-20 16:56:37 +08:00
ccli8 f553277198 [NANO130] Fix lp_ticker typo 2017-09-20 16:56:36 +08:00
ccli8 c4c902289f [NANO130] Change SW2/SW3 to SW1/SW2 to match target board 2017-09-20 16:56:35 +08:00
ccli8 443d18a18c [NANO130] Move target configuration from mbed_lib.json to targets.json 2017-09-20 16:56:34 +08:00
ccli8 d4af4ba3a7 [NUC472/M453/M487] Fix RTC hour error with AM/PM 2017-09-20 16:56:34 +08:00
ccli8 83fc132b97 [NUC472] Fix RTC macro function with no arguments in BSP 2017-09-20 16:56:33 +08:00
ccli8 6eb4e11b37 [NUC472/M453/M487] Refine sleep code
1. Remove stale code with mbed OS 3.
2. Remove check for busy peripherals unorganizedly. This would be supported by e.g. official sleep manager.
2017-09-20 16:56:32 +08:00
ccli8 52733fe7f6 [M487] Replace mktime/localtime with interrupt-safe version in rtc
The use of mktime was causing a fault when called in interrupt handler because on GCC it lock the mutex protecting the environment, To overcome this issue, this patch add dedicated routine to convert a time_t into a tm and vice versa.
In the process mktime has been optimized and is now an order of magnitude faster than the routines present in the C library.
2017-09-20 16:56:31 +08:00
Jimmy Brisson 91afbce18a Correct Nuvoton compiler detection logic 2017-09-11 13:20:33 -05:00
Jimmy Brisson 15a9a0382b Enable Compiling with ARMC6 across all targets
remove duplicate sys.cpp
2017-09-11 13:20:32 -05:00
ccli8 cacc444b73 [M487] Support USB device/host 2017-08-22 09:27:31 +08:00
Jimmy Brisson 0f0a461209 Merge pull request #4832 from OpenNuvoton/nuvoton
NUC472/M453: Fix several startup and hal bugs
2017-08-14 11:38:18 -05:00
Jimmy Brisson 097720670e Merge pull request #4631 from OpenNuvoton/nuvoton_nano130
Add new target NUMAKER_PFM_NANO130
2017-08-14 11:35:58 -05:00
MS30 CCChang12 346209ed2f [NANO130] Adjust the stack size in IAR toolchains 2017-08-10 15:35:02 +08:00
ccli8 f8af225dda [M487] Remove support for uVisor core debug message via STDIO
This is necessary. Otherwise, program will hang in uninitialized STDIO UART because uVisor core doesn't enable it.
2017-08-03 18:48:31 +08:00
ccli8 9ac0d90937 [M487] Move target configuration from mbed_lib.json to targets.json 2017-08-03 13:40:32 +08:00
ccli8 afb5aba8d9 [M487] Fix compile warnings with IAR toolchain 2017-08-03 13:33:17 +08:00
ccli8 99d12b1eb8 [M487] Fix compile warnings with GCC_ARM toolchain 2017-08-03 11:10:15 +08:00
ccli8 b31d6f6eaa [M487] Fix compile warnings with ARM toolchain 2017-08-03 09:24:05 +08:00
cyliangtw 6b8724b27d [NUC472] Sync SPI mode with NUC472 BSP V3.02.001 2017-08-01 14:40:54 +08:00
ccli8 d885de6ec5 [NUC472/M453] Move target configuration from mbed_lib.json to targets.json 2017-08-01 14:40:48 +08:00
ccli8 8092c3611b [NUC472/M453] Add comment for Receive Time-out IF in SPI HAL 2017-08-01 14:40:42 +08:00
ccli8 c7fcd071e9 [NUC472/M453] Add sanity check for serial format 2017-08-01 14:40:37 +08:00
ccli8 5e335de67e [NUC472/M453] Set LED4 to LED1
No real LED4. Just for passing ATS.
2017-08-01 14:40:31 +08:00
ccli8 ea1de8c9a8 [NUC472/M453] Remove mbed_sdk_init_forced()
1. With mbed OS 5, mbed_sdk_init() is ensured to call before C++ global object constructor.
2. Refine startup file with GCC_ARM toolchain related to this modification.
2017-08-01 14:40:25 +08:00
ccli8 6c9fda4e3e [NUC472/M453] Fix lp_ticker typo 2017-08-01 14:40:20 +08:00
ccli8 ea7a0fdf74 [NUC472/M453] Add comment in gpio_irq_init() 2017-08-01 14:40:14 +08:00
ccli8 46cb684a32 [NUC472] Conform to mbed TLS H/W acceleration support 2017-08-01 14:40:08 +08:00
ccli8 8067f9ac91 [NUC472/M453] Move SystemInit() to register unlock range for perhaps future protected register access 2017-08-01 14:40:02 +08:00
ccli8 2844be6434 [NUC472/M453] Fix RTC time doesn't continue across reset cycle 2017-08-01 14:39:57 +08:00
ccli8 c4df35d1b5 [NUC472/M453] Fix region end address error with IAR toolchain 2017-08-01 14:39:50 +08:00
ccli8 306d8449b3 [M487] Remove NVIC_SetVector/NVIC_GetVector to match updated boot flow 2017-08-01 10:53:40 +08:00
ccli8 670822a581 [M487] Update spi_master_block_write() API 2017-08-01 10:47:39 +08:00
ccli8 bc7193508e [M487] Fix GCC linker script with uVisor 2017-08-01 10:37:28 +08:00
ccli8 52d5a61e29 [M487] Fix include file error in case-sensitive environment 2017-08-01 10:37:27 +08:00
ccli8 0803267eab [M487] Add ticker API us_ticker_fire_interrupt and lp_ticker_fire_interrupt 2017-08-01 10:37:26 +08:00
ccli8 b54e7e9639 [M487] Remove debug code in I2C HAL 2017-08-01 10:37:25 +08:00
ccli8 ed5ef0cc54 [M487] Refine coding style 2017-08-01 10:37:16 +08:00
ccli8 7b564c7f52 [M487] Add comment for Receive Time-out IF in SPI HAL 2017-08-01 10:32:50 +08:00
ccli8 7cfb7ae8f8 [M487] Add sanity check for serial format 2017-08-01 10:32:48 +08:00
ccli8 7a60b35d52 [M487] Set LED4 to LED1
No real LED4. Just for passing ATS.
2017-08-01 10:32:46 +08:00
ccli8 355b4336d6 [M487] Remove dead code 2017-08-01 10:32:43 +08:00
ccli8 8c76476929 [M487] Remove mbed_sdk_init_forced()
1. With mbed OS 5, mbed_sdk_init() is ensured to call before C++ global object constructor.
2. Refine startup file with GCC_ARM toolchain related to this modification.
2017-08-01 10:32:41 +08:00
ccli8 e99dc63d1b [M487] Fix lp_ticker typo 2017-08-01 10:32:38 +08:00
ccli8 642a2acb92 [Nuvoton] Give universal rtx configuration for all Nuvoton targets 2017-08-01 10:32:34 +08:00
ccli8 77ea786c04 [M487] Fix abnormal pulse on re-configuring pwmout
The issue is met in ARM mbed CI test tests-api-pwm.
2017-08-01 10:31:52 +08:00
ccli8 39a9f05491 [M487] Fix ARM mbed CI pwm test failed 2017-08-01 10:31:50 +08:00
ccli8 f182d7fcae [M487] Add internal configuration control_01 2017-08-01 10:31:48 +08:00
ccli8 9c90cfd304 [M487] Add Arduino UNO pins D14 and D15 2017-08-01 10:31:45 +08:00
ccli8 d709deffc6 [M487] Fix emitting uvisor core debug message through USB VCOM 2017-08-01 10:31:43 +08:00
ccli8 e49ceb173e [M487] Support initial stack allocated on SPIM CCM memory 2017-08-01 10:31:41 +08:00
ccli8 694838b706 [M487] Guard from initial stack allocated on SPIM CCM memory not initialized yet
Not add this guard in IAR toolchain due to its unsupported ILINK syntax
2017-08-01 10:31:38 +08:00
cyliangtw aa47503435 [M487] Revise CAN & AES to fulfill real-chip 2017-08-01 10:31:36 +08:00
ccli8 b516019b12 [M487] Add comment in gpio_irq_init() 2017-08-01 10:24:07 +08:00
ccli8 b7dedbe917 [M487] Align with BSP 2017-08-01 10:24:04 +08:00
ccli8 23672b09a2 [M487] Support bootloader 2017-08-01 10:23:58 +08:00
ccli8 cc2ab31d2c [M487] Divert SRAM bank2 (32 KB) to CCM from SPIM cache
Extend SRAM from 128 KB to 160 KB
2017-08-01 10:23:56 +08:00
ccli8 30ab1007e4 [M487] Support one-to-many mapping in the same pin map 2017-08-01 10:23:55 +08:00
ccli8 bcb96a12e1 [M487] Add SPI MOSI0/MISO0 into pin map
SPI MOSI0/MISO0 can use as SPI standard MOSI/MISO pins
2017-08-01 10:23:54 +08:00
ccli8 ef50c180fc [M487] Add LED4 to pass ATS 2017-08-01 10:23:52 +08:00
ccli8 280d767700 [M487] Update startup files
1. Add SYS_DISABLE_POR() in startup_M480.c
2. Fix FMC_T::CYCCTL access is not unlocked
3. Sync system_M480.c with BSP
2017-08-01 10:23:51 +08:00
ccli8 82a5b5dd34 [M487] Fix board header for real chip 2017-08-01 10:23:50 +08:00
ccli8 12536436f8 [M487] Conform to mbed TLS H/W acceleration support released with mbed OS 5.3 2017-08-01 10:23:48 +08:00
ccli8 7578541021 [M487] Fix some compile warnings 2017-08-01 10:23:47 +08:00
ccli8 4d4d1a89f9 [M487] Change OS_CLOCK to 192 MHz 2017-08-01 10:23:45 +08:00
ccli8 aaf26a12e1 [M487] Fix compile error with GCC_ARM toolchain 2017-08-01 10:23:44 +08:00
ccli8 90e35febc1 [M487] Alpha support for real chip
Real chip is incompatible with test chip due to change of pinout. From this on, test chip is unsupported.
2017-08-01 10:23:43 +08:00
ccli8 59acfb3a47 [M487] Correct comment for RTC time error in 1 sec after boot 2017-08-01 10:23:40 +08:00
ccli8 2fc3d1721b [M487] Fix RTC time doesn't continue across reset cycle 2017-08-01 10:23:39 +08:00
ccli8 00b69c7ddd [M487] Change comment for serial_getc/serial_putc 2017-08-01 10:23:38 +08:00
ccli8 e3fb76f0d9 [M487] Fix region end address error with IAR toolchain 2017-08-01 10:23:37 +08:00
ccli8 3f97ad3cdd [M487] Rename sleep/deepsleep to hal_sleep/hal_deepsleep 2017-08-01 10:23:36 +08:00
ccli8 4cc90e54d5 [M487] Fix serial error with sync/async calls interlaced 2017-08-01 10:23:34 +08:00
ccli8 3f650566d9 [M487] Fix pwmout power-down condition 2017-08-01 10:23:33 +08:00
ccli8 bea7548717 [M487] Fix DMA channel over-allocate 2017-08-01 10:23:32 +08:00
ccli8 5e9999424a [M487] Fix flash algorithm
1. Remove setting of not released register ICPCON
2. Enable FMC_APUEN to update APROM
2017-08-01 10:23:31 +08:00
ccli8 3a8be6c711 [M487] Remove 'FIXME' comment in flash_api.c 2017-08-01 10:23:29 +08:00
ccli8 bced49325a [M487] Support flash 2017-08-01 10:19:54 +08:00
ccli8 898a4bb4bd [M487] Refine serial PDMA code 2017-08-01 10:19:50 +08:00
ccli8 422871ab4d [M487] Refine SPI PDMA code 2017-08-01 10:19:48 +08:00
ccli8 a76d55a555 [M487] Add dma_modbase() to get PDMA base address 2017-08-01 10:19:45 +08:00
ccli8 aeee0e8b57 [M487] Fix pwmout power-down condition 2017-08-01 10:19:42 +08:00
ccli8 ae33f9eed7 [M487] Fix PDMA error on timeout 2017-08-01 10:19:39 +08:00
ccli8 65de13454e [M487] Prepare support for one-to-many mappings in the same pin map
Also fix bumped bug which doesn't call NU_MODBASE() to retrieve module base address
2017-08-01 10:19:33 +08:00
ccli8 04bd652a56 [M487] Add configuration option MBED_CONF_M480_USB_DEVICE_HSUSBD 2017-08-01 10:19:30 +08:00
cyliangtw d32607294f [M487] Support CAN feature 2017-08-01 10:19:25 +08:00
ccli8 95e0bc094a [M487] Change sbrk() allocation to be 32-byte aligned 2017-08-01 10:19:22 +08:00
ccli8 acee0379c7 [M487] Remove power-down support from us_ticker 2017-08-01 10:19:19 +08:00
ccli8 3dc5f2da34 [M487] Support uvisor debug message through stdio uart 2017-08-01 10:19:16 +08:00
ccli8 ebe56466cc [M487] Fix us_ticker drift error > 5% 2017-08-01 10:19:14 +08:00