Comments (4)
$ lbuild -r repo.lb -D :target=atmega8 discover -t :platform
Module(modm:platform) Platform HAL
├── Module(modm:platform:1-wire.bitbang) Software 1-Wire
├── Module(modm:platform:adc) Analog-to-Digital Converter (ADC)
├── Module(modm:platform:can.common) CAN Common
├── Module(modm:platform:clock) System Clock
│ ╰── NumericOption(f_cpu) = REQUIRED in [1 ... 32000000] CPU clock frequency
├── Module(modm:platform:core) AVR Core
│ ├── EnumerationOption(ram_block_length) = 16 in [2, 4, 8, 16, 32, 64]
│ ╰── NumericOption(ram_length) = 1024 in [64 .. 1024 .. 32768]
├── Module(modm:platform:gpio) General Purpose I/O (GPIO)
├── Module(modm:platform:gpio.common) GPIO Common
├── Module(modm:platform:i2c) Inter-Integrated Circuit (I²C)
├── Module(modm:platform:i2c.bitbang) Software Inter-Integrated Circuit (I²C)
├── Module(modm:platform:spi) Serial Peripheral Interface (SPI)
│ ╰── BooleanOption(busywait) = False in [True, False]
╰── Module(modm:platform:spi.bitbang) Software Serial Peripheral Interface (SPI)
Hm… why isn't there a UART module?
from modm.
There is no "instance" in the driver in modm-devices:
driver = device.get_driver("usart")
if "instance" in driver:
for instance in listify(driver["instance"]):
module.add_submodule(Instance(int(instance)))
else:
return False
<driver name="usart" type="avr"/>
from modm.
Looking at the ATmega8 datasheet, modm-devices is correct, the instance is called just USART, not USART0. So the driver needs to be adapted to work with a None
or ""
(empty string) instance.
from modm.
The SPI driver does something similar already, by building in modm:platform:spi
directly instead of a submodule. I'm not sure why I didn't port this from xpcc the same way: https://github.com/modm-io/modm/blob/develop/src/modm/platform/spi/at90_tiny_mega/module.lb#L79-L92
from modm.
Related Issues (20)
- [fiber] multi stack size ? HOT 5
- SAMD51/SAME5x cache not enabled? HOT 5
- STM32G0B1 currently black listed HOT 2
- Placement of data section in wrong memory for STM32H7 HOT 1
- Segmentation fault when building documentation files HOT 3
- Heap not implemented. HOT 6
- Most UART drivers don't implement the full `modm::Uart` interface
- External interrupt causes immediate reset on Arduino Mega 2560 HOT 1
- STM32H7 Flash Support? HOT 5
- vscode json generation HOT 2
- CI docs all job is broken
- Docs Page, Search Function is Intermittent? HOT 6
- OpenOCD cannot configure TPIU/SWO on STM32H7 HOT 5
- Error when trying to compile example on M1 mac HOT 2
- Using SPI on Linux/Darwin target HOT 3
- CMake usage in recommended project structure HOT 3
- lbuild fails when relative paths are on different Windows drives HOT 1
- Fibers not implemented on ARM64
- CI Failling in a apprently nor related point HOT 2
- Documentation / example for "safely" accessible flash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modm.