Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
5b91e26
test: add test async for spim driver
dooraim Dec 14, 2021
780d926
test: add test sync for spim driver
dooraim Dec 14, 2021
d9cf9b8
rtos/pulpos: add driver spim
dooraim Dec 14, 2021
ea8f4dd
rtos/pmsis: update src.mk for spim
dooraim Dec 14, 2021
b293855
tests: add test sync for i2c eeprom
dooraim Dec 14, 2021
43bb171
rm file
dooraim Dec 14, 2021
1d14ddb
rtos/pmsis: modified the structure pi_i2c_conf_t
dooraim Dec 14, 2021
0947ddb
rtos/pulpos: Add driver i2c for pulp-sdk
dooraim Dec 14, 2021
5ff29c7
test: test async for i2c eeprom
dooraim Dec 14, 2021
f3769ee
test: Modified main of the test
dooraim Dec 14, 2021
1eecd19
test: Modified main of the test
dooraim Dec 14, 2021
3ea2a43
rtos/pulpos: clock enable / disable for the peripheral
dooraim Dec 14, 2021
f4820b1
rtos/pulpos: Add driver i2c.c
dooraim Dec 15, 2021
2ab4787
set onl te interrupt
dooraim Dec 15, 2021
afbefc9
rtos/pulpos: bug fix
dooraim Dec 15, 2021
342c7bd
Add address
dooraim Dec 15, 2021
1fcfeaf
rtos/pulpos: bug fix
dooraim Dec 15, 2021
d345222
fix address
dooraim Dec 15, 2021
c7a1f8e
test that prints all the addresses of the peripherals connected to th…
dooraim Dec 15, 2021
ff0ef26
hidden bug
dooraim Dec 15, 2021
7725a8f
hidden bug
dooraim Dec 15, 2021
05bd32d
no irq
dooraim Dec 15, 2021
edbc0f7
rtos/pulpos: irq
dooraim Dec 15, 2021
f57a301
tests: test only write
dooraim Dec 15, 2021
6605b2d
rtos/pulpos: fix
dooraim Dec 15, 2021
6a87748
rtos/pulpos: fix
dooraim Dec 15, 2021
87f95ff
rtos/pulpos: fix
dooraim Dec 15, 2021
92ffb26
rtos/pulpos: fix
dooraim Dec 15, 2021
4ba6645
rtos/pulpos: fix
dooraim Dec 15, 2021
02601d4
rtos/pulpos: fix
dooraim Dec 16, 2021
f25a9f9
test: search error
dooraim Dec 16, 2021
06a3e45
rtos/pulpos: changed initialization channel in function __pi_i2c_open
dooraim Dec 16, 2021
0ba3770
rtos/pulpos e test/ update
dooraim Dec 16, 2021
ce65649
rtos/pulpos update
dooraim Dec 16, 2021
3f15812
rtos/pulpos update
dooraim Dec 16, 2021
e082403
rtos/pulpos update
dooraim Dec 16, 2021
35ccfed
rtos/pulpos update
dooraim Dec 16, 2021
e164b94
rtos/pulpos update
dooraim Dec 16, 2021
bd6a4fc
Add __pi_spi_open and __pi_spi_close
dooraim Dec 28, 2021
fb02591
rtos/pulpos: modify default_rules.mk for abstraction layer pulpos
dooraim Dec 28, 2021
dab052f
rtos/pulpos: modify spim-v3 for abstraction layer spi
dooraim Dec 28, 2021
f4642cd
rtos/pulpos: add dir abstraction layer spi pulpos
dooraim Dec 28, 2021
5323521
rtos/pulpos: add dir common for abstraction layer spi pulpos
dooraim Dec 28, 2021
ca9af1c
rtos/pulpos: added swith between pulpos and freertos for spim_driver_…
dooraim Dec 28, 2021
257e78c
rtos/pulpos: added swith between pulpos and freertos for function act…
dooraim Dec 28, 2021
495a5f4
rtos/pulpos: added label for pulpos
dooraim Dec 28, 2021
6579e7a
rtos/pulpos: added label for pulpos
dooraim Dec 28, 2021
8d884aa
Add information about author
dooraim Dec 29, 2021
6cc7dc8
Add information about author
dooraim Dec 29, 2021
290f18b
rtos/pulpos: Added ifdef to choose the correct spim_driver_data struc…
dooraim Dec 29, 2021
bb9f37d
rtos/pulpos: Added ifdef to choose deactive_irq and active_irq functi…
dooraim Dec 29, 2021
d96ef9b
rtos/pulpos: Added ifdef to choose whether to compile abstraction lay…
dooraim Dec 29, 2021
a6440b5
rtos/pulpos: add rules for freertos
dooraim Dec 30, 2021
a07b0f4
rtos/pulpos: add rules for freertos
dooraim Dec 30, 2021
6920cc7
rtos: add freertos
dooraim Dec 30, 2021
85c73b6
rtos: freertos
dooraim Dec 30, 2021
e25b8bf
rtos: freertos fix
dooraim Dec 30, 2021
f92f7dd
add freertos file
dooraim Dec 30, 2021
d0ab93e
test/spim_flash_async: freertos
dooraim Dec 30, 2021
bb8fc78
fix variable
dooraim Dec 30, 2021
e6fd6eb
add makefile
dooraim Dec 30, 2021
442e396
add modify
dooraim Dec 30, 2021
fe2e09e
remove freertos/abstraction_layer_freertos/include/
dooraim Jan 3, 2022
87cfa98
rm file from freertos/abstraction_layer_freertos/scr/
dooraim Jan 3, 2022
81b5455
rm file from freertos/abstraction_layer_spi_freertos
dooraim Jan 3, 2022
fcb0d72
rtos: update
dooraim Jan 4, 2022
1acc7a6
rtos: added folders for abstraction layer spi
dooraim Jan 11, 2022
7fb7d12
rtos/pulos: driver i2c tested for sync and async test
dooraim Jan 12, 2022
6be325a
tests: update sync test for i2c
dooraim Jan 12, 2022
486cf16
tests: update async test for i2c
dooraim Jan 12, 2022
9d83561
rtos/pulpos/pulp: rm old spim abstraction layers
dooraim Feb 8, 2022
f643a7c
rtos: rm freertos
dooraim Feb 8, 2022
7834446
rtos: rm common function dir
dooraim Feb 8, 2022
c7ff7ff
rtos/pulpos/common: modify src.mk e default_rules.mk for abstraction …
dooraim Feb 8, 2022
8c8f6f6
rtos/pulpos/pulp: abstraction layers i2c pulpos
dooraim Feb 10, 2022
86d09cc
rtos/pulpos/pulp: abstraction layers spim pulpos
dooraim Feb 10, 2022
8835429
rtos/pulpos/pulp: add feature interrupt
dooraim Feb 12, 2022
0894bf7
rtos/pulpos/pulp: driver i2c new version
dooraim Feb 12, 2022
22b4ea5
rtos/pulpos/pulp: fix size transfer
dooraim Feb 15, 2022
cdd8ec6
tests: update test
dooraim Feb 15, 2022
1da1109
rtos/pulpos: update udma_i2c_v2.h in archi and hal
dooraim Feb 15, 2022
52b74bb
rtos/pulpos: update common_i2c
dooraim Feb 15, 2022
477bdfb
rtos/pulpos: update driver for abstraction layers
dooraim Feb 16, 2022
2b1698d
tests: add config_i2c and config_spim to default_rules.mk
dooraim Feb 17, 2022
c017fbf
tests: add test
dooraim Feb 25, 2022
c24392a
tests: update test for spim
dooraim Mar 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rtos/pmsis/pmsis_api/include/pmsis/drivers/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@

