Merge pull request #2427 from eliasnaur/remove-arrtype

Remove unused arrtype from package runtime
Этот коммит содержится в:
kenbell 2021-12-28 19:18:35 +00:00 коммит произвёл GitHub
родитель c685e0696a a6837f05a4
коммит 8bd39d2fc2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
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