Commit Graph

16 Commits (5bb3ede8904d2488c60b1d7539dff2edcce87062)

Author SHA1 Message Date
cyliangtw b6ff40e94d [M451/M480/NANO100/NUC472] Define SERIAL and I2C pin name for compatiblity 2018-02-27 11:38:29 +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 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 e7b737ddad [NUC472/M453] Fix serial error with sync/async calls interlaced
Serial implementation uses different vector handlers for sync/async calls respectively. The issue can be reproduced with the following flow:
1. Register sync mode callback with Serial.attach().
2. Sync call with Serial.putc()/getc().
3. Change to async call with Serial.write()/read().
4. Change back to sync call with Serial.putc()/getc().
Now, vector handller is still for async mode, not for sync mode.

To fix it:
1. Introduce internal function serial_enable_interrupt() for both sync/async vector handler enable/disable.
   Original HAL function serial_irq_set() is reduced to call it for sync mode vector handler enable/disable.
2. Introduce internal function serial_rollback_interrupt() to roll back sync mode vector handler at end of async transfer.
2017-05-02 09:31:09 +08:00
ccli8 1da33e809f [NUC472/M453] Refine pin/peripheral/pin map definitions
Change NUC472 analogin_api.c accordingly
2017-03-10 16:18:14 +08:00
ccli8 453f60e9c1 [NUC472/M453] Remove power-down support from us_ticker 2017-01-16 09:48:21 +08:00
ccli8 137053343e [M453] Fix button naming error 2016-11-23 14:35:09 +08:00
ccli8 6c1fca60a5 [M453] Remove SPI MOSI1 and MISO1 pins from pinmap
These pins are for SPI 2-bit mode (not dual mode) and cannot be for SPI standard use.
2016-11-22 09:56:54 +08:00
ccli8 fe883d42ab [M453] Fix CI tests-api-analogin failed
1. Fix ADC convert finish check error.
2. Set ADC Vref to internal by default.
2016-11-22 09:56:53 +08:00
ccli8 2922de8dff [NUC472/M453] Remove dead code in device.h 2016-11-07 10:59:42 +08:00
cyliangtw 33cfe1f599 remove dead code in device.h of NUC472 & M453 2016-10-28 18:39:56 +08:00
cyliangtw ae12346b8e [M453] Support CAN 2016-10-20 15:12:36 +08:00
ccli8 c75d54c668 [NUC472] Fix pin definition error regarding SD, I2C, and SPI
1. Fix pin definition error regarding SD.
2. Fix pin definition error regarding I2C.
3. Fix pin definition error regarding SPI.
4. Add pinmap for SD.
2016-10-11 10:55:08 +08:00
ccli8 21e8c5bd52 [M453] Fix warnings generated by armcc 2016-10-11 10:55:08 +08:00
ccli8 b95478015b Support NUMAKER_PFM_M453 2016-10-11 10:55:08 +08:00