diff --git a/AT32F413_periph_lib_V2.1.2.chm b/AT32F413_periph_lib_V2.1.3.chm similarity index 64% rename from AT32F413_periph_lib_V2.1.2.chm rename to AT32F413_periph_lib_V2.1.3.chm index c93f1f5..e704dec 100644 Binary files a/AT32F413_periph_lib_V2.1.2.chm and b/AT32F413_periph_lib_V2.1.3.chm differ diff --git a/document/ReleaseNotes_AT32F413_Firmware_Library.pdf b/document/ReleaseNotes_AT32F413_Firmware_Library.pdf index 8b96e5d..6772582 100644 Binary files a/document/ReleaseNotes_AT32F413_Firmware_Library.pdf and b/document/ReleaseNotes_AT32F413_Firmware_Library.pdf differ diff --git a/libraries/cmsis/cm4/device_support/at32f413.h b/libraries/cmsis/cm4/device_support/at32f413.h index aa200e5..72dffa5 100644 --- a/libraries/cmsis/cm4/device_support/at32f413.h +++ b/libraries/cmsis/cm4/device_support/at32f413.h @@ -124,7 +124,7 @@ extern "C" { */ #define __AT32F413_LIBRARY_VERSION_MAJOR (0x02) /*!< [31:24] major version */ #define __AT32F413_LIBRARY_VERSION_MIDDLE (0x01) /*!< [23:16] middle version */ -#define __AT32F413_LIBRARY_VERSION_MINOR (0x02) /*!< [15:8] minor version */ +#define __AT32F413_LIBRARY_VERSION_MINOR (0x03) /*!< [15:8] minor version */ #define __AT32F413_LIBRARY_VERSION_RC (0x00) /*!< [7:0] release candidate */ #define __AT32F413_LIBRARY_VERSION ((__AT32F413_LIBRARY_VERSION_MAJOR << 24) | \ (__AT32F413_LIBRARY_VERSION_MIDDLE << 16) | \ diff --git a/libraries/drivers/src/at32f413_adc.c b/libraries/drivers/src/at32f413_adc.c index 412fca1..0575e8d 100644 --- a/libraries/drivers/src/at32f413_adc.c +++ b/libraries/drivers/src/at32f413_adc.c @@ -724,10 +724,10 @@ uint32_t adc_combine_ordinary_conversion_data_get(void) * ADC1, ADC2. * @param adc_preempt_channel: select the preempt channel. * this parameter can be one of the following values: - * - ADC_PREEMPTED_CHANNEL_1 - * - ADC_PREEMPTED_CHANNEL_2 - * - ADC_PREEMPTED_CHANNEL_3 - * - ADC_PREEMPTED_CHANNEL_4 + * - ADC_PREEMPT_CHANNEL_1 + * - ADC_PREEMPT_CHANNEL_2 + * - ADC_PREEMPT_CHANNEL_3 + * - ADC_PREEMPT_CHANNEL_4 * @retval the conversion data for selection preempt channel. */ uint16_t adc_preempt_conversion_data_get(adc_type *adc_x, adc_preempt_channel_type adc_preempt_channel) diff --git a/middlewares/usbd_class/audio_hid/audio_hid_desc.c b/middlewares/usbd_class/audio_hid/audio_hid_desc.c index 55b9806..70983fe 100644 --- a/middlewares/usbd_class/audio_hid/audio_hid_desc.c +++ b/middlewares/usbd_class/audio_hid/audio_hid_desc.c @@ -502,7 +502,7 @@ ALIGNED_HEAD uint8_t g_usbd_audio_hid_report[USBD_AUHID_HID_SIZ_REPORT_DESC] ALI 0x85, HID_REPORT_ID_6, /* REPORT_ID (0xF0) */ 0x09, 0x06, /* USAGE */ 0x15, 0x00, /* LOGICAL_MINIMUM (0) */ - 0x26, 0x00,0xff, /* LOGICAL_MAXIMUM (255) */ + 0x26, 0xFF,0x00, /* LOGICAL_MAXIMUM (255) */ 0x75, 0x08, /* REPORT_SIZE (8) */ 0x95, 0x3F, /* REPORT_COUNT (64) */ 0x91, 0x02, /* OUTPUT(Data,Var,Abs,Vol) */ @@ -512,7 +512,7 @@ ALIGNED_HEAD uint8_t g_usbd_audio_hid_report[USBD_AUHID_HID_SIZ_REPORT_DESC] ALI 0x85, HID_REPORT_ID_6, /* REPORT_ID (0xF0) */ 0x09, 0x07, /* USAGE */ 0x15, 0x00, /* LOGICAL_MINIMUM (0) */ - 0x26, 0x00,0xff, /* LOGICAL_MAXIMUM (255) */ + 0x26, 0xFF,0x00, /* LOGICAL_MAXIMUM (255) */ 0x75, 0x08, /* REPORT_SIZE (8) */ 0x95, 0x3F, /* REPORT_COUNT (64) */ 0x81, 0x82, /* INPUT(Data,Var,Abs,Vol) */ diff --git a/middlewares/usbd_class/custom_hid/custom_hid_desc.c b/middlewares/usbd_class/custom_hid/custom_hid_desc.c index 0df3c81..29fb414 100644 --- a/middlewares/usbd_class/custom_hid/custom_hid_desc.c +++ b/middlewares/usbd_class/custom_hid/custom_hid_desc.c @@ -237,7 +237,7 @@ ALIGNED_HEAD uint8_t g_usbd_custom_hid_report[USBD_CUSHID_SIZ_REPORT_DESC] ALIGN 0x85, HID_REPORT_ID_6, /* REPORT_ID (0xF0) */ 0x09, 0x06, /* USAGE */ 0x15, 0x00, /* LOGICAL_MINIMUM (0) */ - 0x26, 0x00,0xff, /* LOGICAL_MAXIMUM (255) */ + 0x26, 0xFF,0x00, /* LOGICAL_MAXIMUM (255) */ 0x75, 0x08, /* REPORT_SIZE (8) */ 0x95, 0x3F, /* REPORT_COUNT (64) */ 0x91, 0x02, /* OUTPUT(Data,Var,Abs,Vol) */ @@ -247,7 +247,7 @@ ALIGNED_HEAD uint8_t g_usbd_custom_hid_report[USBD_CUSHID_SIZ_REPORT_DESC] ALIGN 0x85, HID_REPORT_ID_6, /* REPORT_ID (0xF0) */ 0x09, 0x07, /* USAGE */ 0x15, 0x00, /* LOGICAL_MINIMUM (0) */ - 0x26, 0x00,0xff, /* LOGICAL_MAXIMUM (255) */ + 0x26, 0xFF,0x00, /* LOGICAL_MAXIMUM (255) */ 0x75, 0x08, /* REPORT_SIZE (8) */ 0x95, 0x3F, /* REPORT_COUNT (64) */ 0x81, 0x82, /* INPUT(Data,Var,Abs,Vol) */ diff --git a/project/at_start_f413/examples/i2s/halfduplex_dma/src/main.c b/project/at_start_f413/examples/i2s/halfduplex_dma/src/main.c index a9a7879..bf7c25b 100644 --- a/project/at_start_f413/examples/i2s/halfduplex_dma/src/main.c +++ b/project/at_start_f413/examples/i2s/halfduplex_dma/src/main.c @@ -87,7 +87,7 @@ static void i2s_config(void) dma_init_struct.memory_base_addr = (uint32_t)i2s1_buffer_tx; dma_init_struct.memory_data_width = DMA_MEMORY_DATA_WIDTH_HALFWORD; dma_init_struct.memory_inc_enable = TRUE; - dma_init_struct.peripheral_base_addr = (uint32_t)0x4001300C; + dma_init_struct.peripheral_base_addr = (uint32_t)&(SPI1->dt); dma_init_struct.peripheral_data_width = DMA_PERIPHERAL_DATA_WIDTH_HALFWORD; dma_init_struct.peripheral_inc_enable = FALSE; dma_init_struct.priority = DMA_PRIORITY_HIGH; @@ -96,7 +96,7 @@ static void i2s_config(void) dma_init_struct.direction = DMA_DIR_PERIPHERAL_TO_MEMORY; dma_init_struct.memory_base_addr = (uint32_t)i2s2_buffer_rx; - dma_init_struct.peripheral_base_addr = (uint32_t)0x4000380C; + dma_init_struct.peripheral_base_addr = (uint32_t)&(SPI2->dt); dma_init(DMA1_CHANNEL4, &dma_init_struct); crm_periph_clock_enable(CRM_SPI1_PERIPH_CLOCK, TRUE); diff --git a/project/at_start_f413/examples/rtc/calendar/src/rtc.c b/project/at_start_f413/examples/rtc/calendar/src/rtc.c index fc9c7e3..5181e8e 100644 --- a/project/at_start_f413/examples/rtc/calendar/src/rtc.c +++ b/project/at_start_f413/examples/rtc/calendar/src/rtc.c @@ -329,7 +329,6 @@ void rtc_time_get(void) } else { - temp1++; break; } } diff --git a/project/at_start_f413/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c b/project/at_start_f413/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c index f187510..7da9c9f 100644 --- a/project/at_start_f413/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c +++ b/project/at_start_f413/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c @@ -86,7 +86,7 @@ static void spi_config(void) dma_init_struct.memory_base_addr = (uint32_t)spi2_rx_buffer; dma_init_struct.memory_data_width = DMA_MEMORY_DATA_WIDTH_BYTE; dma_init_struct.memory_inc_enable = TRUE; - dma_init_struct.peripheral_base_addr = (uint32_t)0x4000380C; + dma_init_struct.peripheral_base_addr = (uint32_t)&(SPI2->dt); dma_init_struct.peripheral_data_width = DMA_PERIPHERAL_DATA_WIDTH_BYTE; dma_init_struct.peripheral_inc_enable = FALSE; dma_init_struct.priority = DMA_PRIORITY_MEDIUM;