aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2022-07-28compiler: implement unsafe.Alignof and unsafe.Sizeof for generic codev0.25.0-beta1Ayke van Laethem
For some reason, these aren't lowered when a generic function is instantiated by the SSA package. I've left unsafe.Offsetof to be implemented later, it's a bit difficult to do correctly the way the code is currently structured.
2022-07-28compiler: fix type names for generic named structsAyke van Laethem
Without this change, the compiler would probably have worked just fine but the generated types would look odd. You can see in the test case that it now doesn't use `main.Point` but rather the correct `main.Poin[float32]` etc.
2022-07-28compiler: do not try to build generic functionsAyke van Laethem
There is no reason to: we should only build instantiated generic functions.
2022-07-28compiler: add generics test caseAyke van Laethem
This test case shows a few bugs, that I will fix in subsequent patches.
2022-07-28compiler: fix issue with methods on generic structsPhil Kedy
2022-07-28rp2040: make picoprobe default openocd interfaceKenneth Bell
2022-07-27machine/rp2040: turn off pullup/down when not input type not specifieddeadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-27esp32: optimize SPI transmitAyke van Laethem
For write-only operations (in SPI displays for example), the transmit speed is doubled with this relatively small change. In the future, we should try to use DMA instead for larger buffers. But this is already a significant improvement and will always be an improvement for small buffer sizes.
2022-07-27usb/midi: add definition of MIDI note numbersago35
2022-07-27build/linux/arm: pin dotenv Ruby gem to version 2.7.6deadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-26esp32: fix WDT reset on the MCH2022 badgeAyke van Laethem
2022-07-26darwin: don't clobber X18 and FP registersAyke van Laethem
These are reserved registers on MacOS so don't need to be clobbered, and result in a compiler waring: ld.lld-14: warning: inline asm clobber list contains reserved registers: X18, FP Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
2022-07-26target: add gopherbot and gopherbot2 aliases to simplify for newer usersdeadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-26rp2040: usb: reset device address on bus resetKenneth Bell
2022-07-25rp2040: add resetBlock for USBCTRLsago35
2022-07-25main: change to ignore PortReset failuressago35
2022-07-22samd51: improve TRNGsago35
2022-07-21machine/usb/midi: add NoteOn, NoteOff, and SendCC methods for more complete APIdeadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-21xiao-ble: add support for flash-1200-bps-resetsago35
2022-07-20usb: adjust buffer alignment (samd21, samd51, nrf52840)sago35
2022-07-18samd51: add support for DAC1sago35
2022-07-16boards: Add MCH2022 badgeAyke van Laethem
I haven't fully tested this badge because I don't have the physical hardware but I have followed the pinout from the website.
2022-07-15archFamily(): arm64 is aarch64, not arm; fixes #2985Dan Kegel
2022-07-15runtime: rename printuint to printuintptrAyke van Laethem
This is arguably the correct name, and is consistent with other print functions.
2022-07-15machine: reorder pin definitions to improve pin list on tinygo.orgAyke van Laethem
2022-07-15esp32c3: provide hardware pin constantsAyke van Laethem
2022-07-15esp32: provide hardware pin constantsAyke van Laethem
2022-07-15esp8266: provide hardware pin constants like GPIO2Ayke van Laethem
2022-07-15clue: remove pins D21..D28Ayke van Laethem
These pins do not appear in the pinout: https://learn.adafruit.com/adafruit-clue/pinouts
2022-07-15avr: fix some apparent mistake in atmega1280/atmega2560 pin constantsAyke van Laethem
2022-07-15nrf51: define and use P0_xx constantsAyke van Laethem
This makes nrf51 consistent with nrf52 and other chips, which do provide constants for hardware pin numbers. I've also added the microbit to the smoketest because it is used on play.tinygo.org. And removed PCA10040 and PCA10056 because they aren't provided on play.tinygo.org anymore.
2022-07-15rp2040: reduced allocationssago35
2022-07-15rp2040: add support for EnterBootloader()sago35
2022-07-15rp2040: change volatile access to dpsramsago35
2022-07-14machine/usb/midi: correct reference to handler functiondeadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-14rp2040: change default for serial to usbsago35
2022-07-14machine/usb: refactorings to move functionality under machine/usb packagedeadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-13Add support for printing slices via print/printlnFederico G. Schwindt
With help from @aykevl.
2022-07-13usb: rename callback to handler to keep consistentdeadprogram
Signed-off-by: deadprogram <[email protected]>
2022-07-12usb: add support for midisago35
2022-07-12build: run tests on drivers and bluetooth repos after successful docker dev ↵deadprogram
build Signed-off-by: deadprogram <[email protected]>
2022-07-12usb: add DTR and RTS to serialer interfacesago35
2022-07-12rp2040: add support for usb (#2973)sago35
* rp2040: add support for usb
2022-07-10samd21,samd51,nrf52840: move usbcdc to machine/usb/cdc (#2972)sago35
* samd21,samd51,nrf52840: move usbcdc to machine/usb/cdc
2022-07-08ci: build Linux binary in Alpine containerAyke van Laethem
This makes it easier to move the TinyGo compiler between Linux versions because it doesn't depend on any system libraries anymore. For example, binaries should be able to run on old Linux versions and on distributions without glibc (such as Alpine Linux).
2022-07-08boards: add Challenger RP2040 LoRaKenneth Bell
2022-07-08all: git ignore smoketest outputKenneth Bell
2022-07-08update list of boards supported to add Badger2040Daniel Esteban
2022-07-07atsamd21,atsamd51,nrf52840: improve usb-device initializationsago35
2022-07-07samd21,samd51,nrf52840: refactor handleStandardSetup and initEndpoint (#2968)sago35
* samd21,samd51,nrf52840: refactor handleStandardSetup and initEndpoint