aboutsummaryrefslogtreecommitdiffstats
path: root/src/samd21
Commit message (Collapse)AuthorAgeFilesLines
* src: Rename source folders for atsam and atsamd architecturesFlorian Heilmann2019-01-1214-1246/+0
| | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* i2ccmds: Pass the i2c address as a 7-bit number (0-127)Kevin O'Connor2019-01-071-1/+1
| | | | | | | | | | | | | | | | The sam3 i2c code and the linux code use a 7-bit i2c address, while the avr, lpc176x, and samd21 i2c code uses an 8-bit address with the least significant bit always zero. A similar issue occurred in the host code (sx1509.py and replicape.py use 7-bit addresses while uc1701.py and mcp4451.py use 8-bit addresses). Consistently use 7-bit addresses in all the code. This breaks compatibility between host and mcu software, so make a change to the config_i2c command to force users to synchronize software updates. This also breaks common Smoothieboard configs, so update the mcp4451 code to validate the i2c_address. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for entering Arduino bootloader via USBKevin O'Connor2018-12-242-1/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Add support for detecting a USB level Arduino bootloader requestKevin O'Connor2018-12-241-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for ADCKevin O'Connor2018-12-224-0/+131
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Fix gpio in supportKevin O'Connor2018-11-302-3/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for flashing an application via the bossac toolKevin O'Connor2018-11-301-3/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for hardware pwmKevin O'Connor2018-11-304-0/+110
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Minor simplification to timer init codeKevin O'Connor2018-11-301-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for SPIKevin O'Connor2018-11-304-0/+102
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for basic i2c support (write only)Kevin O'Connor2018-11-304-0/+125
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Use GPIO() macro when calling gpio_peripheral()Kevin O'Connor2018-11-304-11/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Enable watchdogKevin O'Connor2018-11-301-0/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Try to clarify the "generic clock generator" configurationKevin O'Connor2018-11-301-15/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Add usb_read_ep0_setup() interface functionKevin O'Connor2018-09-301-0/+6
| | | | | | | Use new usb_read_ep0_setup() function when reading a setup packet - this allows the low-level usb hardware code to better handle errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* usb_cdc: Rename interface functions to avoid the term "setup"Kevin O'Connor2018-09-301-6/+6
| | | | | | | Use "ep0" when referring to endpoint0 - don't use "setup" as that can be confused with the low-level usb setup token. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for gpio_x_reset()Kevin O'Connor2018-08-272-15/+37
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Enable HAVE_GPIO_BITBANGINGKevin O'Connor2018-08-271-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Fix description of bootloader offsetKevin O'Connor2018-08-081-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Minor fixes to usbserialKevin O'Connor2018-08-081-7/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for USBKevin O'Connor2018-08-073-0/+237
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Add support for gpio pinsKevin O'Connor2018-08-073-0/+110
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* samd21: Initial support for SAMD21 micro-controllersKevin O'Connor2018-08-078-0/+348
Add initial support for the Atmel SAMD21 micro-controllers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>