| MINI58_BSP V3.01.003 The Board Support Package for Mini58 Series MCU

Modules | Macros
SYS Exported Constants
Mini58 Device Driver » SYS Driver
Collaboration diagram for SYS Exported Constants:

## Modules
| SYS Exported Functions

## Macros
#define | ADC_RST ((0x4<<24) | SYS_IPRST1_ADCRST_Pos )
#define | ACMP_RST ((0x4<<24) | SYS_IPRST1_ACMPRST_Pos )
#define | PWM0_RST ((0x4<<24) | SYS_IPRST1_PWM0RST_Pos )
#define | UART0_RST ((0x4<<24) | SYS_IPRST1_UART0RST_Pos )
#define | UART1_RST ((0x4<<24) | SYS_IPRST1_UART1RST_Pos )
#define | SPI0_RST ((0x4<<24) | SYS_IPRST1_SPI0RST_Pos )
#define | I2C0_RST ((0x4<<24) | SYS_IPRST1_I2C0RST_Pos )
#define | I2C1_RST ((0x4<<24) | SYS_IPRST1_I2C1RST_Pos )
#define | TMR1_RST ((0x4<<24) | SYS_IPRST1_TMR1RST_Pos )
#define | TMR0_RST ((0x4<<24) | SYS_IPRST1_TMR0RST_Pos )
#define | GPIO_RST ((0x4<<24) | SYS_IPRST1_GPIORST_Pos )
#define | SYS_BODCTL_BOD_RST_EN (1UL<<SYS_BODCTL_BODRSTEN_Pos)
#define | SYS_BODCTL_BOD_INTERRUPT_EN (0UL<<SYS_BODCTL_BODRSTEN_Pos)
#define | SYS_BODCTL_BODVL_4_4V (3UL<<SYS_BODCTL_BODVL_Pos)
#define | SYS_BODCTL_BODVL_3_7V (2UL<<SYS_BODCTL_BODVL_Pos)
#define | SYS_BODCTL_BODVL_2_7V (1UL<<SYS_BODCTL_BODVL_Pos)
#define | SYS_BODCTL_BODVL_2_2V (0UL<<SYS_BODCTL_BODVL_Pos)
#define | SYS_MFP_TYPE_Msk(bit) (1UL << ((bit) +16))
#define | SYS_MFP_ALT_Msk(bit) (1UL << ((bit) + 8))
#define | SYS_MFP_MFP_Msk(bit) (1UL << ((bit) ))
#define | SYS_MFP_P00_GPIO 0x00000000UL
#define | SYS_MFP_P00_UART0_nCTS 0x00000100UL
#define | SYS_MFP_P00_UART0_TXD 0x00000101UL
#define | SYS_MFP_P00_Msk 0x00000101UL
#define | SYS_MFP_P01_GPIO 0x00000000UL
#define | SYS_MFP_P01_SPI0_SS 0x00000002UL
#define | SYS_MFP_P01_UART0_nRTS 0x00000200UL
#define | SYS_MFP_P01_UART0_RXD 0x00000202UL
#define | SYS_MFP_P01_Msk 0x00000202UL
#define | SYS_MFP_P04_GPIO 0x00000000UL
#define | SYS_MFP_P04_PWM0_CH5 0x00001010UL
#define | SYS_MFP_P04_SPI0_SS 0x00001000UL
#define | SYS_MFP_P04_Msk 0x00001010UL
#define | SYS_MFP_P05_GPIO 0x00000000UL
#define | SYS_MFP_P05_PWM0_CH4 0x00002020UL
#define | SYS_MFP_P05_SPI0_MOSI 0x00002000UL
#define | SYS_MFP_P05_Msk 0x00002020UL
#define | SYS_MFP_P06_GPIO 0x00000000UL
#define | SYS_MFP_P06_PWM0_CH1 0x00004040UL
#define | SYS_MFP_P06_SPI0_MISO 0x00004000UL
#define | SYS_MFP_P06_Msk 0x00004040UL
#define | SYS_MFP_P07_GPIO 0x00000000UL
#define | SYS_MFP_P07_PWM0_CH0 0x00008080UL
#define | SYS_MFP_P07_SPI0_CLK 0x00008000UL
#define | SYS_MFP_P07_Msk 0x00008080UL
#define | SYS_MFP_P10_ACMP0_P1 0x00000101UL
#define | SYS_MFP_P10_ADC_CH1 0x00000001UL
#define | SYS_MFP_P10_GPIO 0x00000000UL
#define | SYS_MFP_P10_Msk 0x00000101UL
#define | SYS_MFP_P12_ACMP0_P2 0x00000404UL
#define | SYS_MFP_P12_ADC_CH2 0x00000004UL
#define | SYS_MFP_P12_GPIO 0x00000000UL
#define | SYS_MFP_P12_UART0_RXD 0x00000400UL
#define | SYS_MFP_P12_PWM0_CH0 0x04000000UL
#define | SYS_MFP_P12_Msk 0x04000404UL
#define | SYS_MFP_P13_ACMP0_P3 0x00000808UL
#define | SYS_MFP_P13_ADC_CH3 0x00000008UL
#define | SYS_MFP_P13_GPIO 0x00000000UL
#define | SYS_MFP_P13_UART0_TXD 0x00000800UL
#define | SYS_MFP_P13_PWM0_CH1 0x08000000UL
#define | SYS_MFP_P13_Msk 0x08000808UL
#define | SYS_MFP_P14_ACMP0_N 0x00001010UL
#define | SYS_MFP_P14_ADC_CH4 0x00000010UL
#define | SYS_MFP_P14_GPIO 0x00000000UL
#define | SYS_MFP_P14_UART1_RXD 0x00001000UL
#define | SYS_MFP_P14_PWM0_CH4 0x10000000UL
#define | SYS_MFP_P14_Msk 0x10001010UL
#define | SYS_MFP_P15_ACMP0_P0 0x00002020UL
#define | SYS_MFP_P15_ADC_CH5 0x00000020UL
#define | SYS_MFP_P15_GPIO 0x00000000UL
#define | SYS_MFP_P15_UART1_TXD 0x00002000UL
#define | SYS_MFP_P15_Msk 0x00002020UL
#define | SYS_MFP_P22_GPIO 0x00000000UL
#define | SYS_MFP_P22_I2C1_SCL 0x00000404UL
#define | SYS_MFP_P22_PWM0_CH0 0x00000400UL
#define | SYS_MFP_P22_Msk 0x00000404UL
#define | SYS_MFP_P23_GPIO 0x00000000UL
#define | SYS_MFP_P23_I2C1_SDA 0x00000808UL
#define | SYS_MFP_P23_PWM0_CH1 0x00000800UL
#define | SYS_MFP_P23_Msk 0x00000808UL
#define | SYS_MFP_P24_GPIO 0x00000000UL
#define | SYS_MFP_P24_PWM0_CH2 0x00001000UL
#define | SYS_MFP_P24_UART1_RXD 0x00000010UL
#define | SYS_MFP_P24_Msk 0x00001010UL
#define | SYS_MFP_P25_GPIO 0x00000000UL
#define | SYS_MFP_P25_PWM0_CH3 0x00002000UL
#define | SYS_MFP_P25_UART1_TXD 0x00000020UL
#define | SYS_MFP_P25_Msk 0x00002020UL
#define | SYS_MFP_P26_ACMP1_O 0x00004040UL
#define | SYS_MFP_P26_GPIO 0x00000000UL
#define | SYS_MFP_P26_PWM0_CH4 0x00004000UL
#define | SYS_MFP_P26_Msk 0x00004040UL
#define | SYS_MFP_P30_ACMP1_N 0x00000100UL
#define | SYS_MFP_P30_ADC_CH6 0x00000101UL
#define | SYS_MFP_P30_GPIO 0x00000000UL
#define | SYS_MFP_P30_Msk 0x00000101UL
#define | SYS_MFP_P31_ACMP1_P0 0x00000200UL
#define | SYS_MFP_P31_ADC_CH7 0x00000202UL
#define | SYS_MFP_P31_GPIO 0x00000000UL
#define | SYS_MFP_P31_Msk 0x00000202UL
#define | SYS_MFP_P32_GPIO 0x00000000UL
#define | SYS_MFP_P32_INT0 0x00000004UL
#define | SYS_MFP_P32_STADC 0x00000404UL
#define | SYS_MFP_P32_TM0_EXT 0x00000400UL
#define | SYS_MFP_P32_ACMP1_P1 0x04000000UL
#define | SYS_MFP_P32_Msk 0x04000404UL
#define | SYS_MFP_P34_ACMP1_P2 0x00001010UL
#define | SYS_MFP_P34_GPIO 0x00000000UL
#define | SYS_MFP_P34_I2C0_SDA 0x00001000UL
#define | SYS_MFP_P34_TM0_CNT_OUT 0x00000010UL
#define | SYS_MFP_P34_Msk 0x00001010UL
#define | SYS_MFP_P35_ACMP1_P3 0x00002020UL
#define | SYS_MFP_P35_GPIO 0x00000000UL
#define | SYS_MFP_P35_I2C0_SCL 0x00002000UL
#define | SYS_MFP_P35_TM1_CNT_OUT 0x00000020UL
#define | SYS_MFP_P35_Msk 0x00002020UL
#define | SYS_MFP_P36_ACMP0_O 0x00004040UL
#define | SYS_MFP_P36_CLKO 0x00004000UL
#define | SYS_MFP_P36_GPIO 0x00000000UL
#define | SYS_MFP_P36_TM1_EXT 0x00000040UL
#define | SYS_MFP_P36_Msk 0x00004040UL
#define | SYS_MFP_P46_GPIO 0x00000000UL
#define | SYS_MFP_P46_ICE_CLK 0x00000040UL
#define | SYS_MFP_P46_UART1_RXD 0x00004000UL
#define | SYS_MFP_P46_Msk 0x00004040UL
#define | SYS_MFP_P47_GPIO 0x00000000UL
#define | SYS_MFP_P47_ICE_DAT 0x00000080UL
#define | SYS_MFP_P47_UART1_TXD 0x00008000UL
#define | SYS_MFP_P47_Msk 0x00008080UL
#define | SYS_MFP_P50_GPIO 0x00000000UL
#define | SYS_MFP_P50_I2C1_SDA 0x00000100UL
#define | SYS_MFP_P50_UART0_TXD 0x00000101UL
#define | SYS_MFP_P50_XT1_IN 0x00000001UL
#define | SYS_MFP_P50_Msk 0x00000101UL
#define | SYS_MFP_P51_GPIO 0x00000000UL
#define | SYS_MFP_P51_I2C1_SCL 0x00000200UL
#define | SYS_MFP_P51_UART0_RXD 0x00000202UL
#define | SYS_MFP_P51_XT1_OUT 0x00000002UL
#define | SYS_MFP_P51_Msk 0x00000202UL
#define | SYS_MFP_P52_GPIO 0x00000000UL
#define | SYS_MFP_P52_INT1 0x00000004UL
#define | SYS_MFP_P52_Msk 0x00000404UL
#define | SYS_MFP_P53_ADC_CH0 0x00000008UL
#define | SYS_MFP_P53_GPIO 0x00000000UL
#define | SYS_MFP_P53_Msk 0x00000808UL
#define | SYS_MFP_P54_GPIO 0x00000000UL
#define | SYS_MFP_P54_Msk 0x00001010UL
#define | SYS_MFP_P55_GPIO 0x00000000UL
#define | SYS_MFP_P55_Msk 0x00002020UL

