Giter Club home page Giter Club logo

Comments (3)

vonhust avatar vonhust commented on June 15, 2024

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.

tyhucosiii avatar tyhucosiii commented on June 15, 2024

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.

fanghuaqi avatar fanghuaqi commented on June 15, 2024

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:

from embarc_osp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.