Restructuration itteration 1

interrupts
key 4 years ago
parent 9e223e18b9
commit 4dc986dbba

@ -26,6 +26,8 @@ set(EXECUTABLE ${PROJECT_NAME}.out)
#CONFIG FILE
####################################################################################################
set(INTERFACES_DIR ${CMAKE_SOURCE_DIR}/bsl/csl/interfaces)
include(${CMAKE_SOURCE_DIR}/bsl/nucleo_f042k6/bsl_nucleo_f042k6.cmake)
####################################################################################################

@ -2,5 +2,5 @@ add_library(stmGpio gpio.cpp)
target_compile_options(stmGpio PRIVATE ${C_FLAGS})
target_compile_definitions(stmGpio PRIVATE ${C_DEFS})
target_include_directories(stmGpio PUBLIC ${CMAKE_SOURCE_DIR}/periferals/gpio ${CSL_INCLUDES})
target_include_directories(stmGpio PUBLIC ${INTERFACES_DIR} ${CSL_INCLUDES})
add_library(sub::gpio ALIAS stmGpio)

@ -1,34 +1,9 @@
#include "gpio.hpp"
#include "../../bsl_nucleo_f042k6.h"
//#include "/home/key/git/ked/bsl/csl/stm32f042/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h"
#include "./../../../csl/stm32f042/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h"
//#include "gpioMap.hpp"
#define PIN_COUNT 20
#define D0 0
#define D1 1
#define D2 2
#define D3 3
#define D4 4
#define D5 5
#define D6 6
#define D7 7
#define D8 8
#define D9 9
#define D10 10
#define D11 11
#define D12 12
#define A0 13
#define A1 14
#define A2 15
#define A3 16
#define A4 17
#define A5 18
#define A6 19
#define A7 20
class Gpio::gpioImpl
{

@ -1,5 +1,5 @@
#include"main.hpp"
#include "periferals/gpio/gpio.hpp"
#include "bsl/csl/interfaces/gpio.hpp"
int main(int argc, char *argv[])
{
@ -8,9 +8,9 @@ int main(int argc, char *argv[])
while(1)
{
LL_mDelay(100);
LL_mDelay(500);
gpio.writePin(1,1);
LL_mDelay(100);
LL_mDelay(500);
gpio.writePin(1,0);
}
return 1;

Loading…
Cancel
Save