## Detailed Description

## Macro Definition Documentation

## ◆ ACMP_RST

#define ACMP_RST ((0x4<<24) | SYS_IPRST1_ACMPRST_Pos )

ACMP reset is one of the SYS_ResetModule parameter

Definition at line 35 of file sys.h.

## ◆ ADC_RST

#define ADC_RST ((0x4<<24) | SYS_IPRST1_ADCRST_Pos )

ADC reset is one of the SYS_ResetModule parameter

Definition at line 34 of file sys.h.

## ◆ GPIO_RST

#define GPIO_RST ((0x4<<24) | SYS_IPRST1_GPIORST_Pos )

GPIO reset is one of the SYS_ResetModule parameter

Definition at line 44 of file sys.h.

## ◆ I2C0_RST

#define I2C0_RST ((0x4<<24) | SYS_IPRST1_I2C0RST_Pos )

I2C0 reset is one of the SYS_ResetModule parameter

Definition at line 40 of file sys.h.

## ◆ I2C1_RST

#define I2C1_RST ((0x4<<24) | SYS_IPRST1_I2C1RST_Pos )

I2C1 reset is one of the SYS_ResetModule parameter

Definition at line 41 of file sys.h.

## ◆ PWM0_RST

#define PWM0_RST ((0x4<<24) | SYS_IPRST1_PWM0RST_Pos )

