Commit Graph

1913 Commits (2bc9c4299b4121bbe3b603e26c842003a7f10744)

Author SHA1 Message Date
bcostm e2cfc32459 [DISCO_L053C8] Add specific hal files (refactoring) 2015-03-12 10:20:03 +01:00
bcostm 843423e4fd [STM32L0] Add common hal files (refactoring) 2015-03-12 10:19:14 +01:00
bcostm e636ca4cad [NUCLEO_L053R8/DISCO_L053C8] Remove hal files (refactoring) 2015-03-12 10:18:08 +01:00
Martin Kojtal 39ab67b8ce Merge pull request #958 from Sissors/k20pwm
K20DXX PWM fix
2015-03-12 09:18:07 +00:00
0x4E656F00 1519466bc8 Update serial_api.c
Fix number of stop bits in serial_format()
2015-03-11 17:02:15 -04:00
Paul Staron 4196e0530d K20xx sleep.c update
Utilised Header file mask defines.
Tested InterruptIn and timer WakeUp
2015-03-10 22:53:59 +00:00
Paul Staron ca5fe8afd7 Teensy3.1 Updated clock set up.
Utilised Header file mask defines for clock set up's.
Tested default Teensy3.1 set up 3 and set up 0 (IRC mode).
Modes 1 and 2 require 8MHz crystal to test.
2015-03-10 22:48:24 +00:00
bcostm 2eb529ef2d [NUCLEO_L053R8] Alignment with STM32Cube driver + preparation for future L0 devices 2015-03-10 14:06:30 +01:00
bcostm 1561dd146a [STM32L053xx] Update adc structure fields
Due to a change in the STM32Cube driver.
2015-03-10 13:20:20 +01:00
bcostm bed648fc95 [NUCLEO_L053R8] Typo corrections 2015-03-10 13:15:08 +01:00
bcostm e1a2d3266c [DISCO_L053C8] Update registers and system files 2015-03-10 13:13:06 +01:00
bcostm 1a95683a30 [NUCLEO_L053R8] Update registers and system files 2015-03-10 11:44:55 +01:00
bcostm 54844496e7 [NUCLEO_L0] Update STM32Cube driver to V1.2.0 2015-03-10 11:42:08 +01:00
Sissors 1ffa1baf8a Modified some comments 2015-03-09 18:07:21 +01:00
Martin Kojtal 4b74c54118 Merge pull request #953 from bcostm/master
NUCLEO_F103RB - Migration to STM32Cube driver
2015-03-09 11:48:52 +00:00
Martin Kojtal 0531ad4544 Merge pull request #926 from Sissors/lookmartinImadeanewbranch
Add option to modify RTC source for time functions (using func pointers)
2015-03-09 11:16:52 +00:00
bcostm 6c24fef341 Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-03-09 10:51:41 +01:00
Paul Staron 5a803e8ad4 Teensy3.1 deepsleep update
Added extra code for Teensy3.1 deepsleep wake up restore function.
For some reason the Teensy3.1 would not wake from deepsleep, problem with restoring clock set ups. Possibly due to the higher clock frequencies requiring additional PLL locking time.
Most of the SystemInit() code was required. Teensy3.1 has no debug facilities, USBSerial is not usable during deepsleep/wakeup processes. Unless anyone has a better option.
Fully tested with InterruptIn and soft WakeUp.
Deepsleep is not really viable for this platform as it is not possible to isolate the interface chip from the power supply, 2.5mA at best in deepsleep mode.
2015-03-07 23:18:26 +00:00
Paul Staron 256321199f Added USB clock set up + corrected OSC->CR defines
Added USB clock set divider up for 48MHz operation, corrected oscillator MCU loading capacitor defines.
External capacitors not fitted to the Teensy3.1 PCB.
USBSerial tested using official Hello World program for serial communication to pc terminal.
2015-03-07 22:59:07 +00:00
Paul Staron 2dfb1b743f Added Teensy3.1 32KHz MCU loading capacitors.
External loading capacitors not fitted to the Teensy3.1 PCB, Added 20pF MCU loading capacitors for 32KHz crystal.
2015-03-07 22:49:02 +00:00
Paul Staron e027a8e224 Update PinNames.h
Pin name corrections to match platform images.
2015-03-07 22:29:12 +00:00
Sissors 095ebd03e3 [HAL] K20DXX PWM fix
The old code for the K20 PWM had an issue where calling for example
pwm.period and pwm.write after each other resulted in the pwm.write
function setting the pulsewidth with the value of the old pwm period.
This makes sure it waits until the latest pwm period is written before
it will do so.
2015-03-07 22:06:01 +01:00
Mihail Stoyanov 46e1601852 Added bootloader hex file for all nRF51822 based platforms. Added NRF51822_BOOT and NRF51_DK_BOOT platforms so bootloader is included in the compiled program. This is required for FOTA. 2015-03-06 18:54:14 +02:00
bcostm ba2d69e5a4 [NUCLEO_F103RB] Update all hal files (STM32Cube compliancy) 2015-03-06 10:11:35 +01:00
bcostm d54b1038fa [NUCLEO_F103RB] Add cmsis toolchains files 2015-03-06 10:08:49 +01:00
bcostm 69cecbdf8e [NUCLEO_F103RB] Add STM32Cube F1 driver 2015-03-06 10:06:22 +01:00
bcostm fc95094dae [NUCLEO_F103RB] Remove cmsis folder (StdPeriphLibrary driver) 2015-03-06 10:02:19 +01:00
Rohit Grover be71348f20 remove include for app_timer.h
need to add stdbool.h
2015-03-05 17:00:27 +00:00
Martin Kojtal 9ffb355546 Merge pull request #949 from GustavWi/iar_mbed
IAR support LPC824
2015-03-05 14:05:06 +01:00
Rohit Grover e01cb0ae84 use a virtual 64-bit timestamp to avoid wrap-around issues. gosh! 2015-03-05 11:49:48 +00:00
Rohit Grover aaf998f5cf fix minor typo in the declaration of the macro RTC_UNITS_TO_MICROSECONDS() 2015-03-05 11:49:48 +00:00
Rohit Grover 0f60237a88 switch to tracking overflowCount instead of overflowBits. 2015-03-05 11:49:48 +00:00
Rohit Grover e927c5bf27 rename INVOKE_CALLBACK() as invokeCallback() 2015-03-05 11:49:47 +00:00
Rohit Grover 47db597822 replace __INLINE with inline 2015-03-05 11:49:47 +00:00
Rohit Grover eb9f2ce77f don't invoke callbacks from set_interrupt(). 2015-03-05 11:49:47 +00:00
Rohit Grover 20c6611548 remove dependencies from nRF51822 2015-03-05 11:49:47 +00:00
Rohit Grover 70f91c10d5 white space diff. 2015-03-05 11:49:47 +00:00
Rohit Grover 5afdc68620 INVOKE_CALLBACK() is now a static inline instead of a macro. 2015-03-05 11:49:47 +00:00
Rohit Grover f8fd702c09 rearranging some code so that state is tidied up before calling us_ticker_set_interrtupt() 2015-03-05 11:49:47 +00:00
Rohit Grover ca9050e1ef updating the comment header for set_interrupt() with a note. 2015-03-05 11:49:47 +00:00
Rohit Grover 7c0e814bd4 introduce FUZZY_RTC_TICKS for comparsions 2015-03-05 11:49:47 +00:00
Rohit Grover 5cf0f29cfc minor white-space and comment improvements. 2015-03-05 11:49:47 +00:00
Rohit Grover 97e7fbbc8b minor improvement to the wording for the comment header for set_interrupt() 2015-03-05 11:49:47 +00:00
Rohit Grover 42f801cc27 If set_interrupt() is used to setup an interrupt for a time in the past, then the callback is invoked right-away. 2015-03-05 11:49:46 +00:00
Rohit Grover ac8f3e5522 add a helper method: INVOKE_CALLBACK() 2015-03-05 11:49:46 +00:00
Rohit Grover 2e892c6c0d rename callbackTime to newCallbackTime 2015-03-05 11:49:46 +00:00
Rohit Grover 90354c0a23 check for instantaneous callback before checking for repeat callback. 2015-03-05 11:49:46 +00:00
Rohit Grover b7cd6b6ae8 add a comment block for us_ticker_set_interrupt() 2015-03-05 11:49:46 +00:00
Rohit Grover 2e8c48c97e minor white space diff 2015-03-05 11:49:46 +00:00
Rohit Grover 9c9553cfd7 set_interrupt: if callbackTime is NOW, invoke handler. 2015-03-05 11:49:46 +00:00
Rohit Grover 7d688ad607 set_interrupt: short-circuit the setting of the same interrupt. 2015-03-05 11:49:46 +00:00
Rohit Grover 54dc3c1dcf reset us_ticker_callbackPending when disabling interrupts. 2015-03-05 11:49:46 +00:00
Rohit Grover 53d2b152c4 us_ticker_set_interrupt() should set an interrupt for the given timestamp even if there's a pending interrupt. 2015-03-05 11:49:46 +00:00
Rohit Grover 8c21ef208c white space diffs. 2015-03-05 11:49:46 +00:00
Rohit Grover 5906372a58 remove m_rtc1_running; made redundant by us_ticker_inited. 2015-03-05 11:49:46 +00:00
Rohit Grover a13e31d6b0 remove app_timer.c 2015-03-05 11:49:46 +00:00
Rohit Grover 5a0f3b808c MICROSECONDS_TO_RTC_UNITS() should round-up 2015-03-05 11:49:45 +00:00
Rohit Grover b1575db8b3 rtc1_stop() doesn't need to be static. 2015-03-05 11:49:45 +00:00
Rohit Grover 2ee04fde1f second round of changes at replacing app_timer with RTC 2015-03-05 11:49:45 +00:00
Rohit Grover e6a7c6f648 attempting to replace appTimer 2015-03-05 11:49:45 +00:00
GustavWi 451dc53fa5 IAR support LPC824 2015-03-04 13:49:44 +01:00
Paul Staron 94c6bdb6c7 Update system_MKL05Z4.c
Added MCU internal oscillator 12pF loading capacitors, found not to be fitted to the FRDM board.
2015-03-04 10:24:41 +00:00
0xc0170 83f6c17514 mbed header file - mbed lib revision - 95 2015-03-03 16:29:41 +01:00
mazgch 67ad872b47 Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-03-03 16:10:25 +01:00
mazgch 1c90460566 changed pin locations 2015-03-03 16:09:38 +01:00
0xc0170 2a1d12bcd4 Fix #940 - k64f a4/5 pinnames swap 2015-03-03 08:16:09 +01:00
Martin Kojtal 38514db08e Merge pull request #936 from jeremybrodt/issue934
Fix issue #934: Handled condition when head is NULL.
2015-03-03 08:09:58 +01:00
Sissors 4a184d980e Made attach_rtc with disabled irqs 2015-02-28 12:21:55 +01:00
Martin Kojtal 088b5c41a7 Merge pull request #937 from GustavWi/iar_mbed
IAR support: Fixed stack and heap sizes for MTS DRAGONFLY and MTS MDOT F...
2015-02-28 08:06:03 +01:00
Jeremy Brodt 6bc00fda8a Improved handling of NULL condition. 2015-02-27 10:01:30 -06:00
GustavWi d8df2f25d3 Set most of the targets to a fixed heap and stack ratio relative to ram. 1/4 of ram to heap and 1/8 of ram to stack. There are some exception where the ram is small and the target support an rtos, then the heap requires more than 1/4 of RAM 2015-02-27 12:57:45 +01:00
Martin Kojtal 43d7f387ec Merge pull request #933 from masaohamanaka/master
RZ/A1H - Modify to support GCC and Fix some bugs of driver.
2015-02-27 10:55:20 +01:00
GustavWi 35258ff16b IAR support: Fixed stack and heap sizes for MTS DRAGONFLY and MTS MDOT F411RE 2015-02-26 16:46:42 +01:00
Jeremy Brodt b53b67ecad Issue #934: Handled condition when head is NULL. 2015-02-26 08:50:09 -06:00
Masao Hamanaka 74220c7896 Correct the formatting of #if. 2015-02-26 19:46:02 +09:00
Masao Hamanaka d7bc024a6a Fix a bug that Ticker driver has the potential to loop infinitely.
Ticker driver has the potential to loop infinitely.
Because, running "us_ticker_irq_handler()" from "us_ticker_set_interrupt()" before "obj->next = p;" of "us_ticker_insert_event()" is executed.
2015-02-26 16:36:30 +09:00
Masao Hamanaka 2047acae11 Fix a bug that Serial driver would read 1Byte garbage data(0xFE).
Serial driver would read 1Byte garbage data(0xFE) at first after reset and start.
2015-02-26 16:36:04 +09:00
Masao Hamanaka 0365977217 Modify and add a file to support GCC. (mbed common codes) 2015-02-26 16:35:45 +09:00
Masao Hamanaka f6f45026f6 Modify to support GCC. (mbed CMSIS HAL) 2015-02-26 16:35:12 +09:00
Masao Hamanaka ed293575cf Modify to support GCC. (mbed HAL driver) 2015-02-26 16:33:01 +09:00
Jeremy Brodt 7020c50c56 Added function to get the timestamp of the next us_ticker event. 2015-02-24 14:25:43 -06:00
Martin Kojtal 1b2a62100a Merge pull request #905 from Willem23/master
LPC81x - Update us_ticker.c, using MRT
2015-02-24 13:36:38 +00:00
Martin Kojtal 7ae7dafa66 Merge pull request #906 from Willem23/patch-1
LPC812 - pwmout HAL implementation
2015-02-24 13:36:01 +00:00
Sissors f0d04f5360 [API] Added option to modify RTC source
Initially from Karls question here:
http://developer.mbed.org/questions/6337/setTime-and-time-exported-with-__weak-fo/#answer6545?compage=1#c15936.
Currently the C time functions only work with internal RTC. Sometimes
you either want to use an external one, or your target does not even
have an internal RTC. I added function attach_rtc(...) where the default
functions can be overridden at runtime.
2015-02-22 13:19:02 +01:00
Sam Grove 2de26e779e Update nRF51822.sct
FIx copy paste error in RAM size when softdevice isn't used
2015-02-20 23:41:20 -06:00
Martin Kojtal 86041dd398 Merge pull request #923 from mazgch/master
enable the additional uart 7&8 of the STM32F439 in the mbed sdk/api
2015-02-20 17:54:15 +00:00
mazgch 1641dd7e8d enable the additional uart 7&8 of the STM32F439 2015-02-20 13:38:11 +01:00
Wim 9241e5eaba Update us_ticker.c
Used precomputed variables to replace runtime mult and div in us_ticker_read().
2015-02-19 15:09:18 +01:00
0xc0170 31f66c22e5 mbed header file - mbed lib revision - 94 2015-02-16 17:04:27 +00:00
0xc0170 15ee1ca2dc Fix for #908, exit req std namespace 2015-02-16 10:11:54 +00:00
nitin.bhaskar.27.09@gmail.com ed7e114d66 LPC11U68 build support extended to ARM toolchain, uvision export template added 2015-02-13 21:02:16 +05:30
Martin Kojtal fba1390241 Merge pull request #891 from AppNearMe/master
Add support for LPC11U34_421 and AppNearMe's MicroNFCBoard
2015-02-12 14:30:08 +00:00
Martin Kojtal e03fb2793f Merge pull request #908 from adamgreen/exitMoveToRetarget
Move exit() to retarget.cpp
2015-02-12 13:10:17 +00:00
Martin Kojtal 4a7b7d067d Merge pull request #887 from Marcomissyou/master
Modify 32MHz crystal setting for NRF51822, overrides file for DFCM-NNN40 target
2015-02-12 12:57:45 +00:00
K4zuki cb2269fe13 [ SSCI824 ] enabling onboard Oscillator
changing flag to use onboard 12MHz oscillator
2015-02-12 12:46:37 +00:00
Adam Green 06495658ce Move exit override to retarget.cpp
I moved the exit handler from exit.c to retarget.cpp where the rest of
the standard C library retargetting routines are found.  The exported
makefiles already explicitly link in retarget.o but not exit.o
When building with the GNU toolchain, it is safest to link in the
object file directly for retargetting routines so that GNU linker has
to use these versions of the routines.

Testing:
I have only tested this change with GCC_ARM. It should really be
tested with more toolchains before getting merged.
2015-02-12 00:14:26 -08:00
Wim 2f2f4d67bc Update objects.h
Added PWM object.
2015-02-11 22:42:35 +01:00
Wim 7bd12f26f7 Update LPC8xx.h
Updated LPC_MRT_TypeDef for new us_ticker implementation on LPC812.
2015-02-11 22:37:15 +01:00
Wim 81e67758fa Update device.h
Activated the I2CSlave functions. Slave block read/write operations are fully supported. The slave byte read and writes need general modification to I2CSlave.cpp. See pending Issue.
Activated the PWM functions. They are supported now using the SCT after updating us_ticker() to use the MRT instead of the SCT.
2015-02-11 19:52:20 +01:00
Wim d9bd50c37e Create pwmout_api.c
Added PWM support for the LPC812 using the SCT. Code was ported from LPC824 libs.
First needed to modify us_ticker() to free up the SCT and use the MRT instead.
PWM can support a maximum of 4 channels using any portpin. All channels will use the same period.
2015-02-11 19:47:04 +01:00