Skip to content
/ teensy Public

baremetal llvm clang (C + Swift + CMake) [teensy 4.1] project with minimum usb serial

Notifications You must be signed in to change notification settings

purpln/teensy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Download

ninja & cmake, llvm Toolchain, Swift snapshot

Set up paths in

project/CMakeLists.txt (project example)

set(llvm <toolchain path>)
set(swift <snapshot swiftc path>)

find_package(Core 1.0.0 CONFIG REQUIRED PATHS <core from this repo path>)

Build

cd ~/teensy/project
cmake -B .build -G Ninja -S .
ninja -C .build

Testing

~/teensy_loader_cli-master/teensy_loader_cli --mcu=TEENSY41 -w ~/teensy/project/app.hex
screen /dev/tty.usbmodemnumber1

Binary

app.hex

Standart library features support

Core Status Priority
ExpressibleByFloatLiteral full
ExpressibleByIntegerLiteral full
ExpressibleByStringLiteral full
ExpressibleByNilLiteral full
ExpressibleByArrayLiteral none highest
ExpressibleByDictionaryLiteral none average
RawRepresentable full
MemoryLayout partial
Protocols Status Priority
Equatable full
Comparable full
Strideable full
Error minimum
Hashable minimum
Identifiable minimum
OptionSet partial
SetAlgebra none highest
CustomStringConvertible minimum
LosslessStringConvertible minimum
AdditiveArithmetic full
Numeric mostly highest
SignedNumeric full
BinaryInteger partial highest
FixedWidthInteger mostly average
UnsignedInteger full
SignedInteger full
FloatingPoint partial average
BinaryFloatingPoint partial average
RangeExpression full
Collection partial
IteratorProtocol full
Sequence partial
RandomAccessCollection none low
BidirectionalCollection none low
Values Status Priority
Bool partial
Optional partial
Int partial
Int8 partial
Int16 partial
Int32 partial
Int64 partial
UInt partial
UInt8 partial
UInt16 partial
UInt32 partial
UInt64 partial
Float partial
Double partial
String none average
StaticString partial
Array none highest
Set none average
Range partial
ClosedRange partial
Result none
Collection Status Priority
Slice none high
Pointer Status Priority
_Pointer partial
OpaquePointer partial
UnsafeMutablePointer partial
UnsafeMutableRawPointer partial
UnsafePointer partial
UnsafeRawPointer partial

About

baremetal llvm clang (C + Swift + CMake) [teensy 4.1] project with minimum usb serial

Topics

Resources

Stars

Watchers

Forks