PWM reset is one of the SYS_ResetModule parameter

Definition at line 36 of file sys.h.

## ◆ SPI0_RST

#define SPI0_RST ((0x4<<24) | SYS_IPRST1_SPI0RST_Pos )

SPI reset is one of the SYS_ResetModule parameter

Definition at line 39 of file sys.h.

## ◆ SYS_BODCTL_BOD_INTERRUPT_EN

#define SYS_BODCTL_BOD_INTERRUPT_EN (0UL<<SYS_BODCTL_BODRSTEN_Pos)

Brown-out Interrupt Enable

Definition at line 51 of file sys.h.

## ◆ SYS_BODCTL_BOD_RST_EN

#define SYS_BODCTL_BOD_RST_EN (1UL<<SYS_BODCTL_BODRSTEN_Pos)

Brown-out Reset Enable

Definition at line 50 of file sys.h.

## ◆ SYS_BODCTL_BODVL_2_2V

#define SYS_BODCTL_BODVL_2_2V (0UL<<SYS_BODCTL_BODVL_Pos)

Setting Brown Out Detector Threshold Voltage as 2.2V

Definition at line 55 of file sys.h.

## ◆ SYS_BODCTL_BODVL_2_7V

#define SYS_BODCTL_BODVL_2_7V (1UL<<SYS_BODCTL_BODVL_Pos)

Setting Brown Out Detector Threshold Voltage as 2.7V

Definition at line 54 of file sys.h.

## ◆ SYS_BODCTL_BODVL_3_7V

#define SYS_BODCTL_BODVL_3_7V (2UL<<SYS_BODCTL_BODVL_Pos)

Setting Brown Out Detector Threshold Voltage as 3.7V

Definition at line 53 of file sys.h.

## ◆ SYS_BODCTL_BODVL_4_4V

#define SYS_BODCTL_BODVL_4_4V (3UL<<SYS_BODCTL_BODVL_Pos)

Setting Brown Out Detector Threshold Voltage as 4.4V

Definition at line 52 of file sys.h.

## ◆ SYS_MFP_ALT_Msk

#define SYS_MFP_ALT_Msk | ( |  | bit | ) | (1UL << ((bit) + 8))

