Use correct STM32 device header file

This commit is contained in:
fruchti 2020-12-25 16:28:24 +01:00
parent a529996719
commit 57a6b881b3
9 changed files with 10650 additions and 10521 deletions

View file

@ -1 +1 @@
281
282

View file

@ -3,7 +3,7 @@
-Ithird_party/core
-Ithird_party/device
-DDEBUG
-DSTM32F103x6
-DSTM32F103xB
-D_DEFAULT_SOURCE
-Wall
-Wextra

View file

@ -7,7 +7,7 @@ BUILD_DIR = build
DEBUG := yes
H_DEVICE = STM32F103x6
H_DEVICE = STM32F103xB
STARTUP_SOURCE_DIR = src
STARTUP_SOURCES = $(STARTUP_SOURCE_DIR)/startup.S
LD_SCRIPT = ld/stm32f103c8t6_flash.ld

View file

@ -3,7 +3,7 @@
#include <stdint.h>
#include <string.h>
#include "stm32f103x6.h"
#include "stm32f1xx.h"
void Debug_Print(const char *message);
void Debug_PutChar(char c);

View file

@ -1,6 +1,6 @@
#pragma once
#include "stm32f103x6.h"
#include "stm32f1xx.h"
#include "pinning.h"
#define LED_ON() do { GPIOC->BRR = 1 << PIN_LED; } while(0);

View file

@ -1,7 +1,7 @@
#pragma once
#include <stdbool.h>
#include "stm32f103x6.h"
#include "stm32f1xx.h"
#include "pinning.h"
#include "buildid.h"
#include "debug.h"

View file

@ -2,7 +2,7 @@
#include <string.h>
#include <stdbool.h>
#include "stm32f103x6.h"
#include "stm32f1xx.h"
#include "pinning.h"
#include "debug.h"

View file

@ -2,7 +2,7 @@
#include <stdint.h>
#include <stddef.h>
#include "stm32f103x6.h"
#include "stm32f1xx.h"
typedef struct
{