/// @endcond

/** \struct pi_i2c_conf_t
/**
* \struct pi_i2c_conf
* \brief I2C master configuration structure.
*
* This structure is used to pass the desired I2C configuration to the runtime
Expand All @@ -62,6 +63,8 @@ typedef struct pi_i2c_conf
uint16_t wait_cycles;
uint32_t max_baudrate; /*!< Maximum baudrate for the I2C bitstream which
can be used with the opened device . */
uint8_t ts_ch; /*!< Enable the timestamp on TX (0) or RX (1) */
uint8_t ts_evt_id; /*!< UDMA Config Event ID for generating the timestamp */
} pi_i2c_conf_t;


Expand Down
1 change: 1 addition & 0 deletions rtos/pmsis/pmsis_bsp/rules/pulpos/src.mk
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ endif
ifeq '$(CONFIG_SPIFLASH)' '1'
PULP_SRCS += $(BSP_SPIFLASH_SRC)
CONFIG_FLASH = 1
CONFIG_SPIM = 1
endif

ifeq '$(CONFIG_ATXP032)' '1'
Expand Down
19 changes: 18 additions & 1 deletion rtos/pulpos/common/rules/pulpos/default_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@ ifdef PULPOS_PLATFORM
platform=$(PULPOS_PLATFORM)
endif