ALT mask for Multiple Function Port

Definition at line 62 of file sys.h.

## ◆ SYS_MFP_MFP_Msk

#define SYS_MFP_MFP_Msk | ( |  | bit | ) | (1UL << ((bit) ))

MFP mask for Multiple Function Port

Definition at line 63 of file sys.h.

## ◆ SYS_MFP_P00_GPIO

#define SYS_MFP_P00_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 65 of file sys.h.

## ◆ SYS_MFP_P00_Msk

#define SYS_MFP_P00_Msk 0x00000101UL

P0_MFP pin 0 mask

Definition at line 68 of file sys.h.

## ◆ SYS_MFP_P00_UART0_nCTS

#define SYS_MFP_P00_UART0_nCTS 0x00000100UL

Clear to Send input pin for UART0.

Definition at line 66 of file sys.h.

## ◆ SYS_MFP_P00_UART0_TXD

#define SYS_MFP_P00_UART0_TXD 0x00000101UL

Data transmitter output pin for UART0.

Definition at line 67 of file sys.h.

## ◆ SYS_MFP_P01_GPIO

#define SYS_MFP_P01_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 70 of file sys.h.

## ◆ SYS_MFP_P01_Msk

#define SYS_MFP_P01_Msk 0x00000202UL

P0_MFP pin 1 mask

Definition at line 74 of file sys.h.

## ◆ SYS_MFP_P01_SPI0_SS

#define SYS_MFP_P01_SPI0_SS 0x00000002UL

1st SPI0 slave select pin.

Definition at line 71 of file sys.h.

## ◆ SYS_MFP_P01_UART0_nRTS

#define SYS_MFP_P01_UART0_nRTS 0x00000200UL

Request to Send output pin for UART0.

Definition at line 72 of file sys.h.

## ◆ SYS_MFP_P01_UART0_RXD

#define SYS_MFP_P01_UART0_RXD 0x00000202UL

Data receiver input pin for UART0.

Definition at line 73 of file sys.h.

## ◆ SYS_MFP_P04_GPIO

#define SYS_MFP_P04_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 76 of file sys.h.

## ◆ SYS_MFP_P04_Msk

#define SYS_MFP_P04_Msk 0x00001010UL

P0_MFP pin 4 mask

Definition at line 79 of file sys.h.

## ◆ SYS_MFP_P04_PWM0_CH5

#define SYS_MFP_P04_PWM0_CH5 0x00001010UL

PWM0 channel5 output/capture input.

Definition at line 77 of file sys.h.

## ◆ SYS_MFP_P04_SPI0_SS

#define SYS_MFP_P04_SPI0_SS 0x00001000UL

1st SPI0 slave select pin.

Definition at line 78 of file sys.h.

## ◆ SYS_MFP_P05_GPIO

#define SYS_MFP_P05_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 81 of file sys.h.

## ◆ SYS_MFP_P05_Msk

#define SYS_MFP_P05_Msk 0x00002020UL

P0_MFP pin 5 mask

Definition at line 84 of file sys.h.

## ◆ SYS_MFP_P05_PWM0_CH4

#define SYS_MFP_P05_PWM0_CH4 0x00002020UL

PWM0 channel4 output/capture input.

Definition at line 82 of file sys.h.

## ◆ SYS_MFP_P05_SPI0_MOSI

#define SYS_MFP_P05_SPI0_MOSI 0x00002000UL

1st SPI0 MOSI (Master Out, Slave In) pin.

Definition at line 83 of file sys.h.

## ◆ SYS_MFP_P06_GPIO

#define SYS_MFP_P06_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 86 of file sys.h.

## ◆ SYS_MFP_P06_Msk

#define SYS_MFP_P06_Msk 0x00004040UL

P0_MFP pin 6 mask

Definition at line 89 of file sys.h.

## ◆ SYS_MFP_P06_PWM0_CH1

#define SYS_MFP_P06_PWM0_CH1 0x00004040UL

PWM0 channel1 output/capture input.

Definition at line 87 of file sys.h.

## ◆ SYS_MFP_P06_SPI0_MISO

#define SYS_MFP_P06_SPI0_MISO 0x00004000UL

1st SPI0 MISO (Master In, Slave Out) pin.

Definition at line 88 of file sys.h.

## ◆ SYS_MFP_P07_GPIO

#define SYS_MFP_P07_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 91 of file sys.h.

## ◆ SYS_MFP_P07_Msk

#define SYS_MFP_P07_Msk 0x00008080UL

P0_MFP pin 7 mask

Definition at line 94 of file sys.h.

## ◆ SYS_MFP_P07_PWM0_CH0

#define SYS_MFP_P07_PWM0_CH0 0x00008080UL

PWM0 channel0 output/capture input.

Definition at line 92 of file sys.h.

## ◆ SYS_MFP_P07_SPI0_CLK

#define SYS_MFP_P07_SPI0_CLK 0x00008000UL

SPI0 serial clock pin.

Definition at line 93 of file sys.h.

## ◆ SYS_MFP_P10_ACMP0_P1

