diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-02 21:13:31 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-02 21:13:31 +0100 |
commit | baedda497d16c5096971eee83a0c467fe663fe6d (patch) | |
tree | 2f8925c68d94aed7d5fc7022462abbb359200b9e /include | |
parent | 9129af503c8211d713c8a160a3b6f3f86b328639 (diff) | |
download | stm32f103-playground-baedda497d16c5096971eee83a0c467fe663fe6d.tar.gz stm32f103-playground-baedda497d16c5096971eee83a0c467fe663fe6d.tar.bz2 stm32f103-playground-baedda497d16c5096971eee83a0c467fe663fe6d.tar.xz stm32f103-playground-baedda497d16c5096971eee83a0c467fe663fe6d.zip |
o Moving around a lot of files.
Diffstat (limited to 'include')
-rw-r--r-- | include/debug.h | 44 | ||||
-rw-r--r-- | include/init_high.h | 120 | ||||
-rw-r--r-- | include/playground.h | 12 | ||||
-rw-r--r-- | include/stm32f10x_conf.h | 38 |
4 files changed, 0 insertions, 214 deletions
diff --git a/include/debug.h b/include/debug.h deleted file mode 100644 index d2926b3..0000000 --- a/include/debug.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef DEBUG_H -#define DEBUG_H - -#ifdef __cplusplus -extern "C" { -#endif - -__attribute__((format (printf, 1, 2))) -void dbg_printf(const char *fmt, ...); - -void dbg_putc(void * junk, char); - -enum SemihostingCmd { - SYS_CLOSE = 0x02, - SYS_CLOCK = 0x10, - SYS_ELAPSED = 0x30, - SYS_ERRNO = 0x13, - SYS_FLEN = 0x0C, - SYS_GET_CMDLINE = 0x15, - SYS_HEAPINFO = 0x16, - SYS_ISERROR = 0x08, - SYS_ISTTY = 0x09, - SYS_OPEN = 0x01, - SYS_READ = 0x06, - SYS_READC = 0x07, - SYS_REMOVE = 0x0E, - SYS_RENAME = 0x0F, - SYS_SEEK = 0x0A, - SYS_SYSTEM = 0x12, - SYS_TICKFREQ = 0x31, - SYS_TIME = 0x11, - SYS_TMPNAM = 0x0D, - SYS_WRITE = 0x05, - SYS_WRITEC = 0x03, - SYS_WRITE0 = 0x04, -}; - -void send_command(enum SemihostingCmd command, void *message); - -#ifdef __cplusplus -}; -#endif - -#endif diff --git a/include/init_high.h b/include/init_high.h deleted file mode 100644 index c6da514..0000000 --- a/include/init_high.h +++ /dev/null @@ -1,120 +0,0 @@ -#ifndef INIT_HIGH_H -#define INIT_HIGH_H - -extern "C" { - -void init_high(); - -/** - * Declare all the interrupt/event handlers as weak symbols and make them aliases of the default handler. - */ -extern void Default_Handler() __attribute__((weak)); - -extern void _Reset_Handler(); - -extern void NMI_Handler(); - -extern void HardFault_Handler(); - -extern void MemManage_Handler(); - -extern void BusFault_Handler(); - -extern void UsageFault_Handler(); - -extern void SVC_Handler(); - -extern void DebugMon_Handler(); - -extern void PendSV_Handler(); - -extern void SysTick_Handler(); - -extern void WWDG_IRQHandler(); - -extern void PVD_IRQHandler(); - -extern void TAMPER_IRQHandler(); - -extern void RTC_IRQHandler(); - -extern void FLASH_IRQHandler(); - -extern void RCC_IRQHandler(); - -extern void EXTI0_IRQHandler(); - -extern void EXTI1_IRQHandler(); - -extern void EXTI2_IRQHandler(); - -extern void EXTI3_IRQHandler(); - -extern void EXTI4_IRQHandler(); - -extern void DMA1_Channel1_IRQHandler(); - -extern void DMA1_Channel2_IRQHandler(); - -extern void DMA1_Channel3_IRQHandler(); - -extern void DMA1_Channel4_IRQHandler(); - -extern void DMA1_Channel5_IRQHandler(); - -extern void DMA1_Channel6_IRQHandler(); - -extern void DMA1_Channel7_IRQHandler(); - -extern void ADC1_2_IRQHandler(); - -extern void USB_HP_CAN1_TX_IRQHandler(); - -extern void USB_LP_CAN1_RX0_IRQHandler(); - -extern void CAN1_RX1_IRQHandler(); - -extern void CAN1_SCE_IRQHandler(); - -extern void EXTI9_5_IRQHandler(); - -extern void TIM1_BRK_IRQHandler(); - -extern void TIM1_UP_IRQHandler(); - -extern void TIM1_TRG_COM_IRQHandler(); - -extern void TIM1_CC_IRQHandler(); - -extern void TIM2_IRQHandler(); - -extern void TIM3_IRQHandler(); - -extern void TIM4_IRQHandler(); - -extern void I2C1_EV_IRQHandler(); - -extern void I2C1_ER_IRQHandler(); - -extern void I2C2_EV_IRQHandler(); - -extern void I2C2_ER_IRQHandler(); - -extern void SPI1_IRQHandler(); - -extern void SPI2_IRQHandler(); - -extern void USART1_IRQHandler(); - -extern void USART2_IRQHandler(); - -extern void USART3_IRQHandler(); - -extern void EXTI15_10_IRQHandler(); - -extern void RTCAlarm_IRQHandler(); - -extern void USBWakeUp_IRQHandler(); -} - -#endif diff --git a/include/playground.h b/include/playground.h deleted file mode 100644 index c224908..0000000 --- a/include/playground.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef PLAYGROUND_H -#define PLAYGROUND_H - -extern "C" void halt(); - -template<typename T, size_t N> -static inline -size_t SizeOfArray(const T(&)[N]) { - return N; -} - -#endif diff --git a/include/stm32f10x_conf.h b/include/stm32f10x_conf.h deleted file mode 100644 index f663d12..0000000 --- a/include/stm32f10x_conf.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef __STM32F10x_CONF_H -#define __STM32F10x_CONF_H - -/* -#include "stm32f10x_adc.h" -#include "stm32f10x_bkp.h" -#include "stm32f10x_can.h" -#include "stm32f10x_cec.h" -#include "stm32f10x_crc.h" -#include "stm32f10x_dac.h" -#include "stm32f10x_dbgmcu.h" -#include "stm32f10x_dma.h" -#include "stm32f10x_exti.h" -#include "stm32f10x_flash.h" -#include "stm32f10x_fsmc.h" -#include "stm32f10x_gpio.h" -#include "stm32f10x_i2c.h" -#include "stm32f10x_iwdg.h" -#include "stm32f10x_pwr.h" -#include "stm32f10x_rcc.h" -#include "stm32f10x_rtc.h" -#include "stm32f10x_sdio.h" -#include "stm32f10x_spi.h" -#include "stm32f10x_tim.h" -#include "stm32f10x_usart.h" -#include "stm32f10x_wwdg.h" -#include "misc.h" -*/ - -#ifdef USE_FULL_ASSERT - #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) - - void assert_failed(uint8_t* file, uint32_t line); -#else - #define assert_param(expr) ((void)0) -#endif - -#endif |