Skip to content

Commit

Permalink
fix: regs for ch32v103
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Mar 31, 2024
1 parent 87da153 commit 41b2434
Show file tree
Hide file tree
Showing 6 changed files with 491 additions and 1,509 deletions.
2 changes: 2 additions & 0 deletions data/chips/CH32V103C6T6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ cores:
peripherals: []
include_peripherals:
- "../family/CH32V1.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
include_interrupts: "../interrupts/ch32v1.yaml"
include_dma_channels:
DMA1: "../dma/CH32V103.yaml"
Expand Down
4 changes: 4 additions & 0 deletions data/chips/CH32V103C8T6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ cores:
peripherals: []
include_peripherals:
- "../family/CH32V1.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
- "../peripherals/FV2x_V3x_SPI2.yaml"
include_interrupts: "../interrupts/ch32v1.yaml"
include_dma_channels:
DMA1: "../dma/CH32V103.yaml"
Expand Down
4 changes: 4 additions & 0 deletions data/chips/CH32V103C8U6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ cores:
peripherals: []
include_peripherals:
- "../family/CH32V1.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
- "../peripherals/FV2x_V3x_SPI2.yaml"
include_interrupts: "../interrupts/ch32v1.yaml"
include_dma_channels:
DMA1: "../dma/CH32V103.yaml"
Expand Down
4 changes: 4 additions & 0 deletions data/chips/CH32V103R8T6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ cores:
peripherals: []
include_peripherals:
- "../family/CH32V1.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
- "../peripherals/FV2x_V3x_SPI2.yaml"
include_interrupts: "../interrupts/ch32v1.yaml"
include_dma_channels:
DMA1: "../dma/CH32V103.yaml"
Expand Down
13 changes: 13 additions & 0 deletions data/peripherals/FV2x_V3x_SPI2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,16 @@
- signal: GLOBAL
interrupt: SPI2
# No remap
pins:
- pin: PB12
signal: NSS
remap: 0
- pin: PB13
signal: SCK
remap: 0
- pin: PB14
signal: MISO
remap: 0
- pin: PB15
signal: MOSI
remap: 0
Loading

0 comments on commit 41b2434

Please sign in to comment.