#define SYS_MFP_P10_ACMP0_P1 0x00000101UL

Analog comparator0 positive input pin.

Definition at line 96 of file sys.h.

## ◆ SYS_MFP_P10_ADC_CH1

#define SYS_MFP_P10_ADC_CH1 0x00000001UL

ADC channel1 analog input.

Definition at line 97 of file sys.h.

## ◆ SYS_MFP_P10_GPIO

#define SYS_MFP_P10_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 98 of file sys.h.

## ◆ SYS_MFP_P10_Msk

#define SYS_MFP_P10_Msk 0x00000101UL

P1_MFP pin 0 mask

Definition at line 99 of file sys.h.

## ◆ SYS_MFP_P12_ACMP0_P2

#define SYS_MFP_P12_ACMP0_P2 0x00000404UL

Analog comparator0 positive input pin.

Definition at line 101 of file sys.h.

## ◆ SYS_MFP_P12_ADC_CH2

#define SYS_MFP_P12_ADC_CH2 0x00000004UL

ADC channel2 analog input.

Definition at line 102 of file sys.h.

## ◆ SYS_MFP_P12_GPIO

#define SYS_MFP_P12_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 103 of file sys.h.

## ◆ SYS_MFP_P12_Msk

#define SYS_MFP_P12_Msk 0x04000404UL

P1_MFP pin 2 mask

Definition at line 106 of file sys.h.

## ◆ SYS_MFP_P12_PWM0_CH0

#define SYS_MFP_P12_PWM0_CH0 0x04000000UL

PWM0 channel0 output/capture input.

Definition at line 105 of file sys.h.

## ◆ SYS_MFP_P12_UART0_RXD

#define SYS_MFP_P12_UART0_RXD 0x00000400UL

Data receiver input pin for UART0.

Definition at line 104 of file sys.h.

## ◆ SYS_MFP_P13_ACMP0_P3

#define SYS_MFP_P13_ACMP0_P3 0x00000808UL

Analog comparator0 positive input pin.

Definition at line 108 of file sys.h.

## ◆ SYS_MFP_P13_ADC_CH3

#define SYS_MFP_P13_ADC_CH3 0x00000008UL

ADC channel3 analog input.

Definition at line 109 of file sys.h.

## ◆ SYS_MFP_P13_GPIO

#define SYS_MFP_P13_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 110 of file sys.h.

## ◆ SYS_MFP_P13_Msk

#define SYS_MFP_P13_Msk 0x08000808UL

P1_MFP pin 3 mask

Definition at line 113 of file sys.h.

## ◆ SYS_MFP_P13_PWM0_CH1

#define SYS_MFP_P13_PWM0_CH1 0x08000000UL

PWM0 channel1 output/capture input.

Definition at line 112 of file sys.h.

## ◆ SYS_MFP_P13_UART0_TXD

#define SYS_MFP_P13_UART0_TXD 0x00000800UL

Data transmitter output pin for UART0.

Definition at line 111 of file sys.h.

## ◆ SYS_MFP_P14_ACMP0_N

#define SYS_MFP_P14_ACMP0_N 0x00001010UL

Analog comparator0 negative input pin.

Definition at line 115 of file sys.h.

## ◆ SYS_MFP_P14_ADC_CH4

#define SYS_MFP_P14_ADC_CH4 0x00000010UL

ADC channel4 analog input.

Definition at line 116 of file sys.h.

## ◆ SYS_MFP_P14_GPIO

#define SYS_MFP_P14_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 117 of file sys.h.

## ◆ SYS_MFP_P14_Msk

#define SYS_MFP_P14_Msk 0x10001010UL

P1_MFP pin 4 mask

Definition at line 120 of file sys.h.

## ◆ SYS_MFP_P14_PWM0_CH4

#define SYS_MFP_P14_PWM0_CH4 0x10000000UL

PWM0 channel4 output/capture input.

Definition at line 119 of file sys.h.

## ◆ SYS_MFP_P14_UART1_RXD

#define SYS_MFP_P14_UART1_RXD 0x00001000UL

Data receiver input pin for UART1.

Definition at line 118 of file sys.h.

## ◆ SYS_MFP_P15_ACMP0_P0

#define SYS_MFP_P15_ACMP0_P0 0x00002020UL

Analog comparator0 positive input pin.

Definition at line 122 of file sys.h.

## ◆ SYS_MFP_P15_ADC_CH5

#define SYS_MFP_P15_ADC_CH5 0x00000020UL

ADC channel5 analog input.

Definition at line 123 of file sys.h.

## ◆ SYS_MFP_P15_GPIO

#define SYS_MFP_P15_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 124 of file sys.h.

## ◆ SYS_MFP_P15_Msk

#define SYS_MFP_P15_Msk 0x00002020UL

P1_MFP pin 5 mask

Definition at line 126 of file sys.h.

## ◆ SYS_MFP_P15_UART1_TXD

#define SYS_MFP_P15_UART1_TXD 0x00002000UL

Data transmitter output pin for UART1.

Definition at line 125 of file sys.h.

