@typecad/hal 0.1.0-alpha.2 → 1.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@typecad/hal`
2
2
 
3
- Hardware abstraction layer for [TypeCAD](https://github.com/justind000/typecode) —
3
+ Hardware abstraction layer for [TypeCAD](https://cuttlefish.typecad.net) —
4
4
  GPIO, I2C, SPI, UART, timers, ADC/DAC, EEPROM, and more, written as regular
5
5
  TypeScript.
6
6
 
@@ -77,7 +77,7 @@ For I2C/SPI/UART, instantiate the bus class with the board's pinned instance
77
77
 
78
78
  The [`tests/`](./tests/) directory contains a hardware test suite that
79
79
  exercises every AVR-compilable HAL subsystem against real Arduino Uno hardware,
80
- using [`@typecad/expect`](https://github.com/justind000/typecode/tree/main/packages/expect)
80
+ using [`@typecad/expect`](https://cuttlefish.typecad.net)
81
81
  (`describe()` / `.it()` / `.expect()` / `done()`) over serial. Each file covers
82
82
  one subsystem: GPIO, timing, math, random, pulse, shift, interrupts, UART,
83
83
  I2C, SPI, ADC, EEPROM, WDT, Preferences, async, and constants.
@@ -92,7 +92,7 @@ npm exec --workspace @typecad/hal -- cuttlefish-test
92
92
  ```
93
93
 
94
94
  The suite is configured by [`cuttlefish.config.ts`](./cuttlefish.config.ts).
95
- Like the [`@typecad/framework-arduino`](https://github.com/justind000/typecode/tree/main/packages/framework-arduino/tests)
95
+ Like the [`@typecad/framework-arduino`](https://cuttlefish.typecad.net)
96
96
  tests, it imports through `@typecad/board` (the board package) and ambient globals
97
97
  declared in `cuttlefish-env.d.ts`, never directly from `@typecad/board`, so the
98
98
  transpiler resolves each call against the active MCU/board packages.
@@ -117,8 +117,8 @@ entirely — they require an ESP32 target.
117
117
 
118
118
  ## Ecosystem
119
119
 
120
- - [`@typecad/cuttlefish`](https://github.com/justind000/typecode/tree/main/packages/cuttlefish) — the transpiler that resolves HAL calls to C++.
121
- - [`@typecad/ui`](https://github.com/justind000/typecode/tree/main/packages/ui) — HTML/CSS-driven display graphics.
120
+ - [`@typecad/cuttlefish`](https://cuttlefish.typecad.net) — the transpiler that resolves HAL calls to C++.
121
+ - [`@typecad/ui`](https://cuttlefish.typecad.net) — HTML/CSS-driven display graphics.
122
122
  - `@typecad/mcu-*` — silicon pin/port/peripheral definitions.
123
123
  - `@typecad/board-*` — board-level pin mappings and bus aliases.
124
124
 
package/dist/types.d.ts CHANGED
@@ -37,7 +37,7 @@ export interface IPinGroup<T extends PinGroupMember = PinGroupMember> {
37
37
  fill(value: DigitalValue): void;
38
38
  }
39
39
  export declare function createPinGroup<T extends PinGroupMember>(pins: T[]): IPinGroup<T>;
40
- export type ArchitectureIdentifier = 'avr' | 'esp32' | 'esp32s2' | 'esp32s3' | 'esp32c3' | 'esp32c6' | 'rp2040' | 'samd' | 'stm32' | 'nrf52' | (string & {});
40
+ export type ArchitectureIdentifier = 'avr' | 'esp32' | 'esp32s2' | 'esp32s3' | 'esp32c3' | 'esp32c6' | 'rp2040' | 'rp2350' | 'samd' | 'stm32' | 'nrf52' | (string & {});
41
41
  export type I2CAddress = number;
42
42
  export type SPIBitOrder = 'msb' | 'lsb';
43
43
  export type SPIMode = 0 | 1 | 2 | 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typecad/hal",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "TypeCAD hardware abstraction layer — GPIO, I2C, SPI, UART as regular TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,9 +49,9 @@
49
49
  },
50
50
  "author": "typecad0",
51
51
  "devDependencies": {
52
- "@typecad/expect": "0.1.0-alpha.2",
53
- "@typecad/board-arduino-uno": "0.1.0-alpha.2",
54
- "@typecad/mcu-atmega328p": "0.1.0-alpha.2"
52
+ "@typecad/expect": "1.0.0-alpha.3",
53
+ "@typecad/board-arduino-uno": "1.0.0-alpha.3",
54
+ "@typecad/mcu-atmega328p": "1.0.0-alpha.3"
55
55
  },
56
56
  "sideEffects": false,
57
57
  "exports": {
package/src/types.ts CHANGED
@@ -123,6 +123,7 @@ export type ArchitectureIdentifier =
123
123
  | 'esp32c3'
124
124
  | 'esp32c6'
125
125
  | 'rp2040'
126
+ | 'rp2350'
126
127
  | 'samd'
127
128
  | 'stm32'
128
129
  | 'nrf52'