Comments (3)
although, emsk has 4 gpio groups (PORT A , B, C, D), only GPIO PORT A can be used as external interrupt.
pls check EMSK_GPIOUART4_PORT should be the number of GPIO PORT A.
EMSK doesn't have PWM IP, you have to use GPIO to simulate it if you need PWM function
from embarc_osp.
I am using GPIO PORT A.But my program could not raise the interrupt.
#define EMSK_GPIOUART4_PORT DEV_GPIO_PORT_A
#define GPIO_UART4_MASK 0x00030000 //portA的16-17Pin,接J3的7-8口
#define GPIO_UART4_LOW (0)
#define GPIO_UART4IN_MASK 0X00010000 //portA的16Pin,接J3的7口
#define GPIO_UART4OUT_MASK 0X00020000 //portA的17Pin,接J3的8口
from embarc_osp.
Please check the default pinmux settings in https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp/blob/master/board/emsk/drivers/mux/mux.c#L168, make sure the pins you want to control is set to GPIO not other functions.
And the bit_isr.int_bit_ofs = GPIO_UART4IN_MASK;
should be offset not mask. Please check and modify it correctly.
See document about device hal for GPIO here:
- http://embarc.org/embarc_osp/doc/embARC_Document/html/structdev__gpio__bit__isr.html
- http://embarc.org/embarc_osp/doc/embARC_Document/html/group___d_e_v_i_c_e___h_a_l___g_p_i_o.html
from embarc_osp.
Related Issues (20)
- Document version info need update HOT 1
- Missing document for freertos/stack_check example HOT 1
- Question: Device HAL for ADC ports HOT 3
- Lwm2m Client example unable to read/write/observe from server
- IoTDK cannot read SD card HOT 1
- make parameter LINKER_SCRIPT_FILE is not documented HOT 1
- Can I use the compiled MLI library to implement my own AI algorithm?
- IOTDK SDcard can not read my own project HOT 4
- default linker script fails to support RESTART button for MDB HOT 3
- GNU build sets GP to _f_sdata instead of __SDATA_BEGIN__
- AGU context preserving for FreeRTOS tasks. HOT 7
- How to read from sd memory? HOT 5
- ad7991 HOT 2
- Bluetooth hm10 HOT 5
- update date and time HOT 4
- Request for an example available in embARC that demonstrates use of the quad SPI flash on EMSDP HOT 1
- Missing makefile arguments for building, running and debugging HOT 1
- Could you add support for ARC MPU_VERSION=6 ?
- Execution via OpenOCD is broken due to wrong scripts folder
- norflash erase last address calculation error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embarc_osp.