Skip to content

Commit c23838f

Browse files
authored
Fix calling convention on putchar (silgen_name -> cdecl) (#10)
1 parent 6a78bd6 commit c23838f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stm32-neopixel/Sources/Application/Application.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public func defaultHandler() {
134134
while true { }
135135
}
136136

137-
@_silgen_name("putchar")
137+
@_cdecl("putchar")
138138
public func putchar(_ value: CInt) -> CInt {
139139
while usart1.isr.read().raw.txe == 0 { }
140140
usart1.tdr.modify { $0.raw.tdr_field = UInt32(value) }

stm32-uart-echo/Sources/Application/Application.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public func defaultHandler() {
106106
while true { }
107107
}
108108

109-
@_silgen_name("putchar")
109+
@_cdecl("putchar")
110110
public func putchar(_ value: CInt) -> CInt {
111111
waitTxBufferEmpty()
112112
tx(value: UInt8(value))

0 commit comments

Comments
 (0)