Function | Sub-Function | APIs | Description | Update Status | |
---|---|---|---|---|---|
irq_handler() | none | Interrupt handler function | 2019-1-10 | ||
main() | cpu_wakeup_init() | CPU initialization function [Mandatory] | |||
clock_init() | clock_init(SYS_CLK_24M_Crystal) | Clock initialization, System Clock is 24M RC by default [optional] | |||
clock_32k_init() | clock_32k_init(CLK_32K_XTAL) | 32k Clock initialization, 32k Clock source is 32k RC by default [optional] | |||
rf_drv_init() | rf_drv_init(RF_MODE_BLE_1M) | RF mode initialization [optional] | |||
gpio_init() | gpio_init(1) | GPIO initialization: set the initialization status of all GPIOs [optional] | |||
user_init() | sram_val = read_reg32(0x40000) | read 4 bytes from sram | |||
write_reg32(0x40000,0xffffffff) | write 4 bytes to sram | ||||
dig_val = read_reg32(0x00) | read 4 bytes from digital register | ||||
write_reg32(0x00,0xffffffff) | write 4 bytes to digital register | ||||
analog_read() | ana_val = analog_read(0x00) | read one byte from analog register | |||
analog_write() | analog_write(0x00,0xff) | write one byte to analog register | |||
main_loop() | none | main program loop |
Function | Sub-Function | APIs | Description | Update Status | |
---|---|---|---|---|---|
irq_handler() | none | Interrupt handler function | 2019-1-10 | ||
main() | cpu_wakeup_init() | CPU initialization function [Mandatory] | |||
clock_init() | clock_init(SYS_CLK_24M_Crystal) | Clock initialization function, System Clock is 24M RC by default [optional] | |||
rf_drv_init() | rf_drv_init(RF_MODE_BLE_1M) | RF mode initialization [optional] | |||
gpio_init() | gpio_init(1) | GPIO initialization: set the initialization status of all GPIOs [optional] | |||
user_init() | rc_24m_cal() | calibrate the RC1 to 24M as system clock | |||
rc_32k_cal() | calibrate the RC2 to 32K as 32k timer | ||||
doubler_calibration() | calibrate the doubler | ||||
main_loop() | none | main program loop |
Date | Description | Author |
---|---|---|
2019-1-10 | initial release | LJW |