Skip to content

Commit 25ea7be

Browse files
pilotakAGlass0fMilk
authored andcommitted
add NUCLEO_G031K8 target
1 parent e3d26ed commit 25ea7be

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/STM32G0xx_HAL_Driver/stm32g0xx_ll_rtc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3074,7 +3074,7 @@ __STATIC_INLINE void LL_RTC_BKP_SetRegister(TAMP_TypeDef *TAMPx, uint32_t Backup
30743074
*/
30753075
__STATIC_INLINE uint32_t LL_RTC_BKP_GetRegister(TAMP_TypeDef *TAMPx, uint32_t BackupRegister)
30763076
{
3077-
const register __IO uint32_t *tmp;
3077+
register __IO uint32_t *tmp;
30783078

30793079
tmp = &(TAMPx->BKP0R) + BackupRegister;
30803080

targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G031xx/TARGET_NUCLEO_G031K8/PinNames.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ typedef enum {
155155
D10 = PB_9,
156156
D11 = PB_5,
157157
D12 = PB_4,
158-
D13 = PB_3,
159158

160159
// STDIO for console print
161160
#ifdef MBED_CONF_TARGET_STDIO_UART_TX

targets/TARGET_STM/TARGET_STM32G0/serial_device.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#define USART3_4_LPUART1_IRQn LPUART1_IRQn
2525
#endif
2626

27-
2827
uint32_t serial_irq_ids[UART_NUM] = {0};
2928
UART_HandleTypeDef uart_handlers[UART_NUM];
3029

targets/targets.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2403,16 +2403,25 @@
24032403
],
24042404
"device_name": "STM32G071RBTx"
24052405
},
2406-
"NUCLEO_G031K8": {
2406+
"MCU_STM32G031xx": {
24072407
"inherits": [
24082408
"MCU_STM32G0"
24092409
],
2410+
"public": false,
24102411
"extra_labels_add": [
24112412
"STM32G031xx"
24122413
],
24132414
"macros_add": [
24142415
"STM32G031xx"
24152416
],
2417+
"device_has_remove": [
2418+
"ANALOGOUT"
2419+
]
2420+
},
2421+
"NUCLEO_G031K8": {
2422+
"inherits": [
2423+
"MCU_STM32G031xx"
2424+
],
24162425
"detect_code": [
24172426
"0852"
24182427
],

0 commit comments

Comments
 (0)