added new tmux workbench script + included spi in main.c/.cpp + work on spi.c and hwDescription

interrupts
polymurph 3 years ago
parent 8fff069a57
commit 6c370a1cbe

@ -230,6 +230,15 @@ static const uint32_t timerRes_Prescaler[MAX_TIMER_CHANNEL_COUNT] = {
0xFFFF, /*!< Timer 17 Prescaler Max Value */
};
typedef enum{
SPI_CH_1,
SPI_CH_2
} spiCH_t;
#ifdef __cplusplus
}
#endif

@ -0,0 +1,13 @@
#include "spi.h"
void spi_initMater(spiCH_t_spi_hw_ch)
{
}
uint8_t spi_trx(spiCH_t_spi_hw_ch, uint8_t tx_data)
{
return 0;
}

@ -4,6 +4,7 @@
#include "usart.h"
#include "ascii.h"
#include "timer.h"
#include "spi.h"
void timer_test(timerNo_t timer, pinNo_t pin)
{

@ -4,6 +4,7 @@
#include "usart.h"
#include "ascii.h"
#include "timer.h"
#include "spi.h"
void timer_test(timerNo_t timer, pinNo_t pin)
{

@ -0,0 +1,20 @@
#!/bin/bash
dir=$(pwd)
echo $dir
tmux new -s 'git' -d 'fish'
tmux new -s 'compile' -d 'fish'
tmux new -s 'main' -d 'vim main.cpp'
cd $dir/ked/csl/stm32f042/Src/
tmux new -s 'src' -d 'fish'
cd $dir/ked/csl/stm32f042/Device/
tmux new -s 'device' -d 'fish'
cd $dir/ked/csl/interfaces/
tmux new -s 'interface' -d 'fish'
tmux a
Loading…
Cancel
Save