runtime: remove unused arrtype type aliases
The arrtype aliases are used in the machine package.
Этот коммит содержится в:
родитель
c35ce761aa
коммит
a6837f05a4
10 изменённых файлов: 3 добавлений и 19 удалений
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
package machine
|
package machine
|
||||||
|
|
||||||
|
// The type alias `arrtype` should be defined to either uint32 or uint16
|
||||||
|
// depending on the size of that register in the MCU's TIM_Type structure.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"device/stm32"
|
"device/stm32"
|
||||||
"runtime/interrupt"
|
"runtime/interrupt"
|
||||||
|
|
|
@ -8,9 +8,6 @@ package runtime
|
||||||
// periodic interrupts at 100Hz (TICK_INTR_PERIOD_NS). The PWM counter
|
// periodic interrupts at 100Hz (TICK_INTR_PERIOD_NS). The PWM counter
|
||||||
// register is used for fine-grained resolution (down to ~150ns) with an
|
// register is used for fine-grained resolution (down to ~150ns) with an
|
||||||
// Output Comparator used for fine-grained sleeps.
|
// Output Comparator used for fine-grained sleeps.
|
||||||
//
|
|
||||||
// The type alias `arrtype` should be defined to either uint32 or uint16
|
|
||||||
// depending on the size of that register in the MCU's TIM_Type structure.
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"device/stm32"
|
"device/stm32"
|
||||||
|
|
|
@ -7,8 +7,6 @@ import (
|
||||||
"machine"
|
"machine"
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
||||||
|
|
|
@ -64,8 +64,6 @@ const (
|
||||||
FLASH_OPTIONS = stm32.FLASH_ACR_ICEN | stm32.FLASH_ACR_DCEN | stm32.FLASH_ACR_PRFTEN
|
FLASH_OPTIONS = stm32.FLASH_ACR_ICEN | stm32.FLASH_ACR_DCEN | stm32.FLASH_ACR_PRFTEN
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initOSC() // configure oscillators
|
initOSC() // configure oscillators
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
|
@ -26,8 +26,6 @@ const (
|
||||||
PLL_Q = 7 // USB OTS FS, SDIO and RNG Clock = PLL_VCO / PLL_Q
|
PLL_Q = 7 // USB OTS FS, SDIO and RNG Clock = PLL_VCO / PLL_Q
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,6 @@ const (
|
||||||
PLL_Q = 2
|
PLL_Q = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,6 @@ const (
|
||||||
RCC_SYSCLK_DIV1 = 0 // Needs SVD update (should be stm32.RCC_SYSCLK_DIV1)
|
RCC_SYSCLK_DIV1 = 0 // Needs SVD update (should be stm32.RCC_SYSCLK_DIV1)
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint16
|
|
||||||
|
|
||||||
func putchar(c byte) {
|
func putchar(c byte) {
|
||||||
machine.Serial.WriteByte(c)
|
machine.Serial.WriteByte(c)
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,6 @@ const (
|
||||||
RCC_PLL_SYSCLK = stm32.RCC_PLLCFGR_PLLREN
|
RCC_PLL_SYSCLK = stm32.RCC_PLLCFGR_PLLREN
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,6 @@ const (
|
||||||
PLL_R = 2 // RCC_PLLR_DIV2
|
PLL_R = 2 // RCC_PLLR_DIV2
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ import (
|
||||||
"machine"
|
"machine"
|
||||||
)
|
)
|
||||||
|
|
||||||
type arrtype = uint32
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
/* PLL Options RMN0461.p247 */
|
/* PLL Options RMN0461.p247 */
|
||||||
PLL_M = 2
|
PLL_M = 2
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче