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
|
||||
|
||||
// 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 (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
|
|
|
@ -8,9 +8,6 @@ package runtime
|
|||
// periodic interrupts at 100Hz (TICK_INTR_PERIOD_NS). The PWM counter
|
||||
// register is used for fine-grained resolution (down to ~150ns) with an
|
||||
// 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 (
|
||||
"device/stm32"
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
"machine"
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
func init() {
|
||||
initCLK()
|
||||
|
||||
|
|
|
@ -64,8 +64,6 @@ const (
|
|||
FLASH_OPTIONS = stm32.FLASH_ACR_ICEN | stm32.FLASH_ACR_DCEN | stm32.FLASH_ACR_PRFTEN
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
func init() {
|
||||
initOSC() // configure oscillators
|
||||
initCLK()
|
||||
|
|
|
@ -26,8 +26,6 @@ const (
|
|||
PLL_Q = 7 // USB OTS FS, SDIO and RNG Clock = PLL_VCO / PLL_Q
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
func init() {
|
||||
initCLK()
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@ const (
|
|||
PLL_Q = 2
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
func init() {
|
||||
initCLK()
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ const (
|
|||
RCC_SYSCLK_DIV1 = 0 // Needs SVD update (should be stm32.RCC_SYSCLK_DIV1)
|
||||
)
|
||||
|
||||
type arrtype = uint16
|
||||
|
||||
func putchar(c byte) {
|
||||
machine.Serial.WriteByte(c)
|
||||
}
|
||||
|
|
|
@ -50,8 +50,6 @@ const (
|
|||
RCC_PLL_SYSCLK = stm32.RCC_PLLCFGR_PLLREN
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
func init() {
|
||||
initCLK()
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@ const (
|
|||
PLL_R = 2 // RCC_PLLR_DIV2
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
func init() {
|
||||
initCLK()
|
||||
|
||||
|
|
|
@ -8,8 +8,6 @@ import (
|
|||
"machine"
|
||||
)
|
||||
|
||||
type arrtype = uint32
|
||||
|
||||
const (
|
||||
/* PLL Options RMN0461.p247 */
|
||||
PLL_M = 2
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче