Skip to content
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

Added support for SAMG55 #1550

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
b407807
* Base Commit for SAMG55J19. No errors and no implementations.
akhilpanayamparambil Nov 18, 2015
d87f437
* Added gpio files.
akhilpanayamparambil Nov 18, 2015
ec95331
* Added pinmap files.
akhilpanayamparambil Nov 18, 2015
c71252f
* Base commit for usticker implementation.
akhilpanayamparambil Nov 19, 2015
148f09a
* Added gcc_arm export functionality
akhilpanayamparambil Nov 20, 2015
5d9a571
* added files for usticker.
akhilpanayamparambil Nov 23, 2015
42d5d47
* GPIO IRQ base commit.
akhilpanayamparambil Nov 23, 2015
653ebe8
* updated with changes in gpio irq driver.
akhilpanayamparambil Nov 24, 2015
a029fa3
* Reverted back unexpected commit in SAM0 gpio driver.
akhilpanayamparambil Nov 24, 2015
0eb3001
* updated gpio_irq driver.
akhilpanayamparambil Nov 25, 2015
c8e8e08
* correction in gpio and gpio_irq drivers.
akhilpanayamparambil Nov 25, 2015
0e3b8cb
* base commit for peripheralpins for usart.
akhilpanayamparambil Nov 26, 2015
8fb7b06
* updated serial apis.
akhilpanayamparambil Nov 27, 2015
c7dcd52
* updated serial apis and test.
akhilpanayamparambil Nov 28, 2015
b0ff5c1
* update serial apis for asynch apis.
akhilpanayamparambil Nov 28, 2015
ca7808a
* updated peripheral pins for i2c and spi.
akhilpanayamparambil Nov 30, 2015
511be0c
* Base commit for low power ticker implementation.
akhilpanayamparambil Nov 30, 2015
e37d2db
* base commit for port apis.
akhilpanayamparambil Dec 1, 2015
ce5416e
* Added test support for port.
akhilpanayamparambil Dec 1, 2015
0b61de3
* base commit for sleep apis.
akhilpanayamparambil Dec 2, 2015
843dd3b
* Base commit for spi.
akhilpanayamparambil Dec 3, 2015
0ba8db4
* updated with corrections in gpio irq.
akhilpanayamparambil Dec 10, 2015
ccc864d
* updated with corrections for unexpected board reset.
akhilpanayamparambil Dec 10, 2015
91462f3
* updated sleep api for deepsleep.
akhilpanayamparambil Dec 11, 2015
42b3cad
* updated serial apis.
akhilpanayamparambil Dec 15, 2015
a02c23e
Added uc_ticker and SPI api implementations
Dec 18, 2015
02d8c99
Removed unused SPI pin map
Dec 18, 2015
1e2acba
Updated review feedback
Dec 21, 2015
c7cca1e
* implemented lpticker with TC module.
akhilpanayamparambil Dec 21, 2015
1b8b376
* Base commit for AnalogueIn apis.
akhilpanayamparambil Dec 23, 2015
6a61fc9
* RTC apis base commit without implementation.
akhilpanayamparambil Dec 23, 2015
c36234d
* Updated with corrections in lpticker implementations.
akhilpanayamparambil Dec 23, 2015
438f845
* Added implementation for rtc apis.
akhilpanayamparambil Jan 5, 2016
b74a991
* updated with implementations for pwm.
akhilpanayamparambil Jan 12, 2016
6d1fe4b
Added I2C support
Jan 13, 2016
792f567
* removed setvector usage from usticker and lpticker implementations
akhilpanayamparambil Jan 13, 2016
4ad240f
* Removed unwanted .o and .d files.
akhilpanayamparambil Jan 19, 2016
db2636f
* Removed unwanted headers file inclusion.
akhilpanayamparambil Jan 20, 2016
b67f5f7
* Updated ADC with 16 bit mode initialization and code refinements.
akhilpanayamparambil Jan 27, 2016
14f3f3b
Updated I2C review feedback and fixed style
Feb 16, 2016
3de8a1d
Fixed merge conflicts
Feb 16, 2016
d3b5990
Updated target name for SAMG55
Feb 16, 2016
a0edad3
Merge pull request #1 from Parthasarathy/atmel
Parthasarathy Feb 16, 2016
df374b1
* Added Test Support for I2C with AT30TSE75X and Added Support for SA…
akhilpanayamparambil Mar 4, 2016
e22b980
* Added Test Support for I2C with AT30TSE75X and Added Support for SA…
akhilpanayamparambil Mar 4, 2016
feca68d
Used NVIC_SetVector for interrupt callback
Mar 4, 2016
02580b0
Updated macro to upper case
Mar 4, 2016
c51e3e4
Removed Target macro define in test
Mar 4, 2016
71c2dec
Updated test cases to have SAMG55 support
Mar 4, 2016
1ed2b32
Merge branch 'master' of https://github.com/Parthasarathy/mbed
Mar 4, 2016
7c7be72
* Updated with corrections in Serial and SPI asynchronous implementat…
akhilpanayamparambil Mar 21, 2016
e6c2f1c
* Merged the changes
akhilpanayamparambil Mar 22, 2016
ba7dfa8
Used NVIC_SetVector for interrupt callback
Mar 4, 2016
9f4a29c
Removed Target macro define in test
Mar 4, 2016
dac6382
Updated test cases to have SAMG55 support
Mar 4, 2016
dbe931c
* updated with corrections in I2C Asynch implementation.
akhilpanayamparambil Mar 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
* Removed unwanted headers file inclusion.
* Compiler warning corrections in serial_api.c
  • Loading branch information