## ◆ SYS_MFP_P22_GPIO

#define SYS_MFP_P22_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 128 of file sys.h.

## ◆ SYS_MFP_P22_I2C1_SCL

#define SYS_MFP_P22_I2C1_SCL 0x00000404UL

I2C1 clock pin.

Definition at line 129 of file sys.h.

## ◆ SYS_MFP_P22_Msk

#define SYS_MFP_P22_Msk 0x00000404UL

P2_MFP pin 2 mask

Definition at line 131 of file sys.h.

## ◆ SYS_MFP_P22_PWM0_CH0

#define SYS_MFP_P22_PWM0_CH0 0x00000400UL

PWM0 channel0 output/capture input.

Definition at line 130 of file sys.h.

## ◆ SYS_MFP_P23_GPIO

#define SYS_MFP_P23_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 133 of file sys.h.

## ◆ SYS_MFP_P23_I2C1_SDA

#define SYS_MFP_P23_I2C1_SDA 0x00000808UL

I2C1 data input/output pin.

Definition at line 134 of file sys.h.

## ◆ SYS_MFP_P23_Msk

#define SYS_MFP_P23_Msk 0x00000808UL

P2_MFP pin 3 mask

Definition at line 136 of file sys.h.

## ◆ SYS_MFP_P23_PWM0_CH1

#define SYS_MFP_P23_PWM0_CH1 0x00000800UL

PWM0 channel1 output/capture input.

Definition at line 135 of file sys.h.

## ◆ SYS_MFP_P24_GPIO

#define SYS_MFP_P24_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 138 of file sys.h.

## ◆ SYS_MFP_P24_Msk

#define SYS_MFP_P24_Msk 0x00001010UL

P2_MFP pin 4 mask

Definition at line 141 of file sys.h.

## ◆ SYS_MFP_P24_PWM0_CH2

#define SYS_MFP_P24_PWM0_CH2 0x00001000UL

PWM0 channel2 output/capture input.

Definition at line 139 of file sys.h.

## ◆ SYS_MFP_P24_UART1_RXD

#define SYS_MFP_P24_UART1_RXD 0x00000010UL

Data receiver input pin for UART1.

Definition at line 140 of file sys.h.

## ◆ SYS_MFP_P25_GPIO

#define SYS_MFP_P25_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 143 of file sys.h.

## ◆ SYS_MFP_P25_Msk

#define SYS_MFP_P25_Msk 0x00002020UL

P2_MFP pin 5 mask

Definition at line 146 of file sys.h.

## ◆ SYS_MFP_P25_PWM0_CH3

#define SYS_MFP_P25_PWM0_CH3 0x00002000UL

PWM0 channel3 output/capture input.

Definition at line 144 of file sys.h.

## ◆ SYS_MFP_P25_UART1_TXD

#define SYS_MFP_P25_UART1_TXD 0x00000020UL

Data transmitter output pin for UART1.

Definition at line 145 of file sys.h.

## ◆ SYS_MFP_P26_ACMP1_O

#define SYS_MFP_P26_ACMP1_O 0x00004040UL

Analog ccomparator1 output.

Definition at line 148 of file sys.h.

## ◆ SYS_MFP_P26_GPIO

#define SYS_MFP_P26_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 149 of file sys.h.

## ◆ SYS_MFP_P26_Msk

#define SYS_MFP_P26_Msk 0x00004040UL

P2_MFP pin 6 mask

Definition at line 151 of file sys.h.

## ◆ SYS_MFP_P26_PWM0_CH4

#define SYS_MFP_P26_PWM0_CH4 0x00004000UL

PWM0 channel4 output/capture input.

Definition at line 150 of file sys.h.

## ◆ SYS_MFP_P30_ACMP1_N

#define SYS_MFP_P30_ACMP1_N 0x00000100UL

Analog comparator1 negative input pin.

Definition at line 153 of file sys.h.

## ◆ SYS_MFP_P30_ADC_CH6

#define SYS_MFP_P30_ADC_CH6 0x00000101UL

ADC channel6 analog input.

Definition at line 154 of file sys.h.

## ◆ SYS_MFP_P30_GPIO

#define SYS_MFP_P30_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 155 of file sys.h.

## ◆ SYS_MFP_P30_Msk

#define SYS_MFP_P30_Msk 0x00000101UL

P3_MFP pin 0 mask

Definition at line 156 of file sys.h.

## ◆ SYS_MFP_P31_ACMP1_P0

#define SYS_MFP_P31_ACMP1_P0 0x00000200UL

Analog comparator1 positive input pin.

Definition at line 158 of file sys.h.

## ◆ SYS_MFP_P31_ADC_CH7

#define SYS_MFP_P31_ADC_CH7 0x00000202UL

ADC channel7 analog input.

Definition at line 159 of file sys.h.

## ◆ SYS_MFP_P31_GPIO

#define SYS_MFP_P31_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 160 of file sys.h.

## ◆ SYS_MFP_P31_Msk

#define SYS_MFP_P31_Msk 0x00000202UL

P3_MFP pin 1 mask

