Giter VIP home page Giter VIP logo

free-pdk-examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

free-pdk-examples's Issues

SDCC function _sdcc_external_startup will be changing to __sdcc_external_startup

Some advance warning: as of current SDCC development version 4.2.10, and for the forthcoming release version 4.3.0, the _sdcc_external_startup function has been renamed to __sdcc_external_startup (note the additional underscore at the beginning). See SDCC feature request #859.

This means all the examples in this repository that define a function with the former name will no longer work properly, because the function will not be called. Also, the failure may be entirely transparent, because SDCC may not warn about an unused function.

Perhaps old and new versions of SDCC can be accommodated with some conditional defines?

Finish ReadAnalog examples possible?

I know this project is kind of dead, but it's literally the only thing I'm missing, I even got millis + and interrupt working.

All I need is to understand how to read an analog voltage and I'm set :(

Thanks to anyone who replies!

Add additional examples

  • ReadAnalog_FadeLED
  • ReadAnalog_WriteSerial
  • ReadAnalog_WriteAverageSerial
  • EchoSerial
  • ReadSerial_FadeLED

Still missing LICENSE

Nobody can freely use the samples and / or contribute to this project when there is no clear LICENSE.

include structure

I think the includes should be structured in a way where they clearly separate system wide includes and local ones.

Right now there are some files like "millis.h" that are in the include root directory and are included with include "". If these are to be used system wide, I would suggest to put them into pdk/ or pdk/util. Otherwise they should reside within the example code directory.

About PFS173 reset pin

Hi everyone!
I have an issue that how to configure pin A5 as a PRSTB reset pin, i have read datasheet and try it like this but did not work.

uint8_t _sdcc_external_startup(void)
{
PAC &= ~(1<<5);
CLKMD |= (1<<0);
EASY_PDK_INIT_SYSCLOCK_8MHZ(); //use 8MHz sysclock
EASY_PDK_CALIBRATE_IHRC(F_CPU, 5000); //tune SYSCLK to 8MHz @ 4.000V
return 0; //perform normal initialization
}
thank in advance.

Serial_HelloWorld example does not work when compiled with SDCC4.4.0

@spth , @serisman

It appears there is something broken in SDCC4.4.0

The Serial_HelloWorld example compiles&programs without warnings, but when I run it, there is no output from the serial monitor.
When doing the same with SDCC4.1.0 everything works fine.

I have similar issues with my old code that I cannot get to work with SDCC4.4.0.

Apart from this "silent bug", SDCC4.4.0 also broke compatibility when assembling instructions like t1sn f,z, which now have to be renamed to t1sn.io f,z. All in all a very frustrating experience. If one of you has an idea how to fix it, that would be great! Otherwise I suggest adding recommendations to stick with SDCC4.1.0 to the project.

Finalize serial.h and Serial examples

  • serial.h needs to be finalized, i.e. cleaned up and made more extensible
    • Possibly allow serial_setup to be passed a baud rate to use, or have a compiler option defining BAUD_RATE passed in from the Makefile.
  • The Serial examples need README files.
    • Serial_HelloWorld
    • ReadButton_WriteSerial

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.