35 #ifndef __HAL_PLATFORM_H__ 36 #define __HAL_PLATFORM_H__ 39 #include "hal_define.h" 40 #include "hal_feature_config.h" 43 #include "memory_map.h" 54 #ifdef HAL_CACHE_MODULE_ENABLED 55 #define HAL_CACHE_WITH_REMAP_FEATURE 58 #ifdef HAL_ADC_MODULE_ENABLED 59 #define HAL_ADC_FEATURE_SET_INPUT_AND_DISABLE_PULL 62 #ifdef HAL_I2C_MASTER_MODULE_ENABLED 63 #define HAL_I2C_MASTER_FEATURE_SEND_TO_RECEIVE 64 #define HAL_I2C_MASTER_FEATURE_EXTENDED_DMA 68 #ifdef HAL_SPI_MASTER_MODULE_ENABLED 69 #define HAL_SPI_MASTER_FEATURE_ADVANCED_CONFIG 70 #define HAL_SPI_MASTER_FEATURE_DEASSERT_CONFIG 71 #define HAL_SPI_MASTER_FEATURE_MACRO_CONFIG 72 #define HAL_SPI_MASTER_FEATURE_CHIP_SELECT_TIMING 73 #define HAL_SPI_MASTER_FEATURE_DMA_MODE 76 #ifdef HAL_GPIO_MODULE_ENABLED 77 #define HAL_GPIO_FEATURE_INVERSE 78 #define HAL_GPIO_FEATURE_PUPD 79 #define HAL_GPIO_FEATURE_CLOCKOUT 80 #define HAL_GPIO_FEATURE_HIGH_Z 81 #define HAL_GPIO_FEATURE_SET_DRIVING 84 #ifdef HAL_EINT_MODULE_ENABLED 85 #define HAL_EINT_FEATURE_MASK 86 #define HAL_EINT_FEATURE_SW_TRIGGER_EINT 89 #ifdef HAL_GPT_MODULE_ENABLED 90 #define HAL_GPT_FEATURE_US_TIMER 91 #define HAL_GPT_SW_GPT_FEATURE 92 #define HAL_GPT_PORT_ALLOCATE 95 #ifdef HAL_KEYPAD_MODULE_ENABLED 96 #ifdef HAL_PMU_MODULE_ENABLED 97 #ifndef MTK_EXTERNAL_PMIC 98 #define HAL_KEYPAD_FEATURE_POWERKEY 103 #ifdef HAL_PWM_MODULE_ENABLED 104 #define HAL_PWM_FEATURE_ADVANCED_CONFIG 107 #ifdef HAL_RTC_MODULE_ENABLED 108 #define HAL_RTC_FEATURE_TIME_CALLBACK 111 #ifdef HAL_SPI_SLAVE_MODULE_ENABLED 112 #define HAL_SPI_SLAVE_FEATURE_SW_CONTROL 115 #ifdef HAL_SLEEP_MANAGER_ENABLED 116 #define HAL_SLEEP_MANAGER_SUPPORT_WAKEUP_SOURCE_CONFIG 117 #define HAL_SLEEP_MANAGER_SUPPORT_POWER_OFF 159 #ifdef HAL_UART_MODULE_ENABLED 199 #ifdef HAL_I2C_MASTER_MODULE_ENABLED 200 #ifdef HAL_I2C_MASTER_FEATURE_EXTENDED_DMA 270 #define HAL_I2C_MAXIMUM_POLLING_TRANSACTION_SIZE 8 274 #define HAL_I2C_MAXIMUM_DMA_TRANSACTION_SIZE 15 320 #ifdef HAL_GPIO_MODULE_ENABLED 402 #ifdef HAL_GPIO_FEATURE_CLOCKOUT 442 #ifdef HAL_ADC_MODULE_ENABLED 481 #ifdef HAL_I2S_MODULE_ENABLED 541 #ifdef HAL_SPI_MASTER_MODULE_ENABLED 553 #define HAL_SPI_MAXIMUM_POLLING_TRANSACTION_SIZE 32 557 #define HAL_SPI_MASTER_CLOCK_MIN_FREQUENCY 30000 561 #define HAL_SPI_MASTER_CLOCK_MAX_FREQUENCY 13000000 626 #ifdef HAL_SPI_SLAVE_MODULE_ENABLED 703 #ifdef HAL_RTC_MODULE_ENABLED 719 #define HAL_RTC_BACKUP_BYTE_NUM_MAX (13) 773 #ifdef HAL_EINT_MODULE_ENABLED 788 HAL_EINT_NUMBER_0 = 0,
789 HAL_EINT_NUMBER_1 = 1,
790 HAL_EINT_NUMBER_2 = 2,
791 HAL_EINT_NUMBER_3 = 3,
792 HAL_EINT_NUMBER_4 = 4,
793 HAL_EINT_NUMBER_5 = 5,
794 HAL_EINT_NUMBER_6 = 6,
795 HAL_EINT_NUMBER_7 = 7,
796 HAL_EINT_NUMBER_8 = 8,
797 HAL_EINT_NUMBER_9 = 9,
798 HAL_EINT_NUMBER_10 = 10,
799 HAL_EINT_NUMBER_11 = 11,
800 HAL_EINT_NUMBER_12 = 12,
801 HAL_EINT_NUMBER_13 = 13,
802 HAL_EINT_NUMBER_14 = 14,
803 HAL_EINT_NUMBER_15 = 15,
804 HAL_EINT_NUMBER_16 = 16,
805 HAL_EINT_NUMBER_17 = 17,
806 HAL_EINT_NUMBER_18 = 18,
807 HAL_EINT_NUMBER_19 = 19,
832 #ifdef HAL_GPT_MODULE_ENABLED 864 #define HAL_GPT_MAXIMUM_MS_TIMER_TIME (130150523) 875 #ifdef HAL_FLASH_MODULE_ENABLED 893 #define HAL_FLASH_BASE_ADDRESS (0x08000000) 902 #ifdef HAL_GDMA_MODULE_ENABLED 931 #ifdef HAL_PWM_MODULE_ENABLED 970 #ifdef HAL_WDT_MODULE_ENABLED 985 #define WDT_RESTART_ADDRESS (0xA2050008) 986 #define WDT_RESTART_KEY (0x1971) 998 #ifdef HAL_CACHE_MODULE_ENABLED 1017 #ifdef HAL_GPC_MODULE_ENABLED 1043 #ifdef HAL_SD_MODULE_ENABLED 1071 #ifdef HAL_SDIO_MODULE_ENABLED 1098 #ifdef HAL_CLOCK_MODULE_ENABLED 1099 #include "hal_pmu_internal.h" 1172 HAL_CLOCK_CG_BT_26M = 9,
1173 HAL_CLOCK_CG_CAMINF48M = 10,
1174 HAL_CLOCK_CG_BT_BUSCK = 13,
1175 HAL_CLOCK_CG_BT_N9 = 15,
1176 HAL_CLOCK_CG_BUS = 20,
1177 HAL_CLOCK_CG_CM = 21,
1178 HAL_CLOCK_CG_BSI = 23,
1181 HAL_CLOCK_CG_SEJ = 0 + 32,
1182 HAL_CLOCK_CG_DMA = 1 + 32,
1183 HAL_CLOCK_CG_USB48M = 2 + 32,
1184 HAL_CLOCK_CG_MSDC0 = 3 + 32,
1185 HAL_CLOCK_CG_I2C_D2D = 6 + 32,
1186 HAL_CLOCK_CG_I2C2 = 7 + 32,
1187 HAL_CLOCK_CG_CM4_OSTIMER = 10 + 32,
1188 HAL_CLOCK_CG_DMA_AO = 12 + 32,
1189 HAL_CLOCK_CG_UART0 = 13 + 32,
1190 HAL_CLOCK_CG_UART1 = 14 + 32,
1191 HAL_CLOCK_CG_UART2 = 15 + 32,
1192 HAL_CLOCK_CG_UART3 = 16 + 32,
1193 HAL_CLOCK_CG_SPISLV = 19 + 32,
1194 HAL_CLOCK_CG_SPI0 = 20 + 32,
1195 HAL_CLOCK_CG_SPI1 = 21 + 32,
1196 HAL_CLOCK_CG_SPI2 = 22 + 32,
1197 HAL_CLOCK_CG_SPI3 = 23 + 32,
1200 HAL_CLOCK_CG_PWM0 = 0 + 64,
1201 HAL_CLOCK_CG_BTIF = 1 + 64,
1202 HAL_CLOCK_CG_GPTIMER = 2 + 64,
1203 HAL_CLOCK_CG_GPCOUNTER = 3 + 64,
1204 HAL_CLOCK_CG_PWM1 = 4 + 64,
1205 HAL_CLOCK_CG_EFUSE = 6 + 64,
1206 HAL_CLOCK_CG_LPM = 7 + 64,
1207 HAL_CLOCK_CG_CM_SYSROM = 8 + 64,
1208 HAL_CLOCK_CG_SFC = 9 + 64,
1209 HAL_CLOCK_CG_MSDC1 = 10 + 64,
1210 HAL_CLOCK_CG_USB_DMA = 12 + 64,
1211 HAL_CLOCK_CG_USB_BUS = 13 + 64,
1212 HAL_CLOCK_CG_DISP_PWM = 14 + 64,
1213 HAL_CLOCK_CG_TRNG = 16 + 64,
1214 HAL_CLOCK_CG_PWM2 = 19 + 64,
1215 HAL_CLOCK_CG_PWM3 = 20 + 64,
1216 HAL_CLOCK_CG_PWM4 = 21 + 64,
1217 HAL_CLOCK_CG_PWM5 = 22 + 64,
1220 HAL_CLOCK_CG_LCD = 0 + 96,
1221 HAL_CLOCK_CG_RESEIZER = 1 + 96,
1222 HAL_CLOCK_CG_ROTDMA = 2 + 96,
1223 HAL_CLOCK_CG_CAM_BCLK = 3 + 96,
1224 HAL_CLOCK_CG_PAD2CAM = 4 + 96,
1225 HAL_CLOCK_CG_G2D = 5 + 96,
1226 HAL_CLOCK_CG_MM_COLOR = 6 + 96,
1227 HAL_CLOCK_CG_AAL = 7 + 96,
1228 HAL_CLOCK_CG_DSI0 = 8 + 96,
1229 HAL_CLOCK_CG_LCD_APB = 9 + 96,
1232 HAL_CLOCK_CG_AUXADC = 2 + 128,
1233 HAL_CLOCK_CG_GPDAC = 6 + 128,
1234 HAL_CLOCK_CG_SENSOR_DMA = 8 + 128,
1235 HAL_CLOCK_CG_I2C1 = 9 + 128,
1236 HAL_CLOCK_CG_I2C0 = 10 + 128,
hal_spi_master_clock_polarity_t
SPI master clock polarity definition.
Definition: hal_platform.h:597
The total number of PWM channels (invalid PWM channel).
Definition: hal_platform.h:951
Reserved.
Definition: hal_platform.h:141
Clock polarity is 0.
Definition: hal_platform.h:598
Modem interface.
Definition: hal_platform.h:144
16000Hz
Definition: hal_platform.h:522
hal_clock_cg_id
Use hal_clock_cg_id in Clock API.
Definition: hal_platform.h:1170
EINT number 25: BTSYS BTIF.
Definition: hal_platform.h:813
hal_sd_port_t
This enum defines the SD/eMMC port.
Definition: hal_platform.h:1056
hal_i2s_sample_rate_t
I2S sampling rates.
Definition: hal_platform.h:518
Both send and receive data transfer is the LSB first.
Definition: hal_platform.h:649
hal_spi_slave_command_type_t
This enum defines the SPI slave commands.
Definition: hal_platform.h:680
PWM channel 4.
Definition: hal_platform.h:949
hal_gpt_clock_source_t
GPT clock source.
Definition: hal_platform.h:857
GDMA channel 0.
Definition: hal_platform.h:916
uint8_t rtc_year
Years - [0,127].
Definition: hal_platform.h:737
GPIO pin5.
Definition: hal_platform.h:345
GPIO pin33.
Definition: hal_platform.h:373
GPIO pin1.
Definition: hal_platform.h:341
32000Hz
Definition: hal_platform.h:525
Set the GPT clock source to 32kHz, 1 tick = 1/32768 seconds.
Definition: hal_platform.h:858
TX data underflow.
Definition: hal_platform.h:511
hal_sleep_mode_t
Sleep modes.
Definition: hal_platform.h:130
Reset Generation Unit.
Definition: hal_platform.h:148
GPT port 1: User defined.
Definition: hal_platform.h:848
hal_spi_slave_clock_polarity_t
SPI slave clock polarity definition.
Definition: hal_platform.h:654
Multimedia display serial interface.
Definition: hal_platform.h:150
uint8_t rtc_day
Day of the month - [1,31].
Definition: hal_platform.h:734
GPIO pin40.
Definition: hal_platform.h:380
GPIO pin24.
Definition: hal_platform.h:364
define GPIO output clock 4
Definition: hal_platform.h:420
GPT port 3: Used for software GPT.
Definition: hal_platform.h:850
uint8_t rtc_hour
Hours after midnight - [0,23].
Definition: hal_platform.h:733
GPT port 0: Used for OSTD timer.
Definition: hal_platform.h:847
12000Hz
Definition: hal_platform.h:521
GPIO pin48.
Definition: hal_platform.h:388
hal_eint_number_t
EINT pins.
Definition: hal_platform.h:787
define GPIO output clock 3
Definition: hal_platform.h:419
define GPIO output clock mode of max number(invalid)
Definition: hal_platform.h:430
SDIO port 0.
Definition: hal_platform.h:1085
Read command is received.
Definition: hal_platform.h:671
ADC channel 8.
Definition: hal_platform.h:459
hal_pwm_source_clock_t
PWM clock source options.
Definition: hal_platform.h:956
uint8_t rtc_week
Days in a week - [0,6].
Definition: hal_platform.h:736
External TDM mode (invalid).
Definition: hal_platform.h:500
hal_spi_slave_callback_event_t
This enum defines the SPI slave event when an interrupt occurs.
Definition: hal_platform.h:667
uint8_t rtc_mon
Months - [1,12].
Definition: hal_platform.h:735
No sleep.
Definition: hal_platform.h:131
GPIO pin45.
Definition: hal_platform.h:385
Execute a callback function set by hal_rtc_set_time_notification_period() for every one-fourth of a s...
Definition: hal_platform.h:758
uint8_t rtc_min
Minutes after the hour - [0,59].
Definition: hal_platform.h:732
Both send and receive data transfer LSB first.
Definition: hal_platform.h:612
GPIO pin39.
Definition: hal_platform.h:379
GPIO pin31.
Definition: hal_platform.h:371
GPIO pin28.
Definition: hal_platform.h:368
GPIO pin42.
Definition: hal_platform.h:382
The total number of GPIO pins (invalid GPIO pin number).
Definition: hal_platform.h:389
hal_spi_master_clock_phase_t
SPI master clock format definition.
Definition: hal_platform.h:604
Execute a callback function set by hal_rtc_set_time_notification_period() for every second...
Definition: hal_platform.h:751
The SPI slave device is connected to the SPI master's CS0 pin.
Definition: hal_platform.h:591
An error occurred during a read command.
Definition: hal_platform.h:674
UART port 0.
Definition: hal_platform.h:181
GPIO pin2.
Definition: hal_platform.h:342
hal_spi_master_slave_port_t
This enum defines the options to connect the SPI slave device to the SPI master's CS pins...
Definition: hal_platform.h:590
Keypad.
Definition: hal_platform.h:142
GPIO pin29.
Definition: hal_platform.h:369
To support range detection.
Definition: hal_platform.h:135
PWM channel 1.
Definition: hal_platform.h:946
SPI protocol slave.
Definition: hal_platform.h:147
define GPIO output clock mode as 26MHz
Definition: hal_platform.h:428
GPIO pin36.
Definition: hal_platform.h:376
Configure write command is received.
Definition: hal_platform.h:672
PWM clock source 13MHz.
Definition: hal_platform.h:957
SD/eMMC port 0.
Definition: hal_platform.h:1057
Write Data command.
Definition: hal_platform.h:683
Deep sleep state.
Definition: hal_platform.h:134
Clock polarity is 1.
Definition: hal_platform.h:656
hal_gdma_channel_t
gdma channel
Definition: hal_platform.h:915
EINT number 20: Keypad.
Definition: hal_platform.h:808
define GPIO output clock max number(invalid)
Definition: hal_platform.h:422
GPIO pin15.
Definition: hal_platform.h:355
POWER ON command.
Definition: hal_platform.h:686
44100Hz
Definition: hal_platform.h:526
GPIO pin27.
Definition: hal_platform.h:367
SDIO port 1.
Definition: hal_platform.h:1086
GPIO pin18.
Definition: hal_platform.h:358
hal_i2s_event_t
I2S event.
Definition: hal_platform.h:507
Configure Read command.
Definition: hal_platform.h:688
Clock format is 0.
Definition: hal_platform.h:605
The total number of GDMA channels (invalid GDMA channel).
Definition: hal_platform.h:917
Both send and receive data transfer MSB first.
Definition: hal_platform.h:613
GPIO pin20.
Definition: hal_platform.h:360
SPI slave port 0.
Definition: hal_platform.h:643
PWM channel 0.
Definition: hal_platform.h:945
EINT number 31: GPCOUNTER.
Definition: hal_platform.h:819
A timeout is detected between configure read command and read command or configure write command and ...
Definition: hal_platform.h:676
GPIO pin21.
Definition: hal_platform.h:361
hal_spi_slave_clock_phase_t
SPI slave clock format definition.
Definition: hal_platform.h:661
Sleep state.
Definition: hal_platform.h:133
I2C master 2.
Definition: hal_platform.h:305
UART port 3.
Definition: hal_platform.h:184
Multimedia display bus interface.
Definition: hal_platform.h:149
The total number of SPI master ports (invalid SPI master port).
Definition: hal_platform.h:585
ADC channel 12.
Definition: hal_platform.h:461
No need for a time notification.
Definition: hal_platform.h:750
GPIO pin13.
Definition: hal_platform.h:353
uint8_t rtc_sec
Seconds after minutes - [0,59].
Definition: hal_platform.h:731
hal_spi_master_bit_order_t
SPI master transaction bit order definition.
Definition: hal_platform.h:611
PWM clock srouce 32kHz.
Definition: hal_platform.h:958
hal_gpio_clock_t
This enum defines output clock number of GPIO.
Definition: hal_platform.h:415
Configure read command is received.
Definition: hal_platform.h:670
An error occurred during a write command.
Definition: hal_platform.h:675
GPIO pin16.
Definition: hal_platform.h:356
define GPIO output clock 2
Definition: hal_platform.h:418
11025Hz
Definition: hal_platform.h:520
define GPIO output clock 0
Definition: hal_platform.h:416
GPIO pin35.
Definition: hal_platform.h:375
Execute a callback function set by hal_rtc_set_time_notification_period() for every year...
Definition: hal_platform.h:756
ADC channel 13.
Definition: hal_platform.h:462
SPI master port 1.
Definition: hal_platform.h:582
EINT number 23: UART2 RX.
Definition: hal_platform.h:811
Read Data command.
Definition: hal_platform.h:684
GPIO pin12.
Definition: hal_platform.h:352
ADC channel 11.
Definition: hal_platform.h:460
Idle state.
Definition: hal_platform.h:132
hal_adc_channel_t
ADC channel.
Definition: hal_platform.h:457
hal_gpio_pin_t
This enum defines the GPIO port.
Definition: hal_platform.h:339
UART port 2.
Definition: hal_platform.h:183
GPIO pin17.
Definition: hal_platform.h:357
GPT port 4: Use to set a microsecond delay and get microsecond free count.
Definition: hal_platform.h:851
EINT number 24: BTSYS.
Definition: hal_platform.h:812
GPIO pin10.
Definition: hal_platform.h:350
Notify user the RX data is ready.
Definition: hal_platform.h:513
RTC time structure definition.
Definition: hal_platform.h:730
GPIO pin11.
Definition: hal_platform.h:351
hal_spi_slave_port_t
This enum defines the SPI slave port.
Definition: hal_platform.h:642
I2C master 0.
Definition: hal_platform.h:303
The total number of SPI slave ports (invalid SPI slave port number).
Definition: hal_platform.h:644
The total number of SPI master CS pins (invalid SPI master CS pin).
Definition: hal_platform.h:593
GPIO pin23.
Definition: hal_platform.h:363
Reserved.
Definition: hal_platform.h:145
SPI master port 0.
Definition: hal_platform.h:581
24000Hz
Definition: hal_platform.h:524
GPIO pin34.
Definition: hal_platform.h:374
PWM channel 3.
Definition: hal_platform.h:948
GPIO pin44.
Definition: hal_platform.h:384
Clock polarity is 1.
Definition: hal_platform.h:599
External interrupt.
Definition: hal_platform.h:140
GPIO pin37.
Definition: hal_platform.h:377
Clock format is 0.
Definition: hal_platform.h:662
Execute a callback function set by hal_rtc_set_time_notification_period() for every one-eighth of a s...
Definition: hal_platform.h:759
GPIO pin32.
Definition: hal_platform.h:372
GPIO pin43.
Definition: hal_platform.h:383
SD/eMMC IP.
Definition: hal_platform.h:143
ADC channel 7.
Definition: hal_platform.h:458
GPIO pin4.
Definition: hal_platform.h:344
hal_rtc_time_notification_period_t
RTC current time change notification period selections.
Definition: hal_platform.h:749
Execute a callback function set by hal_rtc_set_time_notification_period() for every day...
Definition: hal_platform.h:754
GPIO pin19.
Definition: hal_platform.h:359
The total number of EINT channels (invalid EINT channel).
Definition: hal_platform.h:820
hal_gpio_clock_mode_t
This enum defines output clock mode of GPIO.
Definition: hal_platform.h:427
Set the GPT clock source to 1MHz, 1 tick = 1 microsecond.
Definition: hal_platform.h:859
GPT port 5: Use to set a millisecond delay and get 1/32Khz free count.
Definition: hal_platform.h:852
The total number of ADC channels (invalid ADC channel).
Definition: hal_platform.h:465
GPIO pin22.
Definition: hal_platform.h:362
SPI master port 3.
Definition: hal_platform.h:584
GPIO pin26.
Definition: hal_platform.h:366
EINT number 26: UART3 RX.
Definition: hal_platform.h:814
EINT number 21: UART0 RX.
Definition: hal_platform.h:809
GPIO pin7.
Definition: hal_platform.h:347
The total number of GPT ports (invalid GPT port).
Definition: hal_platform.h:853
Power on command is received.
Definition: hal_platform.h:668
Clock polarity is 0.
Definition: hal_platform.h:655
8000Hz
Definition: hal_platform.h:519
Write Status command.
Definition: hal_platform.h:681
GPIO pin41.
Definition: hal_platform.h:381
I2C master 1.
Definition: hal_platform.h:304
hal_spi_master_port_t
This enum defines the SPI master port.
Definition: hal_platform.h:580
GPIO pin30.
Definition: hal_platform.h:370
Execute a callback function set by hal_rtc_set_time_notification_period() for every one-half of a sec...
Definition: hal_platform.h:757
GPIO pin6.
Definition: hal_platform.h:346
hal_sleep_manager_wakeup_source_t
sleep_manager wake up source
Definition: hal_platform.h:138
ADC channel 15.
Definition: hal_platform.h:464
External mode.
Definition: hal_platform.h:499
Power off command is received.
Definition: hal_platform.h:669
GPIO pin8.
Definition: hal_platform.h:348
No error occurred during the function call.
Definition: hal_platform.h:509
General purpose timer.
Definition: hal_platform.h:139
POWER OFF command.
Definition: hal_platform.h:685
An error occurred during the function call.
Definition: hal_platform.h:508
Execute a callback function set by hal_rtc_set_time_notification_period() for every minute...
Definition: hal_platform.h:752
PWM channel 2.
Definition: hal_platform.h:947
Write command is received.
Definition: hal_platform.h:673
hal_sdio_port_t
This enum defines the SDIO port.
Definition: hal_platform.h:1084
GPIO pin38.
Definition: hal_platform.h:378
GPIO pin25.
Definition: hal_platform.h:365
define GPIO output clock mode as 32KHz
Definition: hal_platform.h:429
GPIO pin3.
Definition: hal_platform.h:343
hal_i2c_port_t
This enum defines the I2C port.
Definition: hal_platform.h:302
RX data overflow.
Definition: hal_platform.h:510
48000Hz
Definition: hal_platform.h:527
PWM channel 5.
Definition: hal_platform.h:950
SPI master port 2.
Definition: hal_platform.h:583
hal_spi_slave_bit_order_t
SPI slave transaction bit order definition.
Definition: hal_platform.h:648
Configure Write command.
Definition: hal_platform.h:687
EINT number 29: RTC.
Definition: hal_platform.h:817
Internal mode (invalid).
Definition: hal_platform.h:501
Internal loopback mode.
Definition: hal_platform.h:502
define GPIO output clock 1
Definition: hal_platform.h:417
EINT number 27: USB.
Definition: hal_platform.h:815
Read Status command.
Definition: hal_platform.h:682
hal_gpt_port_t
GPT port.
Definition: hal_platform.h:846
ADC channel 14.
Definition: hal_platform.h:463
hal_uart_port_t
UART port index There are total of four UART ports.
Definition: hal_platform.h:180
UART port 1.
Definition: hal_platform.h:182
GPIO pin14.
Definition: hal_platform.h:354
EINT number 22: UART1 RX.
Definition: hal_platform.h:810
SD/eMMC port 1.
Definition: hal_platform.h:1058
The SPI slave device is connected to the SPI master's CS1 pin.
Definition: hal_platform.h:592
Clock format is 1.
Definition: hal_platform.h:606
Clock format is 1.
Definition: hal_platform.h:663
EINT number 28: ACCDET.
Definition: hal_platform.h:816
GPIO pin47.
Definition: hal_platform.h:387
The total number of I2C masters (invalid I2C master number).
Definition: hal_platform.h:306
GPIO pin9.
Definition: hal_platform.h:349
Execute a callback function set by hal_rtc_set_time_notification_period() for every month...
Definition: hal_platform.h:755
Execute a callback function set by hal_rtc_set_time_notification_period() for every hour...
Definition: hal_platform.h:753
hal_pwm_channel_t
The PWM channels.
Definition: hal_platform.h:944
Request for user-defined data.
Definition: hal_platform.h:512
EINT number 30: PMIC.
Definition: hal_platform.h:818
22050Hz
Definition: hal_platform.h:523
GPT port 2: User defined.
Definition: hal_platform.h:849
hal_i2s_initial_type_t
This enum defines initial type of the I2S.
Definition: hal_platform.h:498
GPIO pin0.
Definition: hal_platform.h:340
define GPIO output clock 5
Definition: hal_platform.h:421
SD/eMMC's second IP.
Definition: hal_platform.h:146
The total number of UART ports (invalid UART port number).
Definition: hal_platform.h:185
GPIO pin46.
Definition: hal_platform.h:386
Both send and receive data transfer is the MSB first.
Definition: hal_platform.h:650