Definition at line 161 of file sys.h.

## ◆ SYS_MFP_P32_ACMP1_P1

#define SYS_MFP_P32_ACMP1_P1 0x04000000UL

Analog comparator1 positive input pin.

Definition at line 167 of file sys.h.

## ◆ SYS_MFP_P32_GPIO

#define SYS_MFP_P32_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 163 of file sys.h.

## ◆ SYS_MFP_P32_INT0

#define SYS_MFP_P32_INT0 0x00000004UL

External interrupt0 input pin.

Definition at line 164 of file sys.h.

## ◆ SYS_MFP_P32_Msk

#define SYS_MFP_P32_Msk 0x04000404UL

P3_MFP pin 2 mask

Definition at line 168 of file sys.h.

## ◆ SYS_MFP_P32_STADC

#define SYS_MFP_P32_STADC 0x00000404UL

ADC external trigger input.

Definition at line 165 of file sys.h.

## ◆ SYS_MFP_P32_TM0_EXT

#define SYS_MFP_P32_TM0_EXT 0x00000400UL

Timer0 external capture input.

Definition at line 166 of file sys.h.

## ◆ SYS_MFP_P34_ACMP1_P2

#define SYS_MFP_P34_ACMP1_P2 0x00001010UL

Analog comparator1 positive input pin.

Definition at line 170 of file sys.h.

## ◆ SYS_MFP_P34_GPIO

#define SYS_MFP_P34_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 171 of file sys.h.

## ◆ SYS_MFP_P34_I2C0_SDA

#define SYS_MFP_P34_I2C0_SDA 0x00001000UL

I2C0 data input/output pin.

Definition at line 172 of file sys.h.

## ◆ SYS_MFP_P34_Msk

#define SYS_MFP_P34_Msk 0x00001010UL

P3_MFP pin 4 mask

Definition at line 174 of file sys.h.

## ◆ SYS_MFP_P34_TM0_CNT_OUT

#define SYS_MFP_P34_TM0_CNT_OUT 0x00000010UL

Timer0 event counter input/toggle output.

Definition at line 173 of file sys.h.

## ◆ SYS_MFP_P35_ACMP1_P3

#define SYS_MFP_P35_ACMP1_P3 0x00002020UL

Analog comparator1 positive input pin.

Definition at line 176 of file sys.h.

## ◆ SYS_MFP_P35_GPIO

#define SYS_MFP_P35_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 177 of file sys.h.

## ◆ SYS_MFP_P35_I2C0_SCL

#define SYS_MFP_P35_I2C0_SCL 0x00002000UL

I2C0 clock pin.

Definition at line 178 of file sys.h.

## ◆ SYS_MFP_P35_Msk

#define SYS_MFP_P35_Msk 0x00002020UL

P3_MFP pin 5 mask

Definition at line 180 of file sys.h.

## ◆ SYS_MFP_P35_TM1_CNT_OUT

#define SYS_MFP_P35_TM1_CNT_OUT 0x00000020UL

Timer1 event counter input/toggle output.

Definition at line 179 of file sys.h.

## ◆ SYS_MFP_P36_ACMP0_O

#define SYS_MFP_P36_ACMP0_O 0x00004040UL

Analog ccomparator0 output.

Definition at line 182 of file sys.h.

## ◆ SYS_MFP_P36_CLKO

#define SYS_MFP_P36_CLKO 0x00004000UL

Clock output.

Definition at line 183 of file sys.h.

## ◆ SYS_MFP_P36_GPIO

#define SYS_MFP_P36_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 184 of file sys.h.

## ◆ SYS_MFP_P36_Msk

#define SYS_MFP_P36_Msk 0x00004040UL

P3_MFP pin 6 mask

Definition at line 186 of file sys.h.

## ◆ SYS_MFP_P36_TM1_EXT

#define SYS_MFP_P36_TM1_EXT 0x00000040UL

Timer1 external capture input.

Definition at line 185 of file sys.h.

## ◆ SYS_MFP_P46_GPIO

#define SYS_MFP_P46_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 188 of file sys.h.

## ◆ SYS_MFP_P46_ICE_CLK

#define SYS_MFP_P46_ICE_CLK 0x00000040UL

Serial wired debugger clock pin.

Definition at line 189 of file sys.h.

## ◆ SYS_MFP_P46_Msk

#define SYS_MFP_P46_Msk 0x00004040UL

P4_MFP pin 6 mask

Definition at line 191 of file sys.h.

## ◆ SYS_MFP_P46_UART1_RXD

#define SYS_MFP_P46_UART1_RXD 0x00004000UL

Data receiver input pin for UART1.

Definition at line 190 of file sys.h.

## ◆ SYS_MFP_P47_GPIO

#define SYS_MFP_P47_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 193 of file sys.h.

## ◆ SYS_MFP_P47_ICE_DAT

#define SYS_MFP_P47_ICE_DAT 0x00000080UL

Serial wired debugger data pin.

Definition at line 194 of file sys.h.

## ◆ SYS_MFP_P47_Msk

