Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
399 changes: 174 additions & 225 deletions os/common/ext/CMSIS/ArteryTek/AT32F402_405/at32f402_405cx.h

Large diffs are not rendered by default.

399 changes: 174 additions & 225 deletions os/common/ext/CMSIS/ArteryTek/AT32F402_405/at32f402_405kx.h

Large diffs are not rendered by default.

399 changes: 174 additions & 225 deletions os/common/ext/CMSIS/ArteryTek/AT32F402_405/at32f402_405rx.h

Large diffs are not rendered by default.

307 changes: 156 additions & 151 deletions os/common/ext/CMSIS/ArteryTek/AT32F415/at32f415cx.h

Large diffs are not rendered by default.

307 changes: 156 additions & 151 deletions os/common/ext/CMSIS/ArteryTek/AT32F415/at32f415kx.h

Large diffs are not rendered by default.

307 changes: 156 additions & 151 deletions os/common/ext/CMSIS/ArteryTek/AT32F415/at32f415rx.h

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions os/hal/boards/AT_START_F402/board.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
ChibiOS - Copyright (C) 2006..2020 Giovanni Di Sirio
ChibiOS - Copyright (C) 2023..2025 HorrorTroll
ChibiOS - Copyright (C) 2023..2025 Zhaqian
ChibiOS - Copyright (C) 2023..2026 HorrorTroll
ChibiOS - Copyright (C) 2023..2026 Zhaqian

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -147,6 +147,9 @@ static void at32_gpio_init(void) {
void __early_init(void) {
at32_gpio_init();
at32_clock_init();
#if HAL_USE_USB || defined(__DOXYGEN__)
at32_reduce_power_consumption();
#endif /* HAL_USE_USB */
}

/**
Expand Down
9 changes: 6 additions & 3 deletions os/hal/boards/AT_START_F405/board.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
ChibiOS - Copyright (C) 2006..2020 Giovanni Di Sirio
ChibiOS - Copyright (C) 2023..2025 HorrorTroll
ChibiOS - Copyright (C) 2023..2025 Zhaqian
ChibiOS - Copyright (C) 2024..2025 Maxjta
ChibiOS - Copyright (C) 2023..2026 HorrorTroll
ChibiOS - Copyright (C) 2023..2026 Zhaqian
ChibiOS - Copyright (C) 2024..2026 Maxjta

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -148,6 +148,9 @@ static void at32_gpio_init(void) {
void __early_init(void) {
at32_gpio_init();
at32_clock_init();
#if (HAL_USE_USB && AT32_USB_USE_OTG1) || defined(__DOXYGEN__)
at32_reduce_power_consumption();
#endif /* HAL_USE_USB */
}

/**
Expand Down
16 changes: 8 additions & 8 deletions os/hal/ports/AT32/AT32F402_405/at32_crm.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
ChibiOS - Copyright (C) 2023..2025 HorrorTroll
ChibiOS - Copyright (C) 2023..2025 Zhaqian
ChibiOS - Copyright (C) 2024..2025 Maxjta
ChibiOS - Copyright (C) 2023..2026 HorrorTroll
ChibiOS - Copyright (C) 2023..2026 Zhaqian
ChibiOS - Copyright (C) 2024..2026 Maxjta

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -271,7 +271,7 @@
/** @} */

/**
* @name ADC peripherals specific CRM operations
* @name ADC peripheral specific CRM operations
* @{
*/
/**
Expand Down Expand Up @@ -327,7 +327,7 @@
/** @} */

/**
* @name CAN peripherals specific CRM operations
* @name CAN peripheral specific CRM operations
* @{
*/
/**
Expand Down Expand Up @@ -531,7 +531,7 @@
/** @} */

/**
* @name QUADSPI peripherals specific CRM operations
* @name QUADSPI peripheral specific CRM operations
* @{
*/
/**
Expand Down Expand Up @@ -1080,7 +1080,7 @@
/** @} */

/**
* @name ACC peripherals specific CRM operations
* @name ACC peripheral specific CRM operations
* @{
*/
/**
Expand Down Expand Up @@ -1108,7 +1108,7 @@
/** @} */

/**
* @name CRC peripherals specific CRM operations
* @name CRC peripheral specific CRM operations
* @{
*/
/**
Expand Down
16 changes: 13 additions & 3 deletions os/hal/ports/AT32/AT32F402_405/at32_isr.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
ChibiOS - Copyright (C) 2023..2025 HorrorTroll
ChibiOS - Copyright (C) 2023..2025 Zhaqian
ChibiOS - Copyright (C) 2024..2025 Maxjta
ChibiOS - Copyright (C) 2023..2026 HorrorTroll
ChibiOS - Copyright (C) 2023..2026 Zhaqian
ChibiOS - Copyright (C) 2024..2026 Maxjta

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -226,6 +226,11 @@
#define AT32_TMR13_HANDLER VectorF0
#define AT32_TMR14_HANDLER VectorF4

/* Aliases.*/
#define AT32_TMR9_HANDLER AT32_TMR1_BRK_TMR9_HANDLER
#define AT32_TMR10_HANDLER AT32_TMR1_OVF_TMR10_HANDLER
#define AT32_TMR11_HANDLER AT32_TMR1_HALL_TMR11_HANDLER

#define AT32_TMR1_BRK_TMR9_NUMBER 24
#define AT32_TMR1_OVF_TMR10_NUMBER 25
#define AT32_TMR1_HALL_TMR11_NUMBER 26
Expand All @@ -238,6 +243,11 @@
#define AT32_TMR13_NUMBER 44
#define AT32_TMR14_NUMBER 45

/* Aliases.*/
#define AT32_TMR9_NUMBER AT32_TMR1_BRK_TMR9_NUMBER
#define AT32_TMR10_NUMBER AT32_TMR1_OVF_TMR10_NUMBER
#define AT32_TMR11_NUMBER AT32_TMR1_HALL_TMR11_NUMBER

/*
* USART units.
*/
Expand Down
Loading
Loading