diff options
| author | Iooon <[email protected]> | 2025-10-01 11:00:44 +0200 |
|---|---|---|
| committer | crispaudio <[email protected]> | 2025-10-10 07:01:23 +0200 |
| commit | 7797cc0effa069b78be29ff19b81068b17f98ac2 (patch) | |
| tree | 0ea39389870a804bd62bf6b34fbcee50b478a38f /examples/mspm0g3507/src | |
| parent | e62ec23a389801f7a7c22db0727ae43814138fe1 (diff) | |
mspm0-i2c-target: add mspm0l1306 example and set target address explicitly in examples
Diffstat (limited to 'examples/mspm0g3507/src')
| -rw-r--r-- | examples/mspm0g3507/src/bin/i2c_target.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/mspm0g3507/src/bin/i2c_target.rs b/examples/mspm0g3507/src/bin/i2c_target.rs index cb1d315fe..ac7083a20 100644 --- a/examples/mspm0g3507/src/bin/i2c_target.rs +++ b/examples/mspm0g3507/src/bin/i2c_target.rs | |||
| @@ -25,6 +25,7 @@ async fn main(_spawner: Spawner) -> ! { | |||
| 25 | let sda = p.PB3; | 25 | let sda = p.PB3; |
| 26 | 26 | ||
| 27 | let mut config = i2c::Config::default(); | 27 | let mut config = i2c::Config::default(); |
| 28 | config.target_addr = 0x48; | ||
| 28 | config.general_call = true; | 29 | config.general_call = true; |
| 29 | let mut i2c = I2cTarget::new(instance, scl, sda, Irqs, config).unwrap(); | 30 | let mut i2c = I2cTarget::new(instance, scl, sda, Irqs, config).unwrap(); |
| 30 | 31 | ||