#define SYS_MFP_P47_Msk 0x00008080UL

P4_MFP pin 7 mask

Definition at line 196 of file sys.h.

## ◆ SYS_MFP_P47_UART1_TXD

#define SYS_MFP_P47_UART1_TXD 0x00008000UL

Data transmitter output pin for UART1.

Definition at line 195 of file sys.h.

## ◆ SYS_MFP_P50_GPIO

#define SYS_MFP_P50_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 198 of file sys.h.

## ◆ SYS_MFP_P50_I2C1_SDA

#define SYS_MFP_P50_I2C1_SDA 0x00000100UL

I2C1 data input/output pin.

Definition at line 199 of file sys.h.

## ◆ SYS_MFP_P50_Msk

#define SYS_MFP_P50_Msk 0x00000101UL

P5_MFP pin 0 mask

Definition at line 202 of file sys.h.

## ◆ SYS_MFP_P50_UART0_TXD

#define SYS_MFP_P50_UART0_TXD 0x00000101UL

Data transmitter output pin for UART0.

Definition at line 200 of file sys.h.

## ◆ SYS_MFP_P50_XT1_IN

#define SYS_MFP_P50_XT1_IN 0x00000001UL

External 4~24 MHz (high speed) crystal input pin.

Definition at line 201 of file sys.h.

## ◆ SYS_MFP_P51_GPIO

#define SYS_MFP_P51_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 204 of file sys.h.

## ◆ SYS_MFP_P51_I2C1_SCL

#define SYS_MFP_P51_I2C1_SCL 0x00000200UL

I2C1 clock pin.

Definition at line 205 of file sys.h.

## ◆ SYS_MFP_P51_Msk

#define SYS_MFP_P51_Msk 0x00000202UL

P5_MFP pin 1 mask

Definition at line 208 of file sys.h.

## ◆ SYS_MFP_P51_UART0_RXD

#define SYS_MFP_P51_UART0_RXD 0x00000202UL

Data receiver input pin for UART0.

Definition at line 206 of file sys.h.

## ◆ SYS_MFP_P51_XT1_OUT

#define SYS_MFP_P51_XT1_OUT 0x00000002UL

External 4~24 MHz (high speed) crystal output pin.

Definition at line 207 of file sys.h.

## ◆ SYS_MFP_P52_GPIO

#define SYS_MFP_P52_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 210 of file sys.h.

## ◆ SYS_MFP_P52_INT1

#define SYS_MFP_P52_INT1 0x00000004UL

External interrupt1 input pin.

Definition at line 211 of file sys.h.

## ◆ SYS_MFP_P52_Msk

#define SYS_MFP_P52_Msk 0x00000404UL

P5_MFP pin 2 mask

Definition at line 212 of file sys.h.

## ◆ SYS_MFP_P53_ADC_CH0

#define SYS_MFP_P53_ADC_CH0 0x00000008UL

ADC channel0 analog input.

Definition at line 214 of file sys.h.

## ◆ SYS_MFP_P53_GPIO

#define SYS_MFP_P53_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 215 of file sys.h.

## ◆ SYS_MFP_P53_Msk

#define SYS_MFP_P53_Msk 0x00000808UL

P5_MFP pin 3 mask

Definition at line 216 of file sys.h.

## ◆ SYS_MFP_P54_GPIO

#define SYS_MFP_P54_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 218 of file sys.h.

## ◆ SYS_MFP_P54_Msk

#define SYS_MFP_P54_Msk 0x00001010UL

P5_MFP pin 4 mask

Definition at line 219 of file sys.h.

## ◆ SYS_MFP_P55_GPIO

#define SYS_MFP_P55_GPIO 0x00000000UL

General purpose digital I/O pin.

Definition at line 221 of file sys.h.

## ◆ SYS_MFP_P55_Msk

#define SYS_MFP_P55_Msk 0x00002020UL

P5_MFP pin 5 mask

Definition at line 222 of file sys.h.

## ◆ SYS_MFP_TYPE_Msk

#define SYS_MFP_TYPE_Msk | ( |  | bit | ) | (1UL << ((bit) +16))

TYPE mask for Multiple Function Port

Definition at line 61 of file sys.h.

## ◆ TMR0_RST

#define TMR0_RST ((0x4<<24) | SYS_IPRST1_TMR0RST_Pos )

TMR0 reset is one of the SYS_ResetModule parameter

Definition at line 43 of file sys.h.

## ◆ TMR1_RST

#define TMR1_RST ((0x4<<24) | SYS_IPRST1_TMR1RST_Pos )

TMR1 reset is one of the SYS_ResetModule parameter

Definition at line 42 of file sys.h.

## ◆ UART0_RST

#define UART0_RST ((0x4<<24) | SYS_IPRST1_UART0RST_Pos )

UART0 reset is one of the SYS_ResetModule parameter

Definition at line 37 of file sys.h.

## ◆ UART1_RST

#define UART1_RST ((0x4<<24) | SYS_IPRST1_UART1RST_Pos )

UART1 reset is one of the SYS_ResetModule parameter

Definition at line 38 of file sys.h.