akhilpanayamparambil committed Jan 20, 2016
commit db2636fc68d456c14f3e8a668cdb2e3a2ce58bb6
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "cmsis.h"
#include "PinNames.h"
#include "adc2.h"

#ifdef __cplusplus
extern "C" {
Expand All @@ -36,14 +35,14 @@ typedef enum {
} UARTName;

typedef enum {
ADC_0 = (int)ADC_CHANNEL_0,
ADC_1 = (int)ADC_CHANNEL_1,
ADC_2 = (int)ADC_CHANNEL_2,
ADC_3 = (int)ADC_CHANNEL_3,
ADC_4 = (int)ADC_CHANNEL_4,
ADC_5 = (int)ADC_CHANNEL_5,
ADC_6 = (int)ADC_CHANNEL_6,
ADC_7 = (int)ADC_CHANNEL_7,
ADC_0 = 0,
ADC_1,
ADC_2,
ADC_3,
ADC_4,
ADC_5,
ADC_6,
ADC_7,
} ADCName;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "PeripheralNames.h"
#include "gpio_object.h"
#include "serial_platform.h"
#include "adc2.h"

#ifdef __cplusplus
extern "C" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ void serial_init(serial_t *obj, PinName tx, PinName rx)
sysclk_enable_peripheral_clock(clockid);
#endif
/* Configure USART */
usart_init_rs232((Usart*)uart, &(pSERIAL_S(obj)->uart_serial_options),
usart_init_rs232((Usart*)uart, (sam_usart_opt_t*)&(pSERIAL_S(obj)->uart_serial_options),
sysclk_get_peripheral_hz());
#endif
#if (SAM4L)
sysclk_enable_peripheral_clock(clockid);
/* Configure USART */
usart_init_rs232((Usart*)uart, &(pSERIAL_S(obj)->uart_serial_options, sysclk_get_peripheral_bus_hz((Usart*)uart));
usart_init_rs232((Usart*)uart, (sam_usart_opt_t*)&(pSERIAL_S(obj)->uart_serial_options, sysclk_get_peripheral_bus_hz((Usart*)uart));
#endif
/* Disable rx and tx in case 1 line only required to be configured for usart */
usart_disable_tx((Usart*)uart);
Expand Down Expand Up @@ -215,7 +215,7 @@ void serial_baud(serial_t *obj, int baudrate)
(baudrate == 57600) || (baudrate == 115200) || (baudrate == 230400) || (baudrate == 460800) || (baudrate == 921600) );
uint32_t clockid = 0;
clockid = get_usart_clock_id(pUSART_S(obj));
if (clockid != NC) {
if (clockid != (uint32_t)NC) {
sysclk_disable_peripheral_clock(clockid);
}
pSERIAL_S(obj)->uart_serial_options.baudrate = baudrate;
Expand Down Expand Up @@ -256,6 +256,12 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
case ParityEven:
pSERIAL_S(obj)->uart_serial_options.paritytype = US_MR_PAR_EVEN;
break;
case ParityForced1: /*No Hardware Support*/
MBED_ASSERT(0);
break;
case ParityForced0: /*No Hardware Support*/
MBED_ASSERT(0);
break;
}

switch(data_bits) { /*selecting the data bits*/
Expand Down Expand Up @@ -604,14 +610,12 @@ int serial_tx_asynch(serial_t *obj, const void *tx, size_t tx_length, uint8_t tx
MBED_ASSERT(tx != (void*)0);
if(tx_length == 0) return 0;
Pdc *pdc_base;
uint8_t index;
IRQn_Type irq_n = (IRQn_Type)0;
pdc_packet_t packet;

pSERIAL_S(obj)->acttra = true; /* flag for active transmit transfer */

irq_n = get_serial_irq_num(obj);
index = serial_get_index(obj);

/* Get board USART PDC base address and enable transmitter. */
pdc_base = usart_get_pdc_base(_USART(obj));
Expand All @@ -638,7 +642,6 @@ void serial_rx_asynch(serial_t *obj, void *rx, size_t rx_length, uint8_t rx_widt
MBED_ASSERT(rx != (void*)0);
if(rx_length == 0) return 0;
Pdc *pdc_base;
uint8_t index;
IRQn_Type irq_n = (IRQn_Type)0;
pdc_packet_t packet;

Expand All @@ -648,7 +651,6 @@ void serial_rx_asynch(serial_t *obj, void *rx, size_t rx_length, uint8_t rx_widt
}

irq_n = get_serial_irq_num(obj);
index = serial_get_index(obj);

serial_set_char_match(obj, char_match);

Expand All @@ -666,7 +668,6 @@ void serial_rx_asynch(serial_t *obj, void *rx, size_t rx_length, uint8_t rx_widt
NVIC_SetVector(irq_n, (uint32_t)handler);
NVIC_EnableIRQ(irq_n);

return;
}

uint8_t serial_tx_active(serial_t *obj)
Expand Down