uv-k5-firmware-custom/hardware/dp32g030/gpio.def

94 lines
1.3 KiB
Modula-2
Raw Normal View History

2023-09-09 07:03:56 +00:00
# Copyright 2023 Dual Tachyon
# https://github.com/DualTachyon
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[GPIO]
$ = GPIO_Bank_t
DATA = 0x0000
DIR = 0x0004
> 0, 0, 1
= INPUT, 0
= OUTPUT, 1
> 1, 1, 1
= INPUT, 0
= OUTPUT, 1
> 2, 2, 1
= INPUT, 0
= OUTPUT, 1
> 3, 3, 1
= INPUT, 0
= OUTPUT, 1
> 4, 4, 1
= INPUT, 0
= OUTPUT, 1
> 5, 5, 1
= INPUT, 0
= OUTPUT, 1
> 6, 6, 1
= INPUT, 0
= OUTPUT, 1
> 7, 7, 1
= INPUT, 0
= OUTPUT, 1
> 8, 8, 1
= INPUT, 0
= OUTPUT, 1
> 9, 9, 1
= INPUT, 0
= OUTPUT, 1
> 10, 10, 1
= INPUT, 0
= OUTPUT, 1
> 11, 11, 1
= INPUT, 0
= OUTPUT, 1
> 12, 12, 1
= INPUT, 0
= OUTPUT, 1
> 13, 13, 1
= INPUT, 0
= OUTPUT, 1
> 14, 14, 1
= INPUT, 0
= OUTPUT, 1
> 15, 15, 1
= INPUT, 0
= OUTPUT, 1
[GPIOA]
@ = 0x40060000, 0x800, $GPIO
[GPIOB]
@ = 0x40060800, 0x800, $GPIO
[GPIOC]
@ = 0x40061000, 0x800, $GPIO