ifdef CONFIG_SPIM
#include
PULP_APP_CFLAGS += -I"$(PULP_SDK_HOME)/rtos/pulpos/pulp/drivers/spim/include"

#src
PULP_APP_SRCS += $(PULP_SDK_HOME)/rtos/pulpos/pulp/drivers/spim/src/common_spi.c
PULP_APP_SRCS += $(PULP_SDK_HOME)/rtos/pulpos/pulp/drivers/spim/src/abstraction_layer_spi.c
endif

ifdef CONFIG_I2C
#include
PULP_APP_CFLAGS += -I"$(PULP_SDK_HOME)/rtos/pulpos/pulp/drivers/i2c/include"

#src
PULP_APP_SRCS += $(PULP_SDK_HOME)/rtos/pulpos/pulp/drivers/i2c/src/common_i2c.c
PULP_APP_SRCS += $(PULP_SDK_HOME)/rtos/pulpos/pulp/drivers/i2c/src/abstraction_layer_i2c.c
endif

ifndef platform
platform=gvsoc
Expand Down Expand Up @@ -328,4 +345,4 @@ help:
@echo " CONFIG_TRACE_LEVEL=<level> Activate traces for the specified level (0=none, 1=fatal, 2=error, 3=warning, 4=info, 5=debug, 6=trace)."
@echo " CONFIG_TRACE_ALL=1 Activate all traces. Other traces can be individually activated with CONFIG_TRACE_<NAME>."

.PHONY: image flash exec run dis size help clean all conf build-lib install-lib
.PHONY: image flash exec run dis size help clean all conf build-lib install-lib
8 changes: 4 additions & 4 deletions rtos/pulpos/common/rules/pulpos/src.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ endif
ifeq '$(CONFIG_SPIM)' '1'
ifneq '$(udma/version)' ''
CONFIG_UDMA = 1
PULP_SRCS += drivers/spim/spim-v$(udma/spim/version).c
PULP_SRCS += drivers/spim/src/spim-v$(udma/spim/version).c
ifeq '$(CONFIG_USE_ASM_OPTIM)' '1'
PULP_ASM_SRCS += drivers/spim/spim-v$(udma/spim/version)_asm.S
PULP_ASM_SRCS += drivers/spim/src/spim-v$(udma/spim/version)_asm.S
endif
endif
endif
Expand Down Expand Up @@ -98,7 +98,7 @@ endif
ifeq '$(CONFIG_I2C)' '1'
ifneq '$(udma/i2c/version)' ''
CONFIG_UDMA = 1
PULP_SRCS += drivers/i2c/i2c-v$(udma/i2c/version).c
PULP_SRCS += drivers/i2c/src/i2c-v$(udma/i2c/version).c
endif
endif

Expand Down Expand Up @@ -185,4 +185,4 @@ endif
# else
# PULP_SRCS += drivers_deprecated/dolphin/rtc.c
# endif
# endif
# endif
Loading